我正在试着设置一个JupyterHub和一个码头产卵器。在我登录到我的JupyterHub后,我得到了以下错误:
500 : Internal Server Error
Error in Authenticator.pre_spawn_start: ChunkedEncodingError ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
You can try restarting your server from the home page.我的JupyterHub配置如下所示:
from jupyterhub.auth import Authenticator
class DictionaryAuthenticator(Authenticator):
passwords = {'max':'123'}
async def authenticate(self, handler, data):
if self.passwords.get(data['username']) == data['password']:
return data['username']
# docker image tag in the docker registry
c.DockerSpawner.image = 'jupyterhub/singleuser:latest'
# listen on all interfaces
c.DockerSpawner.host_ip = "0.0.0.0"
c.DockerSpawner.network_name = 'jupyterhub'
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
c.JupyterHub.authenticator_class = DictionaryAuthenticator下面是我的Dockerfile的内容:
FROM python:3.7
RUN pip3 install \
jupyterhub==1.0.0 \
'notebook>=5.0,<=6.0'
# create a user, since we don't want to run as root
RUN useradd -m max
ENV HOME=/home/max
WORKDIR $HOME
USER max
CMD ["jupyterhub-singleuser"]如何修复此错误?
提前感谢您的帮助!
发布于 2020-11-25 15:32:58
我能够解决这个问题。在我的例子中,Docker-Spawner只适用于docker版本2.3.0.5 (MacOS)。
如果有人遇到同样的问题-->只需降级即可。
https://stackoverflow.com/questions/64702243
复制相似问题