Your message dated Wed, 28 May 2025 15:07:26 +0000
with message-id <e1ukink-0019yc...@fasolo.debian.org>
and subject line Bug#1038110: fixed in jupyterhub 5.2.1+ds1-4
has caused the Debian Bug report #1038110,
regarding jupyterhub: config.yaml config file that comes in package is never
read
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1038110: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038110
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: jupyterhub
Version: 3.0.0+ds1-1
Severity: important
X-Debbugs-Cc: xi...@australdx.fr
Dear Maintainer,
The jupyterhub Debian package comes with a
/etc/jupyterhub/config/jupyterhub_config.d/config.yaml configuration
file (that is an empty valid YAML file).
The package also includes a /usr/lib/systemd/system/jupyterhub.service
which passes that YAML configuration file path to the command to launch
JupyterHub:
ExecStart=/usr/bin/python3 -m jupyterhub.app -f
/etc/jupyterhub/config/jupyterhub_config.d/config.yaml --upgrade-db
The config.yaml was added by commit:
> commit d95b38e175f746b26992ccae18f61cecde5c3479
> Author: Roland Mas <lola...@debian.org>
> Date: Wed Jun 2 16:06:51 2021 +0200
>
> Add empty config file
The jupyterhub.service was added by commit:
> commit 306c215c07f978bf7292c06c50c666602fa7a383
> Author: Roland Mas <lola...@debian.org>
> Date: Wed Jun 2 16:13:16 2021 +0200
>
> Add systemd service file
and the command line hasn't changed since then.
However, a source code analysis, an strace, and actually trying to put
configuration options in this file show that it is never read.
This is because only Python (with a .py extension) or JSON (with a
.json extension) files are supported, as you can check in method
_load_config_files() of
/usr/lib/python3/dist-packages/traitlets/config/application.py
Dynamically, launching:
/var/lib/jupyterhub# strace -tt -ff -o jupyterhub.strace /usr/bin/python3 -m
jupyterhub.app -f /etc/jupyterhub/config/jupyterhub_config.d/config.yaml
--upgrade-db
confirms that the file is not read by analysis of the resulting straces.
Another way to check is to simply modify the config.yaml file and see
that no option we put in there have any effect.
Due to how _load_config_files() works, i.e. ignoring the extension and trying
to load .py and .json files on the basename, we can however create a new file
/etc/jupyterhub/config/jupyterhub_config.d/config.json, and its content
is taken into account (without even changing the command line). See examples
at the end.
I suggest to remove the config.yaml file from the package, and
to modify the command line used to launch JupyterHub to:
/usr/bin/python3 -m jupyterhub.app -f /etc/jupyterhub/jupyterhub_config.py
--upgrade-db
I'm also unsure about the effect of
/etc/jupyterhub/config/jupyterhub_config.d/50-use-configurable-http-proxy.py
I suspect it has no effect. In any case it does not appear in the
straces. The whole /etc/jupyterhub/config subtree should maybe be removed.
-- System Information:
Debian Release: 12.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-0.deb11.7-amd64 (SMP w/62 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
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-3
ii libjs-jquery 3.6.1+dfsg+~3.5.14-1
ii libjs-prototype 1.7.3-1
ii libjs-requirejs 2.3.6+ds+~2.1.34-2
ii node-configurable-http-proxy 4.5.3+~cs15.2.4-3
ii python3 3.11.2-1+b1
ii python3-alembic 1.8.1-2
ii python3-async-generator 1.10-4
ii python3-bcrypt 3.2.2-1
ii python3-certipy 0.1.3-4
ii python3-dateutil 2.8.2-2
ii python3-jinja2 3.1.2-1
ii python3-jupyter-telemetry 0.1.0-4
ii python3-notebook 6.4.12-2.2
ii python3-oauthlib 3.2.2-1
ii python3-packaging 23.0-1
ii python3-pamela 1.0.0-3
ii python3-prometheus-client 0.16.0-0.1
ii python3-requests 2.28.1+dfsg-1
ii python3-sqlalchemy 1.4.46+ds1-1
ii python3-tornado 6.2.0-3
ii python3-traitlets 5.5.0-1
jupyterhub recommends no packages.
jupyterhub suggests no packages.
-- Configuration Files:
/etc/jupyterhub/config/jupyterhub_config.d/config.yaml changed:
---
Application:
show_config_json: true
JupyterHub:
port: 7777
-- no debconf information
*** /etc/jupyterhub/config/jupyterhub_config.d/config.json
{
"Application": {
"show_config_json": true
},
"JupyterHub": {
"port": 8888
}
}
--- End Message ---
--- Begin Message ---
Source: jupyterhub
Source-Version: 5.2.1+ds1-4
Done: Picca Frédéric-Emmanuel <pi...@debian.org>
We believe that the bug you reported is fixed in the latest version of
jupyterhub, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1038...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Picca Frédéric-Emmanuel <pi...@debian.org> (supplier of updated jupyterhub
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 28 May 2025 11:40:25 +0200
Source: jupyterhub
Architecture: source
Version: 5.2.1+ds1-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Picca Frédéric-Emmanuel <pi...@debian.org>
Closes: 1038110
Changes:
jupyterhub (5.2.1+ds1-4) unstable; urgency=medium
.
* use ucf in order to manage the config file
* Bug fix: "config.yaml config file that comes in package is never
read", thanks to Guillaume Knispel (Closes: #1038110).
Checksums-Sha1:
7599475ed2b3e470921ab1e11a0f49a92c87055a 2757 jupyterhub_5.2.1+ds1-4.dsc
57ae9c291dd49cbc65f7144edf17d28518d181f9 6412
jupyterhub_5.2.1+ds1-4.debian.tar.xz
Checksums-Sha256:
4b2194fa0d255bd48e7ee18d50476da1c599148744b19cc0b79e784739a87eb6 2757
jupyterhub_5.2.1+ds1-4.dsc
1860bec437075a64494925675ac761388498f29c8dd5c3a0e7804d86bb5ee538 6412
jupyterhub_5.2.1+ds1-4.debian.tar.xz
Files:
782e5d06cf3a9a7e28dd81d694026f00 2757 python optional
jupyterhub_5.2.1+ds1-4.dsc
dbff0650af1def9555374d8daf79dd57 6412 python optional
jupyterhub_5.2.1+ds1-4.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEE2bRTt5m4gw2UXmoKW/VOXhK5ALsFAmg3HN4RHHBpY2NhQGRl
Ymlhbi5vcmcACgkQW/VOXhK5ALvS3A/+Pnx+2nAX33TkXYiH3O2yn7YnUC2MVN8U
Yj4YerAzAi4SdrzJHkKgfVktNT8w3/1KGam+PkhwJL77gBLddjyGRjRXTRTaHBi+
Z7aR8tAgcQDG7VltRIy/E0Do2EN+WaYGiCupb9FWBJ3crv+nFOPKEQVMfssMv6rP
CHI1N3OHwSRIfBWfPLnqcXR/Hg1pJ3fzpMVucrIPWwVr+IJrK7EkrxU64ndKsuoA
eAFTstnDkYE4cDH+5vEeHvD66k6YZpGZS6FlEcI7EjfTbH7S0ntEmW2WOj90877Y
8OUz1UYK5iP7xpoX/KkfA9qFkQoVt96NoZR0HfBrrT7JkhMtcuWhUX/4V61pVJle
yvgGmtvr/h3rHGuYwK+8z+V6wzqzNWK4Dsk4QYMarSR0QyVBjLqTO7PA2EF3WUMK
5T/nkmhSOgT37Ypj+AdJuSN+kYlpYelXp/sEVf+EDs6dmY8P6i18cInkqkU6VSft
NIXy8mJ5JUdwTIzzkOJnG0Q+Lv550y3E5uucht/FOg38ymc7W2XFAZioUsWr30kO
fA/bkAfo1AqAGhxxvCrmVYyJKSbECtVA4MqFIK9vVAW/oMnlAylJEXWQCXF4Sq5B
DINyfEBpoTUCXOtWraHZf0/MPaKwpERjDNkOEnYHg3AZ3HV9KwfSd5FbSvqqDOZF
FcHx2rHyFSs=
=FSN8
-----END PGP SIGNATURE-----
pgpEqgcySAyVm.pgp
Description: PGP signature
--- End Message ---