Http://<nil>:52305/user/chenzw2-test-9dh75nk5/

[W 2024-12-03 15:02:47.110 JupyterHub user:1055] chenzw2-test-9dh75nk5's server never showed up at http://<nil>:52305/user/chenzw2-test-9dh75nk5/ after 30 seconds. Giving up.
    
    Common causes of this timeout, and debugging tips:
    
    1. The server didn't finish starting,
       or it crashed due to a configuration issue.
       Check the single-user server's logs for hints at what needs fixing.
    2. The server started, but is not accessible at the specified URL.
       This may be a configuration issue specific to your chosen Spawner.
       Check the single-user server logs and resource to make sure the URL
       is correct and accessible from the Hub.
    3. (unlikely) Everything is working, but the server took too long to respond.
       To fix: increase `Spawner.http_timeout` configuration
       to a number of seconds that is enough for servers to become responsive.

[D 2024-12-03 15:02:47.113 JupyterHub user:1100] Stopping chenzw2-test-9dh75nk5

why host is ?How to configure this IP address?I use LocalContainerSpawner test.

1 Like

Please can you give us more context? What exactly have you setup, and how are you triggering this issue? Ideally please give us enough information to recreate your issue from scratch.

export DOCKER_HOST="tcp://localhost:2375"

cd local-binder-local-hub

jupyterhub --config=jupyterhub_config.py

Then you can see the problem.

cd local-binder-local-hub

export DOCKER_HOST="tcp://localhost:2375"
export AUTHENTICATOR=dummy
jupyterhub --config=jupyterhub_config.py
[D 2024-12-04 08:37:28.677 JupyterHub dockerspawner:1205] Starting host with config: {'auto_remove': True, 'binds': {}, 'links': {}, 'mounts': [], 'mem_limit': 0, 'cpu_period': 100000, 'cpu_quota': 0, 'port_bindings': {8888: ('localhost',)}, 'network_mode': 'bridge'}
[I 2024-12-04 08:37:32.159 JupyterHub dockerspawner:1311] Created container jupyter-1820383484 (id: a81c829) from image chenzw2-2dtest-d2d6b8:68a0a220d4b328ea76f971af6c4246ed18a1b116
[I 2024-12-04 08:37:32.159 JupyterHub dockerspawner:1335] Starting container jupyter-1820383484 (id: a81c829)
[D 2024-12-04 08:37:36.345 JupyterHub spawner:1469] Polling subprocess every 30s
[D 2024-12-04 08:37:36.345 JupyterHub dockerspawner:972] Persisting state for 1820383484: container name=jupyter-1820383484, id=a81c829388367ae13160f2b93365cce2bccd4e9c96910de08dca4b51d926b71b

[W 2024-12-04 08:38:05.449 JupyterHub user:1055] 1820383484's server never showed up at http://127.0.0.1:57264/user/1820383484/ after 30 seconds. Giving up.  

    Common causes of this timeout, and debugging tips:

    1. The server didn't finish starting,
       or it crashed due to a configuration issue.
       Check the single-user server's logs for hints at what needs fixing.
    2. The server started, but is not accessible at the specified URL.
       This may be a configuration issue specific to your chosen Spawner.
       Check the single-user server logs and resource to make sure the URL
       is correct and accessible from the Hub.
    3. (unlikely) Everything is working, but the server took too long to respond.
       To fix: increase `Spawner.http_timeout` configuration
       to a number of seconds that is enough for servers to become responsive.

[D 2024-12-04 08:38:05.452 JupyterHub user:1100] Stopping 1820383484
[D 2024-12-04 08:38:05.452 JupyterHub dockerspawner:1027] Getting container 'jupyter-1820383484'
[D 2024-12-04 08:38:05.461 JupyterHub dockerspawner:1012] Container a81c829 status: {'Dead': False,
     'Error': '',
     'ExitCode': 0,
     'FinishedAt': '0001-01-01T00:00:00Z',
     'OOMKilled': False,
     'Paused': False,
     'Pid': 19902,
     'Restarting': False,
     'Running': True,
     'StartedAt': '2024-12-04T00:37:35.151146567Z',
     'Status': 'running'}
[I 2024-12-04 08:38:05.463 JupyterHub dockerspawner:1424] Stopping container jupyter-1820383484 (id: a81c829)

[D 241204 10:34:48 selector_events:59] Using selector: EpollSelector
[W 241204 10:34:48 app:702] Generating random build token secret. Set BinderHub.build_token_secret to avoid this warning.
[I 241204 10:34:48 app:1104] BinderHub starting on port 8585
[I 2024-12-04 10:34:56.304 JupyterHub log:192] 302 GET / -> /hub/ (@::1) 1.67ms
[I 2024-12-04 10:34:56.316 JupyterHub log:192] 302 GET /hub/ -> /services/binder/ (@::1) 0.94ms
[D 241204 10:34:56 auth:835] No user identified
[D 241204 10:34:56 auth:1398] Redirecting to login url: /hub/api/oauth2/authorize?client_id=service-binder&redirect_uri=%2Fservices%2Fbinder%2Foauth_callback&response_type=code
[I 241204 10:34:56 log:135] 302 GET /services/binder/ -> /hub/api/oauth2/authorize?client_id=service-binder&redirect_uri=%2Fservices%2Fbinder%2Foauth_callback&response_type=code&state=[secret] (@::1) 1.66ms
[I 2024-12-04 10:34:56.333 JupyterHub log:192] 302 GET /hub/api/oauth2/authorize?client_id=service-binder&redirect_uri=%2Fservices%2Fbinder%2Foauth_callback&r
esponse_type=code&state=[secret] -> /hub/login?next=%2Fhub%2Fapi%2Foauth2%2Fauthorize%3Fclient_id%3Dservice-binder%26redirect_uri%3D%252Fservices%252Fbinder%252Foauth_callback%26response_type%3Dcode%26state%3D-dkKrGc5-mzYu73A1e9CUg (@::1) 1.24ms
[E 2024-12-04 10:34:56.341 JupyterHub web:1875] Uncaught exception GET /hub/login?next=%2Fhub%2Fapi%2Foauth2%2Fauthorize%3Fclient_id%3Dservice-binder%26redirect_uri%3D%252Fservices%252Fbinder%252Foauth_callback%26response_type%3Dcode%26state%3D-dkKrGc5-mzYu73A1e9CUg (::1)
    HTTPServerRequest(protocol='http', host='localhost:8000', method='GET', uri='/hub/login?next=%2Fhub%2Fapi%2Foauth2%2Fauthorize%3Fclient_id%3Dservice-binder%26redirect_uri%3D%252Fservices%252Fbinder%252Foauth_callback%26response_type%3Dcode%26state%3D-dkKrGc5-mzYu73A1e9CUg', version='HTTP/1.1', remote_ip='::1') 
    Traceback (most recent call last):
      File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/tornado/web.py", line 1790, in _execute
        result = await result
      File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyterhub/handlers/login.py", line 144, in get
        user = await self.login_user()
      File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyterhub/handlers/base.py", line 964, in login_user
        authenticated = await self.authenticate(data)
      File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyterhub/auth.py", line 695, in get_authenticated_user
        authenticated = await maybe_future(self.authenticate(handler, data))
      File "/root/.pyenv/versions/3.8.1/lib/python3.8/site-packages/jupyterhub/auth.py", line 1525, in authenticate
        return data['username']
    TypeError: 'NoneType' object is not subscriptable

[I 2024-12-04 10:34:56.347 JupyterHub _xsrf_utils:125] Setting new xsrf cookie for b'de5b4b831282450ab2aa9e8bd1077670:Br627lrfn2gM1iqFH4sZYZmZ4kgHjkqFVOpmFuNHz4M=' {'path': '/hub/', 'max_age': 3600}
[D 2024-12-04 10:34:56.349 JupyterHub base:1519] Using default error template for 500
[E 2024-12-04 10:34:56.379 JupyterHub log:184] {
      "X-Forwarded-Host": "localhost:8000",
      "X-Forwarded-Proto": "http",
      "X-Forwarded-Port": "8000",
      "X-Forwarded-For": "::1",
      "Cookie": "_xsrf=[secret]; remember_user_token=[secret]; known_sign_in=[secret]; access_token=[secret]; refresh_token=[secret]; jupyterhub-session-id=[secret]",
      "Accept-Language": "zh-CN,zh;q=0.9",
      "Accept-Encoding": "gzip, deflate, br, zstd",
      "Sec-Ch-Ua-Platform": "\"Windows\"",
      "Sec-Ch-Ua-Mobile": "?0",
      "Sec-Ch-Ua": "\"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\"",
      "Sec-Fetch-Dest": "document",
      "Sec-Fetch-User": "?1",
      "Sec-Fetch-Mode": "navigate",
      "Sec-Fetch-Site": "none",
      "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",    
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
      "Upgrade-Insecure-Requests": "1",
      "Connection": "keep-alive",
      "Host": "localhost:8000"
    }
[E 2024-12-04 10:34:56.383 JupyterHub log:192] 500 GET /hub/login?next=%2Fhub%2Fapi%2Foauth2%2Fauthorize%3Fclient_id%3Dservice-binder%26redirect_uri%3D%252Fservices%252Fbinder%252Foauth_callback%26response_type%3Dcode%26state%3D-dkKrGc5-mzYu73A1e9CUg (@::1) 40.33ms

now, I have encountered a new problem.

Which repository are you trying to build and launch? Do you have problems using one of the example CI repositories, such as

1 Like