-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sessions are not closing/terminated [ICU-1257] #894
Comments
Thanks for raising this @Akisaji What is your architecture? Are you running Boundary workers and controllers in one process on a single box or are they broken out and independent? I did attempt to repro this locally, and after starting a session to a redis instance, then killing the boundary server (v0.1.5), the redis session was terminated. After bringing Boundary back up, the session was shown as terminated in the UI and CLI. Can you try upgrading to 0.1.5? |
The worker and controller both run on the same instance. |
I think this is actually confusion about the output of |
Even after the upgrade the "open" session came back, and i understand that the cli lists all the states and the final state is also described as terminated.
But in the webui this session isn't show as closed/terminated The exec is mostly used to start an sshuttle. |
Hi there! Thanks for your interest in Boundary. I've made a number of attempts to replicate this issue, but I haven't been able to yet. Could you provide additional details about your environment? What version of Boundary are you running now? What command(s) did you use to initiate the session? It looks like the latest screenshot shows two sessions with the same ID. This is an exceptionally rare occurrence in the UI. It might be resolved by refreshing the browser. If not, I wonder if you could screenshot or copy/paste the browser's developer console, in case there are any useful frontend error messages. |
@randallmorey
our setup uses an ec2 instance which runs both the controller and the worker. in front is a route53 which leads to an alb for the controller and the worker port isn't behind a lb.
Worker config
The issue doesn't always occur and i'm not the only user the issue does occur for, some instances even have 3 sessions with the same ID open. There are also 3 different boundarys setup and on all 3 instances the same issue comes up. Commands mostly used:
It isn't one specific command that triggers this to happen as all kinds of backends that use different commands to connect to have this happen.
If this was the case i doubt i'd have the same issue on 3 instances that all run on different nodes, etc I didn't see any errors in the frontend of the webui Currently i also have some sessions that are considered open from as far back as january. If there are any more specific things you would like to see, feel free to ask. |
Thanks for the additional information. The latest version of Boundary is 0.1.8. Do you experience this issue on the latest version? |
I'm using 0.1.8 but still have an issue with session cancel. ` ID: s_Su72GEjZxN ID: s_Su72GEjZxN |
@jsp-hashicorp what is the Boundary CLI output without piping through an additional command? And what is the output of |
@Akisaji I want to confirm, in addition to the previous request, that you upgraded your Boundary cluster to latest (not just the local CLI). Once you have everything upgraded to 0.1.8 and the migration is complete, let us know if you're able to reproduce this issue and which I have tried replicating this behaviour in 0.1.8 unsuccessfully using various |
@randallmorey
Without the pipe, the output of
Most of them are |
I've got this error from Boundary UI.
|
We've identified that there is a bug where a session active on a worker when the worker goes down (permanently, or temporarily via e.g. a reboot) will never be marked as terminated. It doesn't mean any traffic can flow -- if the session is expired or is connection-count-limited and has no connections left, it will not continue to function -- but it does keep the state from transitioning. We currently plan to address this in the 0.2.x series. |
@jefferai Thanks for the update. |
Hi, just noticed this issue open while also having kinda the same issue with #1055 Seems to be related? |
We've identified a number of tasks to try to ensure we properly detect and clean up stale sessions. Likely one of these patches will be most impactful to this situation. Would anyone be interested in testing out a potential patch once it's ready? It wouldn't completely fix all possible issues, but I think it will help here. |
Hi @jefferai , yes, if there was a patch for this, we would roll this out to our current deployment to see if something changes in the environment. We currently have a couple of Controllers and Workers deployed in several Public Cloud to see how Boundary works out. We're currently running Boundary 0.2.0 on all Clients and Servers. |
Hi @Theragus , I can send you a current build which is going to be very similar to the upcoming 0.2.2 release (so we don't anticipate any changes), but it requires database migrations so you'd either have to treat it as a one-way upgrade or upgrade, test, then revert back to a pre-upgrade database snapshot. If you want the build, let me know which platform(s) and I can send it along. |
Hi @jefferai, All our workers and controllers are running on Ubuntu 18.04 LTS. |
Sounds good. I think we're going to stage 0.2.2 today, which means I could give you possibly-final binaries. Then you could test it out, and if all goes well, we'll release in a couple of days and it'll be the binary you already have. |
We didn't end up staging today, but here are some binaries for you to test. You'll need to |
Hi, as far as i see it, this has already been fixed in a older version of boundary, correct? |
Describe the bug
Sessions are displayed as active in the webui and cli and stay active after cancelling the connection.
To Reproduce
Expected behavior
For the connection to be closed when boundary is shut downed and no longer displayed as active. And be able to cancel the connecting without it popping back up.
Additional context
The way we have boundary setup currently, it's shutdown at the end of day so my guess is this is what is causing the issues.
So I'm having this issue currently with multiple sessions and have seen the issue come back several times. Only way i've found to "fix" this is to reinitialize the db which i would like to avoid.
And for a list in the scope i get the following output
Cancelling the session has no effect in the cli or through the web ui and this is how it looks in the webui. When i press cancel all 4 close for a small second and pop right back up. There is still a username and target displayed in the image below
So i also went and checked in the db and saw the following while only 1 or 2 sessions at max should be active.
Also saw this issue in version 0.1.2
The text was updated successfully, but these errors were encountered: