aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).
https://aws.amazon.com/systems-manager/
Apache License 2.0
1.06k stars 325 forks source link

start-session fails sometimes #522

Open youssouphSagna opened 1 year ago

youssouphSagna commented 1 year ago

All Session Manager prerequisites are complete and it's worked before.

Your session has been terminated for the following reasons: ----------ERROR------- Setting up data channel with id XXXXX-0a2b767b33e3ba395 failed: failed to create websocket for datachannel with error: CreateDataChannel failed with no output or error: createDataChannel request failed: failed to sign the request: shared credentials are already expired, they were retrieved at 2023-05-22T10:03:45Z and expired at 2023-05-22T11:07:14Z

ziwangj commented 1 year ago

Thanks for reporting the issue. Can you please provide the below information for further investigation?

  1. The command you were using to start session
  2. The agent and SSMCLI version: https://docs.aws.amazon.com/systems-manager/latest/userguide/plugin-version-history.html https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent-get-version.html
  3. The agent log: https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-agent-logs.html