Closed pindge closed 1 year ago
/env/bin/jupyterhub-singleuser: fork: Resource temporarily unavailable
/env/bin/jupyterhub-singleuser: fork: retry: Resource temporarily unavailable
/env/bin/jupyterhub-singleuser: fork: retry: Resource temporarily unavailable
/env/bin/jupyterhub-singleuser: line 17: /jupyterhub-singleuser: No such file or directory
/env/bin/jupyterhub-singleuser: fork: retry: Resource temporarily unavailable
/env/bin/jupyterhub-singleuser: fork: retry: Resource temporarily unavailable
/env/bin/jupyterhub-singleuser: fork: retry: Resource temporarily unavailable
Failure<1>: restarting
/env/bin/jupyterhub-singleuser: fork: retry: Resource temporarily unavailable
/env/bin/jupyterhub-singleuser: fork: retry: Resource temporarily unavailable
v1.0.9
jovyan@2e5252a9588e:~$ cat /env/bin/jupyterhub-singleuser
#!/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyterhub.singleuser import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
current build
jovyan@cc21dbc9dfb4:~$ cat /env/bin/jupyterhub-singleuser
#!/bin/bash
# Wrapper around jupyter-lab to enable restarting jupyter-lab without
# stopping docker image.
#
# This is needed to debug installation of server extensions without re-building
# entire docker images.
set -o pipefail
APP_LOG="/tmp/labhub.log"
REAL_APP="$(dirname $(which python))/jupyterhub-singleuser"
restart_count=0
while true
do
if "${REAL_APP}" $@ 2>&1 | tee -a "${APP_LOG}" ; then
echo "Exited normally"
exit 0
else
restart_count=$((restart_count+1))
if [ $restart_count -gt 100 ]; then
# avoid infinite restart loops
exit 1
else
echo "Failure<$?>: restarting" | tee -a "${APP_LOG}"
fi
fi
done
Current latest
[b5c50ed] appears to work (when used in conjunction with hub 2.0.0).
command freezes with latest build
whereas previous build (1.0.9) returns