JupyterHub не подключается к общедоступному порту - PullRequest
0 голосов
/ 21 марта 2019

JupyterHub не работает на общедоступном порту 8000. Он работает только на порте 8081. Везде, где я читал, все магически решали свои проблемы без каких-либо решений.

https://github.com/jupyterhub/jupyterhub/issues/742

jupyterhub_config.py

from oauthenticator.gitlab import GitLabOAuthenticator
c.JupyterHub.authenticator_class = GitLabOAuthenticator
c.GitLabOAuthenticator.oauth_callback_url = 'http://localhost:8000/hub/oauth_callback'
c.GitLabOAuthenticator.client_id =  '...'
c.GitLabOAuthenticator.client_secret = '...'
c.ConfigurableHTTPProxy.debug = True
c.JupyterHub.hub_ip = '127.0.0.1'
c.JupyterHub.hub_port = 8081
c.JupyterHub.ip = '127.0.0.1'
c.JupyterHub.port = 8000
c.JupyterHub.spawner_class = 'simplespawner.SimpleLocalProcessSpawner'
c.JupyterHub.ssl_cert = '/srv/jupyterhub/jupyterhub.crt'
c.JupyterHub.ssl_key = '/srv/jupyterhub/jupyterhub.key'

Использование GitLab в качестве аутентификатора и simplespawner в качестве генератора.Не используется Docker.

JupyterHub -V 0.9.4

Configurable-HTTP-Proxy -V 4.0.1

Запуск Ubuntu 18.04 на VirtualBox.

1 Ответ

1 голос
/ 22 марта 2019

Очевидно, мне нужно запустить следующую строку в другом окне терминала перед JupyterHub.

Пробег:

configurable-http-proxy --ip=127.0.0.1 --port=8000 --api-ip=127.0.0.1 --api-port=8001

перед:

jupyterhub -f /srv/jupyterhub/jupyterhub_config.py --debug
...