aws-samples / sagemaker-run-notebook

Tools to run Jupyter notebooks as jobs in Amazon SageMaker - ad hoc, on a schedule, or in response to events
Apache License 2.0
142 stars 69 forks source link

start.sh lifecycle configuration issue with 'initctl' #57

Closed martin-kociemba closed 2 years ago

martin-kociemba commented 2 years ago

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 commented 2 years ago

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

tomfaulhaber commented 2 years ago

Will be fixed when we release JupyerLab 3 support

tomfaulhaber commented 2 years ago

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