Guild view not working in jupyterhub

I am using GuildAI in a Jupyter Lab server provisioned in Jupyterhub. To view the UI, I run the command guild view --host=localhost --port=5000 but am getting the error “Failed to load resource: the server responded with a status of 404 (Not Found)”. On the other hand, guild tensorboard --host=localhost --port=5000 works fine for me. I’m not sure what’s the issue or how to debug it.

Packages:
guildai==0.8.1
jupyterhub==1.5.0
jupyterlab==3.4.7

Hello and welcome! Could you post a screen shot of the web page showing the 404? I wonder if this is coming from Guild or from a proxy sitting between your browser and Guild. I sadly don’t know anything about Jupyterhub but I’d like to make sure Guild is working there!

I’ll see if I can replicate with a new account there.

Sorry you’re facing this!

Thank you very much for the quick response. I have attached the screenshot. It seems like the issue might be due to static css and js files and the paths are wrong when I proxy the Guild View UI using Jupyter server proxy (guild view --host localhost --port 8888). Any tips to resolve this would be much appreciated!

The paths that are being requested appear to all be hub related (not something related to Guild View). What is the URL you’re starting with in the browser? If Guild View is running on port 8888 it ought to simply be http://<host>:8888/.

Not to get too wonky here, but if you look at the ‘Server’ header in the response to any of those 404s, you should see this, if Guild View is providing the result (I suspect it is):

Server: Werkzeug/2.2.2 Python/<version>

If you type that into the browser and get a redirect, there’s a proxy sitting in the middle that’s trying to point you to hub related pages.

I wasn’t able to find a way to setup a JupyerHub account so I’m taking stabs in the dark here.