You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-16Lines changed: 10 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -639,11 +639,7 @@ SageMaker Studio resources, if you don't need them anymore, e.g., launched noteb
639
639
640
640
* Check that the managed instance in AWS Console in Systems Manager -> Fleet Manager section appears as "Online". Check that you're able to connect to the node from the Console by selecting Node actions -> Start terminal session.
641
641
642
-
* Check that the instance ID your local machine tries to connect to and instance ID
643
-
that `init-ssm` command produced in the notebook are the same.
644
-
645
-
If you initialized SSM multiple times in your kernel app, you can see this error message
646
-
shortly after the re-initialization:
642
+
If instance is "Offline", you might see this error message when calling an `sm-local-ssh-ide` command:
647
643
648
644
```text
649
645
An error occurred (TargetNotConnected) when calling the StartSession operation: mi-1234567890abcdef0 is not connected.
@@ -655,28 +651,24 @@ or this one:
655
651
An error occurred (InvalidInstanceId) when calling the SendCommand operation: Instances [[mi-1234567890abcdef0]] not in a valid state for account 555555555555
656
652
```
657
653
658
-
The reason for this error is that CloudWatch logs arrive with some delay, and previous instance ID is fetched
659
-
instead of a new one. Wait for 30-60 seconds to allow logs to come through and try again.
654
+
* Check SSM agent logs inside SageMaker Studio. From the image terminal run:
655
+
```text
656
+
tail /var/log/amazon/ssm/*.log && date
657
+
```
660
658
661
659
* Check that `sshd` process is started in SageMaker Studio notebook by running a command in the image terminal:
662
660
663
661
```shell
664
662
ps xfa | grep sshd
665
663
```
666
664
667
-
If it's not started, there might be some errors in the output of the notebook, and you might get this error on
668
-
the local machine:
665
+
If it's not started, there might be some errors in the output of the notebook, and you might get this error on the local machine:
669
666
670
667
```text
671
668
Connection closed by UNKNOWN port 65535
672
669
```
673
670
674
-
Check carefully the notebook output in SageMaker Studio and try to stop and start SSM & services again.
675
-
676
-
* Also check SSM agent logs inside SageMaker Studio. From the image terminal run:
677
-
```text
678
-
tail /var/log/amazon/ssm/*.log && date
679
-
```
671
+
Check carefully the notebook output in SageMaker Studio to see if there are any installation or configuration problems that have to be fixed.
680
672
681
673
* Sometimes you can see this error message on your local machine when trying to connect with SSM, even
682
674
if you correctly completed all configuration steps, including the step to enable advanced tier:
@@ -697,4 +689,6 @@ or AWS config file:
697
689
698
690
```text
699
691
region eu-west-1 config-file ~/.aws/config
700
-
```
692
+
```
693
+
694
+
* As the final effort, try to re-initialize the instance by restarting the notebook: Kernel -> Restart Kernel and Run All Cells.
0 commit comments