Hi,
I’m trying to deploy Jupyterhub with Podman instead of Docker (because I’m on RHEL).
I tried clean install of Podman 4.4.1 with Jupyterhub 4.0.2 and Dockerspawner 13.0.0 but I’m getting strange error.
[E 2024-02-13 15:43:13.897 JupyterHub user:894] Failed to cleanup <username>'s server that failed to start
Traceback (most recent call last):
File "<installPath>/envs/sys_jupyterhub/lib/python3.11/site-packages/jupyterhub/user.py", line 892, in spawn
await self.stop(spawner.name)
File "<installPath>/envs/sys_jupyterhub/lib/python3.11/site-packages/jupyterhub/user.py", line 986, in stop
status = await spawner.poll()
^^^^^^^^^^^^^^^^^^^^
File "<installPath>/envs/sys_jupyterhub/lib/python3.11/site-packages/dockerspawner/dockerspawner.py", line 1006, in poll
container = await self.get_object()
^^^^^^^^^^^^^^^^^^^^^^^
File "<installPath>/envs/sys_jupyterhub/lib/python3.11/site-packages/dockerspawner/dockerspawner.py", line 1029, in get_object
obj = await self.docker("inspect_%s" % self.object_type, self.object_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<installPath>/envs/sys_jupyterhub/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<installPath>/envs/sys_jupyterhub/lib/python3.11/site-packages/dockerspawner/dockerspawner.py", line 992, in _docker
m = getattr(self.client, method)
^^^^^^^^^^^
File "<installPath>/envs/sys_jupyterhub/lib/python3.11/site-packages/dockerspawner/dockerspawner.py", line 140, in client
client = docker.APIClient(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<installPath>/envs/sys_jupyterhub/lib/python3.11/site-packages/docker/api/client.py", line 197, in __init__
self._version = self._retrieve_server_version()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<installPath>/envs/sys_jupyterhub/lib/python3.11/site-packages/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
I redacted path and my username (using <>).
Is this info outdated ?
https://jupyterhub-dockerspawner.readthedocs.io/en/latest/spawner-types.html#using-podman
I’m running podman as service, yet JupyterHub refuse to work.
Can I ask for help ?
Is there any compatibility matrix between podman and jupyterhub ?
Or is my installation/config bad ? I’m using clean installation, with very basic config. If you managed to get Jupyterhub to work with Podman, can you share your config file ?
Thank you very much for any advice. J.T.