sagemaker-run-notebook icon indicating copy to clipboard operation
sagemaker-run-notebook copied to clipboard

start.sh lifecycle configuration issue with 'initctl'

Open martin-kociemba opened this issue 3 years ago • 1 comments

I am using Jupyterlab3 in a Sagemaker notebook instance.

Using the start.sh information to amend the lifecycle script and I am getting the following error message in the cloudwatch logs: /tmp/OnStart_2022-08-11-14-58486lgb20: line 54: initctl: command not found

On a sidenote, the command using source /home/ec2-user/anaconda3/bin/deactivate seems to be outdated, since the log also return the following message: DeprecationWarning: 'source deactivate' is deprecated. Use 'conda deactivate'.

The latter is related to due to the change in conda 4.6, maybe the prior has something to do with it as well? The change is described here: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html

martin-kociemba avatar Aug 11 '22 15:08 martin-kociemba

Based on this article on another part of aws-sample the right command seems to be systemctl restart jupyter-server

martin-kociemba avatar Aug 11 '22 15:08 martin-kociemba

Will be fixed when we release JupyerLab 3 support

tomfaulhaber avatar Oct 19 '22 17:10 tomfaulhaber

v0.22.0 is now released with JupyterLab 3.x support. The new start.sh in this release fixes this issue.

tomfaulhaber avatar Oct 22 '22 01:10 tomfaulhaber