Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect jupyterhub. #8134

Closed
Tracked by #12832
linette-zyy opened this issue Nov 2, 2021 · 28 comments
Closed
Tracked by #12832

Failed to connect jupyterhub. #8134

linette-zyy opened this issue Nov 2, 2021 · 28 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-remote Applies to remote Jupyter Servers verified Verification succeeded
Milestone

Comments

@linette-zyy
Copy link

Environment data

Build of Visual Studio Code - Insiders: 1.62.0-insider
Build of python-insider: v2021.12.1409662628-dev
Build of jupyter-release: v2021.10.1001408933
Build of pylance-release: v2021.10.3
Build of jupyter Keymap-release: v1.0.0
Build of jupyter Notebook Renderers-release: v1.0.3

Expected behaviour

  1. Windows install instructions
    a. Install Docker Desktop onto a machine
    b. Create a folder with a file 'Dockerfile' in it.
    c. Mark the file to look like so:
ARG BASE_CONTAINER=jupyterhub/jupyterhub
FROM $BASE_CONTAINER

USER root

USER $NB_UID
a. From a command prompt (in the same folder as the Dockerfile), run docker build -t jupyterhubcontainer:1.0 .
b. Run docker container create --name jupyterhub jupyterhubcontainer:1.0 jupyterhub
c. From the docker desktop app, start the jupyterhub container.
d. From the docker desktop app, run the CLI
  1. From the new command prompt, run adduser testuser
  2. Follow the series of prompts to add a password for this user
  3. Open VS code
  4. Open a folder with a python file in it.
  5. Run the Python: Specify local or remote Jupyter server for connections command.
  6. Pick 'Existing'
  7. Enter http://localhost:8000 (assuming the jupyter hub container was successful in launching)
  8. Reload VS code and reopen this folder.
    Run a cell in a python file.

Actual behavior

An error pops up when run cell
image
image

Jupyter Hub log

[I 2021-11-02 08:47:35.457 JupyterHub app:2459] Running JupyterHub version 1.4.2
[I 2021-11-02 08:47:35.458 JupyterHub app:2489] Using Authenticator: jupyterhub.auth.PAMAuthenticator-1.4.2
[I 2021-11-02 08:47:35.458 JupyterHub app:2489] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-1.4.2
[I 2021-11-02 08:47:35.458 JupyterHub app:2489] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.4.2
[I 2021-11-02 08:47:35.470 JupyterHub app:1579] Writing cookie_secret to /srv/jupyterhub/jupyterhub_cookie_secret
[I 2021-11-02 08:47:35.491 alembic.runtime.migration migration:164] Context impl SQLiteImpl.
[I 2021-11-02 08:47:35.492 alembic.runtime.migration migration:167] Will assume non-transactional DDL.
[I 2021-11-02 08:47:35.551 alembic.runtime.migration migration:556] Running stamp_revision  -> 4dc2d5a8c53c
[I 2021-11-02 08:47:36.085 JupyterHub proxy:497] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2021-11-02 08:47:36.088 JupyterHub app:1808] No admin users, admin interface will be unavailable.
[W 2021-11-02 08:47:36.088 JupyterHub app:1809] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2021-11-02 08:47:36.089 JupyterHub app:1838] Not using allowed_users. Any authenticated user will be allowed.
[I 2021-11-02 08:47:36.157 JupyterHub app:2526] Initialized 0 spawners in 0.002 seconds
[W 2021-11-02 08:47:36.161 JupyterHub proxy:699] Running JupyterHub without SSL.  I hope there is SSL termination happening somewhere else...
[I 2021-11-02 08:47:36.161 JupyterHub proxy:703] Starting proxy @ http://:8000
[I 2021-11-02 08:47:37.068 JupyterHub app:2774] Hub API listening on http://127.0.0.1:8081/hub/
[I 2021-11-02 08:47:37.076 JupyterHub proxy:347] Checking routes
[I 2021-11-02 08:47:37.077 JupyterHub proxy:432] Adding route for Hub: / => http://127.0.0.1:8081
[I 2021-11-02 08:47:37.086 JupyterHub app:2849] JupyterHub is now running at http://:8000
[I 2021-11-02 08:52:37.089 JupyterHub proxy:347] Checking routes
[I 2021-11-02 08:57:37.090 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:02:37.094 JupyterHub proxy:347] Checking routes
[C 2021-11-02 09:03:57.132 JupyterHub app:2937] Received signal SIGTERM, initiating shutdown...
[I 2021-11-02 09:03:57.132 JupyterHub app:2578] Cleaning up single-user servers...
[I 2021-11-02 09:03:57.133 JupyterHub proxy:772] Cleaning up proxy[10]...
[I 2021-11-02 09:03:57.133 JupyterHub app:2610] ...done
[I 2021-11-02 09:03:58.755 JupyterHub app:2459] Running JupyterHub version 1.4.2
[I 2021-11-02 09:03:58.756 JupyterHub app:2489] Using Authenticator: jupyterhub.auth.PAMAuthenticator-1.4.2
[I 2021-11-02 09:03:58.756 JupyterHub app:2489] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-1.4.2
[I 2021-11-02 09:03:58.756 JupyterHub app:2489] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.4.2
[I 2021-11-02 09:03:58.769 JupyterHub app:1534] Loading cookie_secret from /srv/jupyterhub/jupyterhub_cookie_secret
[I 2021-11-02 09:03:58.794 JupyterHub proxy:497] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2021-11-02 09:03:58.795 JupyterHub app:1808] No admin users, admin interface will be unavailable.
[W 2021-11-02 09:03:58.796 JupyterHub app:1809] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2021-11-02 09:03:58.796 JupyterHub app:1838] Not using allowed_users. Any authenticated user will be allowed.
[I 2021-11-02 09:03:58.851 JupyterHub app:2526] Initialized 0 spawners in 0.002 seconds
[W 2021-11-02 09:03:58.854 JupyterHub proxy:699] Running JupyterHub without SSL.  I hope there is SSL termination happening somewhere else...
[I 2021-11-02 09:03:58.854 JupyterHub proxy:703] Starting proxy @ http://:8000
[I 2021-11-02 09:03:59.784 JupyterHub app:2774] Hub API listening on http://127.0.0.1:8081/hub/
[I 2021-11-02 09:03:59.793 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:03:59.793 JupyterHub proxy:432] Adding route for Hub: / => http://127.0.0.1:8081
[I 2021-11-02 09:03:59.800 JupyterHub app:2849] JupyterHub is now running at http://:8000
[I 2021-11-02 09:08:59.803 JupyterHub proxy:347] Checking routes
[C 2021-11-02 09:12:36.079 JupyterHub app:2937] Received signal SIGTERM, initiating shutdown...
[I 2021-11-02 09:12:36.079 JupyterHub app:2578] Cleaning up single-user servers...
[I 2021-11-02 09:12:36.079 JupyterHub proxy:772] Cleaning up proxy[11]...
[I 2021-11-02 09:12:36.080 JupyterHub app:2610] ...done
08:47:36.845 [ConfigProxy] info: Proxying http://*:8000 to (no default)
08:47:36.848 [ConfigProxy] info: Proxy API at http://127.0.0.1:8001/api/routes
08:47:37.066 [ConfigProxy] info: 200 GET /api/routes 
08:47:37.075 [ConfigProxy] info: 200 GET /api/routes 
08:47:37.081 [ConfigProxy] info: Adding route / -> http://127.0.0.1:8081
08:47:37.082 [ConfigProxy] info: Route added / -> http://127.0.0.1:8081
08:47:37.083 [ConfigProxy] info: 201 POST /api/routes/ 
08:52:37.088 [ConfigProxy] info: 200 GET /api/routes 
08:57:37.090 [ConfigProxy] info: 200 GET /api/routes 
09:02:37.093 [ConfigProxy] info: 200 GET /api/routes 
09:03:57.135 [ConfigProxy] warn: Terminated
09:03:59.651 [ConfigProxy] info: Proxying http://*:8000 to (no default)
09:03:59.654 [ConfigProxy] info: Proxy API at http://127.0.0.1:8001/api/routes
09:03:59.782 [ConfigProxy] info: 200 GET /api/routes 
09:03:59.791 [ConfigProxy] info: 200 GET /api/routes 
09:03:59.796 [ConfigProxy] info: Adding route / -> http://127.0.0.1:8081
09:03:59.797 [ConfigProxy] info: Route added / -> http://127.0.0.1:8081
09:03:59.798 [ConfigProxy] info: 201 POST /api/routes/ 
09:08:59.802 [ConfigProxy] info: 200 GET /api/routes 
09:12:36.082 [ConfigProxy] warn: Terminated
09:12:38.485 [ConfigProxy] info: Proxying http://*:8000 to (no default)
09:12:38.488 [ConfigProxy] info: Proxy API at http://127.0.0.1:8001/api/routes
09:12:38.510 [ConfigProxy] info: 200 GET /api/routes 
09:12:38.517 [ConfigProxy] info: 200 GET /api/routes 
09:12:38.524 [ConfigProxy] info: Adding route / -> http://127.0.0.1:8081
09:12:38.525 [ConfigProxy] info: Route added / -> http://127.0.0.1:8081
09:12:38.526 [ConfigProxy] info: 201 POST /api/routes/ 
09:16:56.014 [ConfigProxy] warn: Terminated
09:16:58.436 [ConfigProxy] info: Proxying http://*:8000 to (no default)
09:16:58.439 [ConfigProxy] info: Proxy API at http://127.0.0.1:8001/api/routes
09:16:58.495 [ConfigProxy] info: 200 GET /api/routes 
09:16:58.501 [ConfigProxy] info: 200 GET /api/routes 
09:16:58.507 [ConfigProxy] info: Adding route / -> http://127.0.0.1:8081
09:16:58.508 [ConfigProxy] info: Route added / -> http://127.0.0.1:8081
09:16:58.510 [ConfigProxy] info: 201 POST /api/routes/ 
09:21:58.518 [ConfigProxy] info: 200 GET /api/routes 
09:26:58.514 [ConfigProxy] info: 200 GET /api/routes 
09:31:58.515 [ConfigProxy] info: 200 GET /api/routes 
09:36:58.515 [ConfigProxy] info: 200 GET /api/routes 
09:41:58.514 [ConfigProxy] info: 200 GET /api/routes 
09:46:58.515 [ConfigProxy] info: 200 GET /api/routes 
09:51:58.514 [ConfigProxy] info: 200 GET /api/routes 
09:56:58.513 [ConfigProxy] info: 200 GET /api/routes 
[I 2021-11-02 09:12:37.580 JupyterHub app:2459] Running JupyterHub version 1.4.2
[I 2021-11-02 09:12:37.580 JupyterHub app:2489] Using Authenticator: jupyterhub.auth.PAMAuthenticator-1.4.2
[I 2021-11-02 09:12:37.581 JupyterHub app:2489] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-1.4.2
[I 2021-11-02 09:12:37.581 JupyterHub app:2489] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.4.2
[I 2021-11-02 09:12:37.591 JupyterHub app:1534] Loading cookie_secret from /srv/jupyterhub/jupyterhub_cookie_secret
[I 2021-11-02 09:12:37.614 JupyterHub proxy:497] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2021-11-02 09:12:37.615 JupyterHub app:1808] No admin users, admin interface will be unavailable.
[W 2021-11-02 09:12:37.615 JupyterHub app:1809] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2021-11-02 09:12:37.616 JupyterHub app:1838] Not using allowed_users. Any authenticated user will be allowed.
[I 2021-11-02 09:12:37.669 JupyterHub app:2526] Initialized 0 spawners in 0.002 seconds
[W 2021-11-02 09:12:37.672 JupyterHub proxy:699] Running JupyterHub without SSL.  I hope there is SSL termination happening somewhere else...
[I 2021-11-02 09:12:37.673 JupyterHub proxy:703] Starting proxy @ http://:8000
[I 2021-11-02 09:12:38.512 JupyterHub app:2774] Hub API listening on http://127.0.0.1:8081/hub/
[I 2021-11-02 09:12:38.518 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:12:38.518 JupyterHub proxy:432] Adding route for Hub: / => http://127.0.0.1:8081
[I 2021-11-02 09:12:38.528 JupyterHub app:2849] JupyterHub is now running at http://:8000
[C 2021-11-02 09:16:56.013 JupyterHub app:2937] Received signal SIGTERM, initiating shutdown...
[I 2021-11-02 09:16:56.013 JupyterHub app:2578] Cleaning up single-user servers...
[I 2021-11-02 09:16:56.013 JupyterHub proxy:772] Cleaning up proxy[12]...
[I 2021-11-02 09:16:56.014 JupyterHub app:2610] ...done
[I 2021-11-02 09:16:57.562 JupyterHub app:2459] Running JupyterHub version 1.4.2
[I 2021-11-02 09:16:57.562 JupyterHub app:2489] Using Authenticator: jupyterhub.auth.PAMAuthenticator-1.4.2
[I 2021-11-02 09:16:57.562 JupyterHub app:2489] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-1.4.2
[I 2021-11-02 09:16:57.562 JupyterHub app:2489] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.4.2
[I 2021-11-02 09:16:57.576 JupyterHub app:1534] Loading cookie_secret from /srv/jupyterhub/jupyterhub_cookie_secret
[I 2021-11-02 09:16:57.609 JupyterHub proxy:497] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2021-11-02 09:16:57.610 JupyterHub app:1808] No admin users, admin interface will be unavailable.
[W 2021-11-02 09:16:57.611 JupyterHub app:1809] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2021-11-02 09:16:57.611 JupyterHub app:1838] Not using allowed_users. Any authenticated user will be allowed.
[I 2021-11-02 09:16:57.662 JupyterHub app:2526] Initialized 0 spawners in 0.002 seconds
[W 2021-11-02 09:16:57.665 JupyterHub proxy:699] Running JupyterHub without SSL.  I hope there is SSL termination happening somewhere else...
[I 2021-11-02 09:16:57.665 JupyterHub proxy:703] Starting proxy @ http://:8000
[I 2021-11-02 09:16:58.497 JupyterHub app:2774] Hub API listening on http://127.0.0.1:8081/hub/
[I 2021-11-02 09:16:58.503 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:16:58.504 JupyterHub proxy:432] Adding route for Hub: / => http://127.0.0.1:8081
[I 2021-11-02 09:16:58.512 JupyterHub app:2849] JupyterHub is now running at http://:8000
[I 2021-11-02 09:21:58.519 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:26:58.516 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:31:58.515 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:36:58.515 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:41:58.514 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:46:58.516 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:51:58.515 JupyterHub proxy:347] Checking routes
[I 2021-11-02 09:56:58.516 JupyterHub proxy:347] Checking routes
10:01:58.515 [ConfigProxy] info: 200 GET /api/routes 
[I 2021-11-02 10:01:58.515 JupyterHub proxy:347] Checking routes
10:06:58.514 [ConfigProxy] info: 200 GET /api/routes 
[I 2021-11-02 10:06:58.514 JupyterHub proxy:347] Checking routes

Jupyter log

Info 2021-11-02 10:03:44: Experimentation service retrieved: [object Object]
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-11-02 10:03:45: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 2021-11-02 10:03:49: Process Execution: > C:\ProgramData\Anaconda3\python.exe -c "import notebook"
> C:\ProgramData\Anaconda3\python.exe -c "import notebook"
Info 2021-11-02 10:03:49: Process Execution: > C:\ProgramData\Anaconda3\python.exe -c "import jupyter"
> C:\ProgramData\Anaconda3\python.exe -c "import jupyter"
Info 2021-11-02 10:03:50: Process Execution: > C:\ProgramData\Anaconda3\python.exe -m jupyter kernelspec --version
> C:\ProgramData\Anaconda3\python.exe -m jupyter kernelspec --version
Info 2021-11-02 10:03:55: Checking for server existence.
Info 2021-11-02 10:03:55: Checking for server usability.
Info 2021-11-02 10:03:55: Starting notebook server.
Info 2021-11-02 10:03:55: Connecting to history server
Info 2021-11-02 10:03:55: Creating jupyter server: 264537c7-fd7b-451f-99e0-68cc2670f317
Error 2021-11-02 10:04:13: findKernel crashed [h [FetchError]: request to http://127.0.0.1:8081/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8081
	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:335466)
	at ClientRequest.emit (events.js:315:20)
	at Socket.socketErrorListener (_http_client.js:469:9)
	at Socket.emit (events.js:315:20)
	at emitErrorNT (internal/streams/destroy.js:106:8)
	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
Info 2021-11-02 10:04:13: Find remote kernel spec, Class name = y, completed in 17892ms, has a falsy return value, Arg 1: undefined, Arg 2: {"type":"jupyter","baseUrl":"http://127.0.0.1:8081/","token":"null","hostName":"127.0.0.1","localLaunch":false,"valid":true,"displayName":"http://127.0.0.1:8081/?token=null","rootDirectory":"","url":"http://127.0.0.1:8081"}, Arg 3: undefined, Arg 4: <argument cannot be serialized for logging>, Return Value: undefined
Info 2021-11-02 10:04:13: Connecting to process for history server
Info 2021-11-02 10:04:13: Connecting server 264537c7-fd7b-451f-99e0-68cc2670f317 kernelSpec unknown
Connecting to Jupyter server at http://127.0.0.1:8081/
Error 2021-11-02 10:04:13: Failed to connect to server [h [FetchError]: request to http://127.0.0.1:8081/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8081
	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:335466)
	at ClientRequest.emit (events.js:315:20)
	at Socket.socketErrorListener (_http_client.js:469:9)
	at Socket.emit (events.js:315:20)
	at emitErrorNT (internal/streams/destroy.js:106:8)
	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
Info 2021-11-02 10:04:13: Killing server because of error FetchError: request to http://127.0.0.1:8081/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8081
Info 2021-11-02 10:04:13: Disposing HostJupyterServer
Info 2021-11-02 10:04:13: Shutting down notebooks for 264537c7-fd7b-451f-99e0-68cc2670f317
Info 2021-11-02 10:04:13: Shut down session manager : undefined
Info 2021-11-02 10:04:13: Shutdown server - dispose conn info
Info 2021-11-02 10:04:13: Finished disposing HostJupyterServer
Error 2021-11-02 10:04:13: Error loading notebook controllers [o [Error]: 
	at new o (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:45228)
	at Function.from (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:45318)
	at c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:102:738467
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

FetchError: request to http://127.0.0.1:8081/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8081
	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:335466)
	at ClientRequest.emit (events.js:315:20)
	at Socket.socketErrorListener (_http_client.js:469:9)
	at Socket.emit (events.js:315:20)
	at emitErrorNT (internal/streams/destroy.js:106:8)
	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
  category: 'unknown',
  originalException: [h [FetchError]: request to http://127.0.0.1:8081/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8081
  	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:335466)
  	at ClientRequest.emit (events.js:315:20)
  	at Socket.socketErrorListener (_http_client.js:469:9)
  	at Socket.emit (events.js:315:20)
  	at emitErrorNT (internal/streams/destroy.js:106:8)
  	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
  	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
    type: 'system',
    errno: 'ECONNREFUSED',
    code: 'ECONNREFUSED'
  }
}
Error 2021-11-02 10:04:13: DataScience Error [o [Error]: 
	at new o (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:45228)
	at Function.from (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:45318)
	at c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:102:738467
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

FetchError: request to http://127.0.0.1:8081/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8081
	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:335466)
	at ClientRequest.emit (events.js:315:20)
	at Socket.socketErrorListener (_http_client.js:469:9)
	at Socket.emit (events.js:315:20)
	at emitErrorNT (internal/streams/destroy.js:106:8)
	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
  category: 'unknown',
  originalException: [h [FetchError]: request to http://127.0.0.1:8081/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8081
  	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:335466)
  	at ClientRequest.emit (events.js:315:20)
  	at Socket.socketErrorListener (_http_client.js:469:9)
  	at Socket.emit (events.js:315:20)
  	at emitErrorNT (internal/streams/destroy.js:106:8)
  	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
  	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
    type: 'system',
    errno: 'ECONNREFUSED',
    code: 'ECONNREFUSED'
  }
}
Error 2021-11-02 10:04:13: Failed to find & set preferred controllers [o [Error]: 
	at new o (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:45228)
	at Function.from (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:45318)
	at c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:102:738467
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

FetchError: request to http://127.0.0.1:8081/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8081
	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:335466)
	at ClientRequest.emit (events.js:315:20)
	at Socket.socketErrorListener (_http_client.js:469:9)
	at Socket.emit (events.js:315:20)
	at emitErrorNT (internal/streams/destroy.js:106:8)
	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
  category: 'unknown',
  originalException: [h [FetchError]: request to http://127.0.0.1:8081/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8081
  	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001408933\out\client\extension.js:16:335466)
  	at ClientRequest.emit (events.js:315:20)
  	at Socket.socketErrorListener (_http_client.js:469:9)
  	at Socket.emit (events.js:315:20)
  	at emitErrorNT (internal/streams/destroy.js:106:8)
  	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
  	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
    type: 'system',
    errno: 'ECONNREFUSED',
    code: 'ECONNREFUSED'
  }
}
Info 2021-11-02 10:04:14: Creating daemon pool for C:\ProgramData\Anaconda3\python.exe with env variables count 63
Info 2021-11-02 10:04:14: Process Execution: > C:\ProgramData\Anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> C:\ProgramData\Anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-11-02 10:04:14: Process Execution: > C:\ProgramData\Anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> C:\ProgramData\Anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-11-02 10:04:14: Process Execution: > C:\ProgramData\Anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> C:\ProgramData\Anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-11-02 10:04:14: Registering dummy command feature
@linette-zyy linette-zyy added the bug Issue identified by VS Code Team member as probable bug label Nov 2, 2021
@rchiodo rchiodo removed their assignment Nov 2, 2021
@rchiodo rchiodo added notebook-remote Applies to remote Jupyter Servers remote-connection-failure labels Nov 2, 2021
@rchiodo
Copy link
Contributor

rchiodo commented Nov 2, 2021

Thanks @linette-zyy. Seems like we regressed jupyter hub at some point

@ttSpace
Copy link

ttSpace commented Dec 15, 2021

I can repro in today's build.

Build of Visual Studio Code - Insiders: 1.64.0-insider (user setup)   
Build of python-insider: v2022.0.1578295602-dev 
Build of jupyter-insider: v2022.1.1001576989 
Build of pylance-insider: v2021.12.2 
Build of jupyter Notebook Renderers: v1.0.4 
Build of jupyter Keymap: v1.0.0 

image

Jupyter Log

Jupyter Extension Version: 2022.1.1001576989.
Python Extension Verison: 2022.0.1578295602-dev.
Info 08:57:26: Experimentation service retrieved: [object Object]
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 08:57:26: ZMQ install verified.
Info 08:57:26: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 08:57:27: Process Execution: > C:\ProgramData\Anaconda3\python.exe -m pip list
> C:\ProgramData\Anaconda3\python.exe -m pip list
Info 08:57:32: Checking for server existence.
Info 08:57:32: Checking for server usability.
Info 08:57:32: Starting notebook server.
Info 08:57:32: Connecting to server
Info 08:57:32: Connecting to process server
Info 08:57:32: Connecting server kernel http://localhost:8000/
Connecting to Jupyter server at http://localhost:8000/
Info 08:57:35: Killing server because of error FetchError: request to http://localhost:8000/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8000
Info 08:57:35: Disposing HostJupyterServer
Info 08:57:35: Shutting down notebooks
Info 08:57:35: Shut down session manager : undefined
Info 08:57:35: Shutdown server - dispose conn info
Info 08:57:35: Finished disposing HostJupyterServer
Error 08:57:35: Failed to get remote kernel connections [o [Error]: 
	at new o (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2022.1.1001576989\out\client\extension.js:16:17911)
	at Function.from (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2022.1.1001576989\out\client\extension.js:16:18001)
	at c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2022.1.1001576989\out\client\extension.js:104:345982
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

FetchError: request to http://localhost:8000/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8000
	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2022.1.1001576989\out\client\extension.js:16:346120)
	at ClientRequest.emit (events.js:315:20)
	at Socket.socketErrorListener (_http_client.js:469:9)
	at Socket.emit (events.js:315:20)
	at emitErrorNT (internal/streams/destroy.js:106:8)
	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
  category: 'unknown',
  originalException: [h [FetchError]: request to http://localhost:8000/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8000
  	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2022.1.1001576989\out\client\extension.js:16:346120)
  	at ClientRequest.emit (events.js:315:20)
  	at Socket.socketErrorListener (_http_client.js:469:9)
  	at Socket.emit (events.js:315:20)
  	at emitErrorNT (internal/streams/destroy.js:106:8)
  	at emitErrorCloseNT (internal/streams/destroy.js:74:3)
  	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
    type: 'system',
    errno: 'ECONNREFUSED',
    code: 'ECONNREFUSED'
  }
}
Info 08:57:35: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd0b3ba2566441a7c06988d0923437866b63cedc61552a5af99d1f4fb67d367b25f.C:\ProgramData\Anaconda3\python.exe.C:\ProgramData\Anaconda3\python.exe.-m#ipykernel_launcher
Info 08:57:35: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 08:57:36: Starting Notebook in kernel.ts id = .jvsc74a57bd0b3ba2566441a7c06988d0923437866b63cedc61552a5af99d1f4fb67d367b25f.C:\ProgramData\Anaconda3\python.exe.C:\ProgramData\Anaconda3\python.exe.-m#ipykernel_launcher
Info 08:57:36: Creating raw notebook for vscode-interactive:Interactive-1.interactive
Info 08:57:36: Getting preferred kernel for vscode-interactive:Interactive-1.interactive
Info 08:57:36: Computing working directory vscode-interactive:Interactive-1.interactive
Info 08:57:36: Starting raw kernel base (Python 3.9.7)
Info 08:57:36: installMissingDependencies C:\ProgramData\Anaconda3\python.exe
Info 08:57:36: IPykernel found previously in this environment C:\ProgramData\Anaconda3\python.exe
Info 08:57:36: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 08:57:36: Launching kernel daemon for Python 3.9.7 64-bit ('base': conda) # C:\ProgramData\Anaconda3\python.exe
Info 08:57:36: Creating daemon process for C:\ProgramData\Anaconda3\python.exe with env variables count 65
Info 08:57:36: Process Execution: > C:\ProgramData\Anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> C:\ProgramData\Anaconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 08:57:37: Registering dummy command feature
Info 08:57:38: Starting kernel from scratch
Warn 08:57:43: StdErr from Kernel Process C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.

Warn 08:57:43: StdErr from Kernel Process   warn(

Warn 08:57:43: StdErr from Kernel Process C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '74593195-a749-4ece-9271-0ba98ba40f22' instead of 'b"74593195-a749-4ece-9271-0ba98ba40f22"'.

Warn 08:57:43: StdErr from Kernel Process   warn(

Info 08:57:43: Raw session started and connected
Started kernel base (Python 3.9.7)
Info 08:57:43: Finished connecting 6da09475-4122-4017-9f40-70db7bc54938
Info 08:57:43: UpdateWorkingDirectoryAndPath in Kernel
Info 08:57:43: changeDirectoryIfPossible
Info 08:57:43: Executing (status idle) silently Code = import os\nimport sys\n%cd "c:\Users\vting\Documents\Test5"\nif os.getcwd() not in sys.path:\nsys.pa
Info 08:57:43: Executing silently Code (completed) = import os\nimport sys\n%cd "c:\Users\vting\Documents\Test5"\nif os.getcwd() not in sys.path:\nsys.pa
Info 08:57:43: Executing (status idle) silently Code = __vsc_ipynb_file__ = 'c:\\Users\\vting\\Documents\\Test5\\test.py'
Info 08:57:43: Executing silently Code (completed) = __vsc_ipynb_file__ = 'c:\\Users\\vting\\Documents\\Test5\\test.py'
Info 08:57:43: Executing (status idle) silently Code = %config Completer.use_jedi = False
Info 08:57:43: Executing silently Code (completed) = %config Completer.use_jedi = False
Info 08:57:43: Executing (status idle) silently Code = %config InlineBackend.figure_formats = ['png']
Info 08:57:43: Executing silently Code (completed) = %config InlineBackend.figure_formats = ['png']
Info 08:57:43: Executing (status idle) silently Code = import sys\nprint(sys.executable)
Info 08:57:43: Executing silently Code (completed) = import sys\nprint(sys.executable)
Info 08:57:43: Waiting for idle on (kernel): d5e5290e-8afd-4ea9-a12a-581cf552490b -> idle
Info 08:57:43: Finished waiting for idle on (kernel): d5e5290e-8afd-4ea9-a12a-581cf552490b -> idle
Info 08:57:43: IPyWidgetScriptSource.initialize
Info 08:57:43: Executing (status idle) silently Code = __file__ = 'c:\\Users\\vting\\Documents\\Test5\\test.py'
Info 08:57:43: Executing silently Code (completed) = __file__ = 'c:\\Users\\vting\\Documents\\Test5\\test.py'
Info 08:57:44: Adding hash for 1 = e2766cb6d0d8 with 4 lines
Info 08:57:47: Cell 1 executed with state Success
Info 08:57:47: Finished execution for 32c2be35-3456-4e20-b493-5aa4534cc2bd

@ttSpace
Copy link

ttSpace commented May 24, 2022

I can repro in today's build.

Build of Visual Studio Code - Insiders: 1.68.0-insider(user setup) 
Build of python-insider: v2022.7.11401005 
Build of jupyter-insider: v2022.5.1001451024 
Build of pylance-insider: v2022.5.2 
Build of jupyter Notebook Renderers: v1.0.6 
Build of jupyter Keymap: v1.0.0 

image

Logs

Output for Jupyter in the Output panel

warn 8:27:53.796: Uri verification error [h [FetchError]: request to http://localhost:8000/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8000
	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2022.5.1001451024\out\extension.node.js:2:3862567)
	at ClientRequest.emit (node:events:390:28)
	at Socket.socketErrorListener (node:_http_client:447:9)
	at Socket.emit (node:events:390:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at processTicksAndRejections (node:internal/process/task_queues:83:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}

@rchiodo rchiodo added the triage-needed Issue needs to be triaged label May 24, 2022
@rchiodo rchiodo removed the triage-needed Issue needs to be triaged label May 26, 2022
@IanMatthewHuff
Copy link
Member

@ttSpace I just pushed a possible fix for this to our pre-release version of the extension. But I was having some issues with getting JupyterHub configured myself to test the fix. On Monday could you possibly check out the Pre-release version of the Jupyter extension and see if the issue still repros?

@ttSpace
Copy link

ttSpace commented May 27, 2022

@IanMatthewHuff OK, I'll verify the issue at that time. BTW, what's the specific Pre-release version of the Jupyter extension?

@ttSpace
Copy link

ttSpace commented May 31, 2022

@IanMatthewHuff I can repro in today's build.

Build of Visual Studio Code - Insiders: 1.68.0-insider(user setup) 
Build of python-insider: v2022.7.11461005
Build of jupyter-insider: v2022.5.1001491011
Build of pylance-insider: v2022.5.3 
Build of jupyter Notebook Renderers: v1.0.7
Build of jupyter Keymap: v1.0.0 

image

Logs

Output for Jupyter in the Output panel

warn 7:39:1.75: Uri verification error [h [FetchError]: request to http://localhost:8000/hub/api failed, reason: connect ECONNREFUSED 127.0.0.1:8000
	at ClientRequest.<anonymous> (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-2022.5.1001491011\out\extension.node.js:2:3847740)
	at ClientRequest.emit (node:events:390:28)
	at Socket.socketErrorListener (node:_http_client:447:9)
	at Socket.emit (node:events:390:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at processTicksAndRejections (node:internal/process/task_queues:83:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}

@IanMatthewHuff IanMatthewHuff removed their assignment Jun 10, 2022
@IanMatthewHuff
Copy link
Member

Sounds like it wasn't the same password issue. Pulling back to triage to discuss as an iteration candidate.

@IanMatthewHuff IanMatthewHuff added the triage-needed Issue needs to be triaged label Jun 10, 2022
@rchiodo rchiodo removed the triage-needed Issue needs to be triaged label Jun 13, 2022
@IanMatthewHuff IanMatthewHuff removed their assignment Aug 12, 2022
@DonJayamanne DonJayamanne self-assigned this Aug 15, 2022
@alexmill
Copy link

I'm currently getting this same issue in pre-release version (v2023.6.1001741100), but not the release version (v2023.5.1001582324).

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jun 22, 2023

@alexmill
Please could you share your output from the Jupyter output panel, you can use the command Jupyetr: Show Output to display that.
Please paste all of the output (there will be some useful information at the top and errors are usaully towards the bottom)

Also what version of Jupyter Hub are you using? I've never been able to get this working in VS Code with the latest version of Jupyter Hub as there have been a few changes in the auth process.

@DonJayamanne DonJayamanne modified the milestones: June 2023, July 2023 Jun 26, 2023
@DonJayamanne DonJayamanne modified the milestones: July 2023, August 2023 Jul 25, 2023
@DonJayamanne
Copy link
Contributor

@alexmill @ttSpace @linette-zyy
We have shipped a new JupyterHub extension, currently this works only in VS Code Insiders,
Please install VS Code insiders, and this new extension https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter-hub
Let me know how this goes.

@DonJayamanne DonJayamanne added the info-needed Issue requires more information from poster label Sep 20, 2023
@ttSpace
Copy link

ttSpace commented Sep 20, 2023

In today's build, connecting to jupyterhub failed.

image

Build of Visual Studio Code - Insiders: 1.83.0-insider (user setup)   
Build of python-Pre-Release: v2023.17.12621008
Build of jupyter-Pre-Release: v2023.9.1002650124
Build of jupyterHub-Pre-Release: v2023.9.1002650132
Build of pylance-Pre-Release: v2023.9.12
Build of jupyter Notebook Renderers: v1.0.17
Build of jupyter Keymap: v1.1.2
Build of jupyter Cell Tags: v0.1.8
Build of jupyter Slide Show: v0.1.5

image

Logs

Output for JupyterHub in the Output panel

09:07:24.672 [error] Failed to determine base url for http://localhost:8000 Error: Unable to determine base url of Jupyter Hub Server
    > at getJupyterHubBaseUrl (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-hub-2023.9.1002650132\dist\extension.node.js:64287:9)

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Sep 20, 2023

@ttSpace What version of Jupyter Hub do you have installed?

  • Can you open your browser and go to http://localhost:8000/hub/api
  • Can you navigate to http://localhost:8000 in your browser and send a screenshot of the browser and the URL
    I would like to see what the UI looks like and if the URL gets re-directed to something else. No need to fill in the user name or the like
  • Since you have JupyterHub running locally can you tell me the version (jupyterhub --version)

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Sep 20, 2023

I have tested Jupyter Hub 1.3.0, 1.4.0, 1.4.1, 1.5.0, 2 & the latest versions and they all work well at my end.

@matrix303
Copy link

@DonJayamanne
The jupyterhub works well for attaching to a kernel and running code. Is it possible to "open a folder" similar to what you would do on a local/remote machine. My jupyterhub is on a remote server HPC (proxying/tunnelinging gets complex) , and thus while right now I can run the kernel, its hard to manage files/open existing ipynb files on the server.
Let me know if there an alternative way! Otherwise, happy to see this working without a problem right now.

@DonJayamanne
Copy link
Contributor

. Is it possible to "open a folder" similar to what you would do on a local/remote machine. My jupyterhub is on a remote server HPC (proxying/tunnelinging gets complex) , and

Please could you upvote this issue #1366

@ttSpace
Copy link

ttSpace commented Sep 21, 2023

@DonJayamanne JupyterHub version 4.0.2

image

image

Logs

JupyterHub

2023-09-20 07:27:41 [I 2023-09-20 07:27:41.611 JupyterHub app:2859] Running JupyterHub version 4.0.2
2023-09-20 07:27:41 [I 2023-09-20 07:27:41.612 JupyterHub app:2889] Using Authenticator: jupyterhub.auth.PAMAuthenticator-4.0.2
2023-09-20 07:27:41 [I 2023-09-20 07:27:41.612 JupyterHub app:2889] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-4.0.2
2023-09-20 07:27:41 [I 2023-09-20 07:27:41.612 JupyterHub app:2889] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-4.0.2
2023-09-20 07:27:41 [I 2023-09-20 07:27:41.686 JupyterHub app:1709] Writing cookie_secret to /srv/jupyterhub/jupyterhub_cookie_secret
2023-09-20 07:27:41 [I 2023-09-20 07:27:41.793 alembic.runtime.migration migration:213] Context impl SQLiteImpl.
2023-09-20 07:27:41 [I 2023-09-20 07:27:41.793 alembic.runtime.migration migration:216] Will assume non-transactional DDL.
2023-09-20 07:27:41 [I 2023-09-20 07:27:41.896 alembic.runtime.migration migration:621] Running stamp_revision  -> 0eee8c825d24
2023-09-20 07:27:42 [I 2023-09-20 07:27:42.659 JupyterHub proxy:556] Generating new CONFIGPROXY_AUTH_TOKEN
2023-09-20 07:27:42 [I 2023-09-20 07:27:42.826 JupyterHub app:1984] Not using allowed_users. Any authenticated user will be allowed.
2023-09-20 07:27:42 [I 2023-09-20 07:27:42.864 JupyterHub app:2928] Initialized 0 spawners in 0.002 seconds
2023-09-20 07:27:42 [I 2023-09-20 07:27:42.874 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.twenty_four_hours
2023-09-20 07:27:42 [I 2023-09-20 07:27:42.875 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.seven_days
2023-09-20 07:27:42 [I 2023-09-20 07:27:42.876 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.thirty_days
2023-09-20 07:27:42 [W 2023-09-20 07:27:42.877 JupyterHub proxy:746] Running JupyterHub without SSL.  I hope there is SSL termination happening somewhere else...
2023-09-20 07:27:42 [I 2023-09-20 07:27:42.877 JupyterHub proxy:750] Starting proxy @ http://:8000
2023-09-20 07:27:43 [I 2023-09-20 07:27:43.781 JupyterHub app:3178] Hub API listening on http://127.0.0.1:8081/hub/
2023-09-20 07:27:43 [I 2023-09-20 07:27:43.782 JupyterHub proxy:477] Adding route for Hub: / => http://127.0.0.1:8081
2023-09-20 07:27:43 [I 2023-09-20 07:27:43.791 JupyterHub app:3245] JupyterHub is now running at http://:8000
2023-09-20 08:27:42 [I 2023-09-20 08:27:42.263 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.twenty_four_hours
2023-09-20 08:27:42 [I 2023-09-20 08:27:42.264 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.seven_days
2023-09-20 08:27:42 [I 2023-09-20 08:27:42.264 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.thirty_days
2023-09-20 07:27:43 07:27:43.339 [ConfigProxy] info: Proxying http://*:8000 to (no default)
2023-09-20 07:27:43 07:27:43.343 [ConfigProxy] info: Proxy API at http://127.0.0.1:8001/api/routes
2023-09-20 07:27:43 07:27:43.781 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 07:27:43 07:27:43.782 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 07:27:43 07:27:43.788 [ConfigProxy] info: Adding route / -> http://127.0.0.1:8081
2023-09-20 07:27:43 07:27:43.789 [ConfigProxy] info: Route added / -> http://127.0.0.1:8081
2023-09-20 07:27:43 07:27:43.791 [ConfigProxy] info: 201 POST /api/routes/ 
2023-09-20 07:32:43 07:32:43.791 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 07:37:43 07:37:43.790 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 07:42:43 07:42:43.792 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 07:47:43 07:47:43.794 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 07:52:43 07:52:43.791 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 07:57:43 07:57:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:02:43 08:02:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:07:43 08:07:43.790 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:12:43 08:12:43.794 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:17:43 08:17:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:22:43 08:22:43.791 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:27:43 08:27:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:32:43 08:32:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:37:43 08:37:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:42:43 08:42:43.781 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:47:43 08:47:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:52:43 08:52:43.790 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 08:57:43 08:57:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:02:43 09:02:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:07:43 09:07:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:12:43 09:12:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:17:43 09:17:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:22:43 09:22:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:27:43 09:27:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:32:43 09:32:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:37:43 09:37:43.791 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:42:43 09:42:43.790 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:47:43 09:47:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:52:43 09:52:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:57:43 09:57:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:02:43 10:02:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:07:43 10:07:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:12:43 10:12:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:17:43 10:17:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:22:43 10:22:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:27:43 10:27:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:32:43 10:32:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:37:43 10:37:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:42:43 10:42:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:47:43 10:47:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:52:43 10:52:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 10:57:43 10:57:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:02:43 11:02:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:07:43 11:07:43.784 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:12:43 11:12:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:17:43 11:17:43.784 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:22:43 11:22:43.784 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:27:43 11:27:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:32:43 11:32:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:37:43 11:37:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:42:43 11:42:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:47:43 11:47:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:52:43 11:52:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 11:57:43 11:57:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:02:43 12:02:43.784 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:07:43 12:07:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:12:43 12:12:43.784 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:17:43 12:17:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:22:43 12:22:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:27:43 12:27:43.790 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:32:43 12:32:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:37:43 12:37:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:42:43 12:42:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:47:43 12:47:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:52:43 12:52:43.784 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 12:57:43 12:57:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:02:43 13:02:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:07:43 13:07:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:12:43 13:12:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:17:43 13:17:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:22:43 13:22:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:27:43 13:27:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:32:43 13:32:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:37:43 13:37:43.788 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:42:43 13:42:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:47:43 13:47:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:52:43 13:52:43.787 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 13:57:43 13:57:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 14:02:43 14:02:43.778 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 14:07:43 14:07:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 14:12:43 14:12:43.785 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 14:17:43 14:17:43.789 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 14:22:43 14:22:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 14:27:43 14:27:43.786 [ConfigProxy] info: 200 GET /api/routes 
2023-09-20 09:27:36 [I 2023-09-20 09:27:36.363 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.twenty_four_hours
2023-09-20 09:27:36 [I 2023-09-20 09:27:36.364 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.seven_days
2023-09-20 09:27:36 [I 2023-09-20 09:27:36.365 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.thirty_days
2023-09-20 10:27:42 [I 2023-09-20 10:27:42.532 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.twenty_four_hours
2023-09-20 10:27:42 [I 2023-09-20 10:27:42.533 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.seven_days
2023-09-20 10:27:42 [I 2023-09-20 10:27:42.534 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.thirty_days
2023-09-20 11:27:57 [I 2023-09-20 11:27:57.242 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.twenty_four_hours
2023-09-20 11:27:57 [I 2023-09-20 11:27:57.243 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.seven_days
2023-09-20 11:27:57 [I 2023-09-20 11:27:57.243 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.thirty_days
2023-09-20 12:28:14 [I 2023-09-20 12:28:14.995 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.twenty_four_hours
2023-09-20 12:28:14 [I 2023-09-20 12:28:14.996 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.seven_days
2023-09-20 12:28:14 [I 2023-09-20 12:28:14.997 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.thirty_days
2023-09-20 13:28:18 [I 2023-09-20 13:28:18.542 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.twenty_four_hours
2023-09-20 13:28:18 [I 2023-09-20 13:28:18.543 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.seven_days
2023-09-20 13:28:18 [I 2023-09-20 13:28:18.544 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.thirty_days

@DonJayamanne
Copy link
Contributor

@ttSpace

ok so jupyterhub isn’t working in the browser, that’s outside vscode
Hence this is not a problem with the Jupyter /jupyterhub extension, but a problem with your setup

Please can I suggest you check stack overflow or reach out to the Jupyterhub community on GitHub to address your issue

@ttSpace
Copy link

ttSpace commented Sep 22, 2023

@DonJayamanne

Jupyterhub works in the browser, but still doesn't work in vscode.

image

image

image

Logs

Output for JupyterHub in the Output panel

07:58:39.506 [error] Failed to get user info Error: Failed to get user info, Forbidden (403) with message  {"status": 403, "message": "Missing or invalid credentials."}
    > at getUserInfo (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-hub-2023.9.1002661100\dist\extension.node.js:64216:9)
07:58:39.585 [error] Failed to get the user Jupyter Url Error: Failed to get user info, Forbidden (403) with message  {"status": 403, "message": "Missing or invalid credentials."}
    > at getUserInfo (c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-hub-2023.9.1002661100\dist\extension.node.js:64216:9)
07:58:39.706 [error] SessionManager cannot enumerate kernelSpecs. Specs undefined.
07:58:39.708 [error] Uri verification error Error: Failed to enumeration kernel Specs
    > at c:\Users\vting\.vscode-insiders\extensions\ms-toolsai.jupyter-hub-2023.9.1002661100\dist\extension.node.js:64368:21

@DonJayamanne
Copy link
Contributor

Please could you:

  • Select the command Toggle Developer Tools from the command palette
  • Go to the network tab
  • Clear all the requests using the Clear icon
  • Go ito the kernel picker and try to authenticate once again
  • Once it fails, please can you take a screenshot of all the requests sent along with their responses
  • One of the URLs could contain your user name, if thats ok with you please share the screeshot, else please scrape the username from the screenshot

I'd like to see what is failing and what isn't

@ttSpace
Copy link

ttSpace commented Sep 25, 2023

I've no responses.

image

@DonJayamanne
Copy link
Contributor

@ttSpace thanks for getting back,

  • please can you install the latest pre-release version of the Jupyter hub extension
  • Please enable logging by chaning the Jupyter Hub log level to debug
    • You can do this by going into settings and seaching for JupyterHub log
  • Please repilcate the issue and share the logs again.

@ttSpace
Copy link

ttSpace commented Sep 27, 2023

@DonJayamanne Thanks, the jupyterhub works well in today's build.

image

image

@DonJayamanne
Copy link
Contributor

Thanks, closing this issue for now

@amunger amunger added the verified Verification succeeded label Oct 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-remote Applies to remote Jupyter Servers verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

10 participants