migrating from XNAT 1.8.8 to 1.8.10 JupyterHub 1.1

57 views
Skip to first unread message

Nadya Shusharina

unread,
Mar 20, 2024, 11:00:01 PM3/20/24
to xnat_discussion
Hello,

I have set up XNAT 1.8.10 with JupyterHub plugin 1.1.0. It all works. My data was stored in XNAT 1.8.8. When I am copying over archive and postgres-data from 1.8.8 to 1.8.10, I get an error when launching Jupyter notebook.
Thank you,
Nadya

Snag_62c9fe68.png

Andrew Lassiter

unread,
Mar 25, 2024, 10:50:45 AM3/25/24
to xnat_discussion
Hi Nadya,

In JupyterHub, there's a "pre_spawn_hook" function which calls XNAT and retrieve the configuration for a user's notebook container (mounts, cpu and mem requirements, etc). The error seems to suggest the configuration JSON returned from XNAT is empty or not valid JSON, which shouldn't be the case.

After starting a notebook from XNAT could you check the response from this API endpoint: /jupyterhub/users/{username}/server/user-options. You can access this in XNAT from: Administer -> Site Administration -> Other -> Miscellaneous -> Development Utilities -> View Swagger Page -> jupyter-hub-api -> endpoint: /jupyterhub/users/{username}/server/user-options

Thanks,
Andy
Screenshot 2024-03-25 at 9.36.15 AM.png

Nadya Shusharina

unread,
Mar 26, 2024, 4:41:04 PM3/26/24
to xnat_di...@googlegroups.com
Thank you Andy. In the web browser, using View Swagger Page -> jupyter-hub-api -> endpoint: /jupyterhub/users/{username}/server/user-options does return a good JSON. Nevertheless, Jupyter does not start, same error in the logs as before. I suspect that the JupyterHub cannot authenticate to XNAT which would result in a 404 or empty JSON. Is there a possibility that the 1.8.8 and 1.8.10 databases are not exactly the same? It did work with a clean install of 1.8.10, but I need to migrate my projects stored in 1.8.8.

Thank you,
Nadya

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/33c6659e-4e9f-42c1-ae01-35ecdce3b8a9n%40googlegroups.com.

Andrew Lassiter

unread,
Mar 28, 2024, 2:03:51 PM3/28/24
to xnat_discussion
Hi Nadya,

We did add fields to the user options JSON but you are getting a good JSON back so that seems to have updated successfully. We also moved some hibernate entites from the JupyterHub plugin to core XNAT, but I think that REST endpoint would have failed. I recently migrated a 1.8.9 XNAT + 1.0.0 JupyterHub Plugin to 1.8.10 + 1.1.0 and didn't have any issues. Do you see anything in the logs that might indicate a DB issue?

I would also verify that the JupyterHub user account is enabled.

Thank,
Andy
Reply all
Reply to author
Forward
0 new messages