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
{{ message }}
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.
Describe the bug
After installing jupyterlab-hub, trying to set page_config.json, removing it, JupyterHub returns a 404 : Not Found. Terminal output states a json.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 38 (char 39)
--> Realize JSON is wrongly formatted, because comments not allowed just before posting issue
--> Still don't know correct path to JupyterHub
To Reproduce
Steps to reproduce the behavior:
Note:
JupyterHub is installed through system-wide Miniconda in /opt/miniconda3 (system user account) with:
JupyterHub lab starts again, but no Configuration Panel menu entree
Create /opt/miniconda3/share/jupyter/lab/settings/page_config.json again, but with
{
"hub_prefix": "/etc"# path to JupyterHub
}
Start JupyterHub again
404 error
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 38 (char 39)
Remove page_config.json and it works again.
About to submit issue, realize in Preview that JSON is wrongly formatted and # comments are not allowed.
Still don't know the correct JupyterHub path. Not working:
/etc
/etc/jupyterhub
/opt/miniconda3/bin/jupyter
Expected behavior
A clear error messages stating that page_config.json is broken. Instead it breaks the whole JupyterHub.
A message that hub_prefix is incorrectly set and jupyterlab-hub won't work.
Suggestions
Improve README.md to give clearer instructions. E.g. how to find your JupyterHub sub-directory.
Some automatic page_config.json creation with the correct path set / support for how to set it, when clicked on Hub --> Controlpanel when JupyterHub cannot be found
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
17 packages can be updated.
13 updates are security updates.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
[I 190531 10:46:50 mediator:89] Spawning /opt/miniconda3/bin/jupyterhub-singleuser --port=45747 --NotebookApp.default_url=/lab
[I 2019-05-31 10:46:51.014 JupyterHub log:174] 302 GET /hub/spawn -> /hub/spawn-pending/user (user@127.0.0.1) 1007.01ms
[I 2019-05-31 10:46:51.051 JupyterHub pages:303] user is pending spawn
[I 2019-05-31 10:46:51.071 JupyterHub log:174] 200 GET /hub/spawn-pending/user (user@127.0.0.1) 26.98ms
[W 2019-05-31 10:46:51.317 SingleUserNotebookApp notebookapp:1580] Error loading server extension jupyterlab
Traceback (most recent call last):
File "/opt/miniconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1575, in init_server_extensions
func(self)
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/extension.py", line 115, in load_jupyter_server_extension
config = load_config(nbapp)
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/extension.py", line 41, in load_config
info = get_app_info(app_dir)
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 280, in get_app_info
handler = _AppHandler(app_dir, logger)
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 386, in init
self.info = self._get_app_info()
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 810, in _get_app_info
page_config = self._read_page_config()
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 1215, in _read_page_config
return json.load(fid)
File "/opt/miniconda3/lib/python3.7/json/init.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/opt/miniconda3/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/opt/miniconda3/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/miniconda3/lib/python3.7/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 38 (char 39)
[I 2019-05-31 10:46:51.318 SingleUserNotebookApp singleuser:561] Starting jupyterhub-singleuser server version 1.0.0
[I 2019-05-31 10:46:51.321 JupyterHub log:174] 200 GET /hub/api (@127.0.0.1) 0.64ms
[I 2019-05-31 10:46:51.321 SingleUserNotebookApp notebookapp:1774] Serving notebooks from local directory: /home/user
[I 2019-05-31 10:46:51.321 SingleUserNotebookApp notebookapp:1774] The Jupyter Notebook is running at:
[I 2019-05-31 10:46:51.321 SingleUserNotebookApp notebookapp:1774] http://127.0.0.1:45747/user/*user*/
[I 2019-05-31 10:46:51.321 SingleUserNotebookApp notebookapp:1775] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2019-05-31 10:46:51.324 SingleUserNotebookApp singleuser:542] Updating Hub with activity every 300 seconds
[I 2019-05-31 10:46:51.339 JupyterHub log:174] 200 POST /hub/api/users/user/activity (user@127.0.0.1) 13.84ms
[I 2019-05-31 10:46:51.347 JupyterHub base:810] User user took 1.334 seconds to start
[I 2019-05-31 10:46:51.347 JupyterHub proxy:261] Adding user user to proxy /user/user/ => http://127.0.0.1:45747
[I 2019-05-31 10:46:51.347 SingleUserNotebookApp log:174] 302 GET /user/user/ -> /user/user/lab? (@127.0.0.1) 0.57ms
[I 2019-05-31 10:46:51.349 JupyterHub users:606] Server user is ready
[I 2019-05-31 10:46:51.349 JupyterHub log:174] 200 GET /hub/api/users/user/server/progress (user@127.0.0.1) 123.51ms
[I 2019-05-31 10:46:51.392 JupyterHub log:174] 302 GET /hub/spawn-pending/user -> /user/user/ (user@127.0.0.1) 5.82ms
[I 2019-05-31 10:46:51.434 SingleUserNotebookApp log:174] 302 GET /user/user/ -> /user/user/lab? (@127.0.0.1) 0.50ms
[W 2019-05-31 10:46:51.489 SingleUserNotebookApp log:174] 404 GET /user/user/lab? (@127.0.0.1) 23.03ms
Browser Output
# After logging in
404 : Not Found
You are requesting a page that does not exist!
The text was updated successfully, but these errors were encountered:
Hi @NumesSanguis, the hub_prefix is a property of the SingleUserNotebookApp [1]. You are meant to override it using standard Jupyter config [2]. I'm not sure about the correct value for that property, that question is better asked on the JupyterHub discourse.
Describe the bug
After installing jupyterlab-hub, trying to set
page_config.json
, removing it, JupyterHub returns a404 : Not Found
. Terminal output states ajson.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 38 (char 39)
--> Realize JSON is wrongly formatted, because comments not allowed just before posting issue
--> Still don't know correct path to JupyterHub
To Reproduce
Steps to reproduce the behavior:
Note:
/opt/miniconda3
(system user account) with:conda install -c conda-forge jupyterhub
conda install jupyterlab
/etc/jupyterhub/
jupyter labextension install @jupyterlab/hub-extension
page_config.json
file at:/opt/miniconda3/share/jupyter/lab/settings/page_config.json
cd /etc/jupyterhub jupyterhub -f /etc/jupyterhub/jupyterhub_config.py --JupyterHub.spawner_class=sudospawner.SudoSpawner
rm /opt/miniconda3/share/jupyter/lab/settings/page_config.json
/opt/miniconda3/share/jupyter/lab/settings/page_config.json
again, but withjson.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 38 (char 39)
page_config.json
and it works again.# comments
are not allowed./etc
/etc/jupyterhub
/opt/miniconda3/bin/jupyter
Expected behavior
page_config.json
is broken. Instead it breaks the whole JupyterHub.hub_prefix
is incorrectly set and jupyterlab-hub won't work.Suggestions
README.md
to give clearer instructions. E.g. how to find your JupyterHub sub-directory.page_config.json
creation with the correct path set / support for how to set it, when clicked onHub --> Controlpanel
when JupyterHub cannot be foundScreenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
If available, please include the following details:
Troubleshoot Output
Command Line Output
Documentation: https://help.ubuntu.com
Management: https://landscape.canonical.com
Support: https://ubuntu.com/advantage
Ubuntu's Kubernetes 1.14 distributions can bypass Docker and use containerd
directly, see https://bit.ly/ubuntu-containerd or try it now with
snap install microk8s --classic
Canonical Livepatch is available for installation.
https://ubuntu.com/livepatch
17 packages can be updated.
13 updates are security updates.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
[I 190531 10:46:50 mediator:89] Spawning /opt/miniconda3/bin/jupyterhub-singleuser --port=45747 --NotebookApp.default_url=/lab
[I 2019-05-31 10:46:51.014 JupyterHub log:174] 302 GET /hub/spawn -> /hub/spawn-pending/user (user@127.0.0.1) 1007.01ms
[I 2019-05-31 10:46:51.051 JupyterHub pages:303] user is pending spawn
[I 2019-05-31 10:46:51.071 JupyterHub log:174] 200 GET /hub/spawn-pending/user (user@127.0.0.1) 26.98ms
[W 2019-05-31 10:46:51.317 SingleUserNotebookApp notebookapp:1580] Error loading server extension jupyterlab
Traceback (most recent call last):
File "/opt/miniconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1575, in init_server_extensions
func(self)
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/extension.py", line 115, in load_jupyter_server_extension
config = load_config(nbapp)
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/extension.py", line 41, in load_config
info = get_app_info(app_dir)
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 280, in get_app_info
handler = _AppHandler(app_dir, logger)
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 386, in init
self.info = self._get_app_info()
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 810, in _get_app_info
page_config = self._read_page_config()
File "/opt/miniconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 1215, in _read_page_config
return json.load(fid)
File "/opt/miniconda3/lib/python3.7/json/init.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/opt/miniconda3/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/opt/miniconda3/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/miniconda3/lib/python3.7/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 38 (char 39)
[I 2019-05-31 10:46:51.318 SingleUserNotebookApp singleuser:561] Starting jupyterhub-singleuser server version 1.0.0
[I 2019-05-31 10:46:51.321 JupyterHub log:174] 200 GET /hub/api (@127.0.0.1) 0.64ms
[I 2019-05-31 10:46:51.321 SingleUserNotebookApp notebookapp:1774] Serving notebooks from local directory: /home/user
[I 2019-05-31 10:46:51.321 SingleUserNotebookApp notebookapp:1774] The Jupyter Notebook is running at:
[I 2019-05-31 10:46:51.321 SingleUserNotebookApp notebookapp:1774] http://127.0.0.1:45747/user/*user*/
[I 2019-05-31 10:46:51.321 SingleUserNotebookApp notebookapp:1775] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2019-05-31 10:46:51.324 SingleUserNotebookApp singleuser:542] Updating Hub with activity every 300 seconds
[I 2019-05-31 10:46:51.339 JupyterHub log:174] 200 POST /hub/api/users/user/activity (user@127.0.0.1) 13.84ms
[I 2019-05-31 10:46:51.347 JupyterHub base:810] User user took 1.334 seconds to start
[I 2019-05-31 10:46:51.347 JupyterHub proxy:261] Adding user user to proxy /user/user/ => http://127.0.0.1:45747
[I 2019-05-31 10:46:51.347 SingleUserNotebookApp log:174] 302 GET /user/user/ -> /user/user/lab? (@127.0.0.1) 0.57ms
[I 2019-05-31 10:46:51.349 JupyterHub users:606] Server user is ready
[I 2019-05-31 10:46:51.349 JupyterHub log:174] 200 GET /hub/api/users/user/server/progress (user@127.0.0.1) 123.51ms
[I 2019-05-31 10:46:51.392 JupyterHub log:174] 302 GET /hub/spawn-pending/user -> /user/user/ (user@127.0.0.1) 5.82ms
[I 2019-05-31 10:46:51.434 SingleUserNotebookApp log:174] 302 GET /user/user/ -> /user/user/lab? (@127.0.0.1) 0.50ms
[W 2019-05-31 10:46:51.489 SingleUserNotebookApp log:174] 404 GET /user/user/lab? (@127.0.0.1) 23.03ms
Browser Output
The text was updated successfully, but these errors were encountered: