[Boundary] [Session] Invalid request. Request attempted to make second resource with the same field value that must be unique

Hello HashiCorp team,

I ran into a race condition after initiating an active session and then destroying the boundary settings via terraform. The active session kept active. Since then, every time I want to cancel the “active” session, I am getting the following error message “Invalid request. Request attempted to make second resource with the same field value that must be unique.”. It seems to me that this “active” session refers to a scope which does not exist anymore.

For your information, I am using the last up to date Boundary version v0.2.1.

Best regards,
Laurent

This is a duplicate Attempting to delete a stale active session throws a duplicate key violation · Issue #1055 · hashicorp/boundary · GitHub and probably solved by https://github.com/hashicorp/boundary/pull/1220 which will go into 0.2.2.

If you’re interested in testing it out, that’s now merged into main and we’d love feedback.