NERSC / jupyterlab-slurm

BSD 3-Clause "New" or "Revised" License
92 stars 23 forks source link

Ajax error on load #20

Closed wl2776 closed 5 years ago

wl2776 commented 5 years ago

Extension was installed according to instruction, system-wide, in custom python installation in /opt/anaconda

Our Jupyterlab runs on sub-uri /jupyterhub, on port 8000.

Here is the respective line from config

c.JupyterHub.base_url = '/jupyterhub'

On page load, dialog appears, saying

DataTables warning: table id=queue - Ajax error. 
For more information about this error, please see http://datatables.net/tn/7

I've tried studying the information in http://datatables.net/tn/7, and have found that URLs of the form http://localhost:8000/jupyterhub/user/username/squeue?userOnly=false&_=1559054598713 give return code 404

JonjonHays commented 5 years ago

This error is typically due to the server extension not being properly installed and enabled. Are running notebook 5.2 or earlier? If so you need to manually enable the extension (shown in the instructions); it also wouldn’t hurt to manually enable the extension anyways. Also, you can run:

jupyter serverextension list

And make sure you see jupyterlab_slurm installed and enabled.

wl2776 commented 5 years ago

Fixed by reinstalling extension and updating jupyterhub database.