-
Notifications
You must be signed in to change notification settings - Fork 69
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
Session is closed after 30 seconds when plugin built from source #93
Comments
I have a same issue ! |
From what i understand, the issue is the version inside the VERSION file. Explanation:
I am guessing the release pipeline from aws is replacing the version properly. |
Hi @ilons , What's the version of SSM agent you're using on the managed instance (your ECS container)? There were a couple of fixes and improvements done in later versions of both Session Manager plugin (SSM CLI) and SSM agent to handle the premature session termination issue, so I'd recommend to always upgrade to the latest version for both. As for building the CLI and agent from source, @chrisdd3 is correct that the VERSION file defaults to an older version. During our official release, this version is replaced at runtime. So if you build your own binary from source, you would need to update the VERSION to match the release tag of the source code you're building from. Please let us know if you continue to experience issue after upgrading to the latest versions, and feel free to open a support case to share your logs for us to investigate more deeply. Regards, |
Summary
When I'm using the session-manager-plugin built from source (instead of the pre-packaged binary), the plugin would exit after 30 seconds of inactivity when using the
AWS-StartPortForwardingSession
document.Pre-built binary does not exit after 30 seconds of inactivity.
Version for plugin built using official instructions are shown incorrectly (displaying only major and minor version), which leads me to believe that third number is the internal AWS build id (?).
Steps to reproduce
I'm seeing this consistently across different versions of the built plugin, in multiple (Linux) execution environments (Pop OS 22.04, Alpine 3.19) using both the AWS CLI to start a session as well as using python with boto3 to get the session token and calling the session-manager-plugin binary.
Using pre-built binary
Wehn using the pre-built binary everything works as expected:
mkdir pre-built cd pre-built wget https://s3.amazonaws.com/session-manager-downloads/plugin/1.2.553.0/ubuntu_64bit/session-manager-plugin.deb -O session-manager-plugin.deb ar x session-manager-plugin.deb tar -zxvf data.tar.gz
Questions
Similar issues:
The text was updated successfully, but these errors were encountered: