Package: jupyterhub
Version: 2.0.0+ds1-1
Severity: important

Dear Maintainer,

I try to connect to http://localhost:8000 and log in with PAM.  That
works.  However, the
page fails to redirect to the server spawned.

I stop the service

    sudo service jupyterhub stop

and spawn jupyterhub in a terminal

    jupyterhub

Then I connect back to http://localhost:8000 and log in again.  That
works, but still fails
to redirect to spawned server.  Looking in the log output in the
terminal, I see the page
try to access

    /usr/share/jupyterhub/static/components/jquery/dist/jquery.min.js
    /usr/share/jupyterhub/static/components/bootstrap/dist/js/bootstrap.min.js

which does not exists (they exist one level up - i.e., without the
`dist` sub-dir).  This gives the errors
and warnings

    [E JupyterHub web:2990] Could not open static file
'/usr/share/jupyterhub/static/components/jquery/dist/jquery.min.js'
    [E JupyterHub web:2990] Could not open static file
'/usr/share/jupyterhub/static/components/bootstrap/dist/js/bootstrap.min.js'
    [I JupyterHub log:189] 200 GET /hub/login?next=%2Fhub%2F
(@::ffff:127.0.0.1) 83.19ms
    [W JupyterHub log:189] 404 GET
/hub/static/components/jquery/dist/jquery.min.js (@::ffff:127.0.0.1)
1.59ms
    [W JupyterHub log:189] 404 GET
/hub/static/components/bootstrap/dist/js/bootstrap.min.js
(@::ffff:127.0.0.1) 1.77ms
    [W JupyterHub log:189] 404 GET
/hub/static/components/jquery/dist/jquery.min.js (@::ffff:127.0.0.1)
2.10ms
    [W JupyterHub log:189] 404 GET
/hub/static/components/bootstrap/dist/js/bootstrap.min.js
(@::ffff:127.0.0.1) 5.71ms

I guess the URL needs to be corrected or something similar.  As a
temporary work-around I add symlinks

    (cd /usr/share/jupyterhub/static/components/jquery/ && sudo ln -s . dist)
    (cd /usr/share/jupyterhub/static/components/bootstrap/ && sudo ln -s . dist)

and stop and restart the server.  Then I go to  http://localhost:8000
and log in again.  That works
and I get redirected to the spawned server.

Finally, when I try to spawn a terminal from the tree overview I
simply get an empty page.  There are no error messages in the
terminal running jupytehub, but in the javascript console of the
browser (client), I see

    Uncaught ReferenceError: exports is not defined
    at index.js:1

where index.js is

    
http://127.0.0.1:8000/HOME/static/notebook/terminal/js/components/xterm.js-fit/index.js

which is

    
/usr/lib/python3/dist-packages/notebook/static/components/xterm.js-fit/index.js

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages jupyterhub depends on:
ii  fonts-font-awesome            5.0.10+really4.7.0~dfsg-4.1
ii  libjs-bootstrap               3.4.1+dfsg-2
ii  libjs-jquery                  3.5.1+dfsg+~3.5.5-8
ii  libjs-prototype               1.7.1-3.1
ii  libjs-requirejs               2.3.6+ds-1
ii  node-configurable-http-proxy  4.5.0+~cs15.1.4-1
ii  python3                       3.9.8-1
ii  python3-alembic               1.7.1-3
ii  python3-async-generator       1.10-3
ii  python3-bcrypt                3.2.0-1+b1
ii  python3-certipy               0.1.3-3
ii  python3-dateutil              2.8.1-6
ii  python3-entrypoints           0.3-10
ii  python3-jinja2                3.0.1-2
ii  python3-jupyter-telemetry     0.1.0-3
ii  python3-notebook              6.4.5-2
ii  python3-oauthlib              3.1.1-1
ii  python3-packaging             21.3-1
ii  python3-pamela                1.0.0-2
ii  python3-prometheus-client     0.9.0-1
ii  python3-requests              2.25.1+dfsg-2
ii  python3-sqlalchemy            1.4.23+ds1-5
ii  python3-tornado               6.1.0-3
ii  python3-traitlets             5.1.1-1

jupyterhub recommends no packages.

jupyterhub suggests no packages.

-- no debconf information

Thanks.

Yours,

-- 
Christian Holm Christensen -------------------------------------------------
 Sankt Hans Gade 23, 4, DK-2200 Copenhagen
 http://cern.ch/cholm, +4524618591

Reply via email to