1589990 : Unable to access NAF Jupyter lab¶
Created: 2026-04-07T10:11:14Z - current status: new¶
Anonymized Summary:
A user reports being unable to access their JupyterLab instance on the National Analysis Facility (NAF) platform. The error encountered is a "504 Gateway Time-out" when attempting to connect to the notebook URL (e.g., https://naf-jhub.desy.de/user/[USERNAME]).
Possible Causes & Solutions:¶
- Deadlocked Notebook Entry in the Hub
- The user’s notebook may be stuck in a deadlocked state, preventing normal shutdown or reconnection. This can occur due to:
- A failed route deletion in the proxy (e.g., timeout exceptions).
- A race condition where the HTCondor scheduler removes a notebook while the slot is quickly reassigned.
-
Solution:
- Try logging out and back in to force a fresh session.
- If the issue persists, the user may need to wait for the hub’s periodic cleanup (or contact admins if the patch for self-removal of deadlocked entries is not yet active).
- Check the
.jupyterhub.condor.errand.jupyterhub.condor.outlogs in the user’s$HOMEdirectory for errors.
-
Unresponsive CVMFS Mounts
- Hanging CVMFS mounts on the worker node may prevent the notebook from reporting its port back to the hub, leading to a timeout.
-
Solution:
- Retry spawning the notebook after some time (faulty nodes should be removed by the healthcheck system).
- If the issue recurs, check the logs for CVMFS-related errors.
-
Disk Quota Exceeded
- The error log snippet (
Disk quota exceeded) suggests the user’s$HOMEdirectory may be full, blocking critical operations. -
Solution:
- Clean up unnecessary files in
$HOMEor request a quota increase. - Verify disk usage with
fs lq(AFS) orquotacommands.
- Clean up unnecessary files in
-
Jupyter Configuration Issue
- A misconfigured local Jupyter setting (e.g.,
open_browser = Falsein.jupyter/jupyter_server_config.json) may interfere with the hub connection. -
Solution:
- Comment out or remove the
open_browserentry in the config file.
- Comment out or remove the
-
General Timeout Causes
- The hub may be under heavy load, or the worker node may be unresponsive.
- Solution:
- Wait a few minutes and retry.
- Check the NAF status page or contact support if the issue persists.
Recommended Next Steps:¶
- Check Logs:
- Review
.jupyterhub.condor.errand.jupyterhub.condor.outin$HOMEfor specific errors. - Free Up Disk Space:
- Run
fs lqto check quota usage and delete unnecessary files. - Retry Spawning:
- Log out, clear browser cache, and attempt to reconnect.
- Contact Support:
- If the problem remains unresolved, reach out to the NAF support team with the error logs.
Sources Used: - NAF Documentation: Notebook Spawning Issues - NAF Documentation: JupyterHub Logs