Comments (12)
Hi @elbrinke, it looks like the jupyterhub
Database got corrupted. Does it work after a jupyterhub upgrade-db
?
from jupyter_server.
Hi @blink1073 , when i run "jupyterhub upgrade-db" I get the following;
bash: jupyterhub: command not found
from jupyter_server.
What is the command you are using to launch jupyterhub?
from jupyter_server.
Current running: jupyter --version 4.2.0
from jupyter_server.
jupyterhub is separate from the root jupyter install.
from jupyter_server.
We just run :
jupyter notebook
from jupyter_server.
I'm confused because the output above says I 2018-08-10 11:31:11.380 JupyterHub app:622]
, it should say something like [I 05:04:36.885 NotebookApp]
for the notebook app. Perhaps something else went wrong with the install. Are you able to start from a clean environment?
from jupyter_server.
root@jupyter:/opt/.virtualenvs/jupyter/bin# ./jupyterhub start
[I 2018-08-10 12:04:56.696 JupyterHub app:622] Loading cookie_secret from /opt/.virtualenvs/jupyter/bin/jupyterhub_cookie_secret
[W 2018-08-10 12:04:56.730 JupyterHub app:304]
Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require restarting the proxy.
Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to avoid this message.
[W 2018-08-10 12:04:56.733 JupyterHub app:757] No admin users, admin interface will be unavailable.
[W 2018-08-10 12:04:56.733 JupyterHub app:758] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2018-08-10 12:04:56.733 JupyterHub app:785] Not using whitelist. Any authenticated user will be allowed.
[I 2018-08-10 12:04:56.741 JupyterHub app:1231] Hub API listening on http://127.0.0.1:8081/hub/
[E 2018-08-10 12:04:56.744 JupyterHub app:963] Refusing to run JuptyterHub without SSL. If you are terminating SSL in another layer, pass --no-ssl to tell JupyterHub to allow the proxy to listen on HTTP.
from jupyter_server.
Great! Are you asking where to go from here or is that working now?
from jupyter_server.
I see the following line:
[E 2018-08-10 12:04:56.744 JupyterHub app:963] Refusing to run JuptyterHub without SSL. If you are terminating SSL in another layer, pass --no-ssl to tell JupyterHub to allow the proxy to listen on HTTP.
So i tried : ./jupyterhub start --no-ssl
And it's working now..
@jupyter:/opt/.virtualenvs/jupyter/bin# ./jupyterhub start --no-ssl
[I 2018-08-10 12:15:39.140 JupyterHub app:622] Loading cookie_secret from /opt/.virtualenvs/jupyter/bin/jupyterhub_cookie_secret
[W 2018-08-10 12:15:39.165 JupyterHub app:304]
Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require restarting the proxy.
Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to avoid this message.
[W 2018-08-10 12:15:39.168 JupyterHub app:757] No admin users, admin interface will be unavailable.
[W 2018-08-10 12:15:39.168 JupyterHub app:758] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2018-08-10 12:15:39.168 JupyterHub app:785] Not using whitelist. Any authenticated user will be allowed.
[I 2018-08-10 12:15:39.182 JupyterHub app:1231] Hub API listening on http://127.0.0.1:8081/hub/
[W 2018-08-10 12:15:39.185 JupyterHub app:959] Running JupyterHub without SSL. There better be SSL termination happening somewhere else...
[I 2018-08-10 12:15:39.185 JupyterHub app:968] Starting proxy @ http://*:8000/
12:15:39.287 - info: [ConfigProxy] Proxying http://*:8000 to http://127.0.0.1:8081
12:15:39.289 - info: [ConfigProxy] Proxy API at http://127.0.0.1:8001/api/routes
[I 2018-08-10 12:15:39.391 JupyterHub app:1254] JupyterHub is now running at http://127.0.0.1:8000/
But now we are getting another error:
[I 2018-08-10 12:18:27.290 JupyterHub spawner:467] Spawning jupyterhub-singleuser --user=eddy --port=40967 --cookie-name=jupyter-hub-token-eddy --base-url=/user/eddy --hub-host= --hub-prefix=/hub/ --hub-api-url=http://127.0.0.1:8081/hub/api --ip=127.0.0.1
[E 2018-08-10 12:18:27.322 JupyterHub user:237] Unhandled error starting eddy's server: [Errno 2] No such file or directory: 'jupyterhub-singleuser'
[E 2018-08-10 12:18:27.358 JupyterHub web:1548] Uncaught exception POST /hub/login?next= (127.0.0.1)
HTTPServerRequest(protocol='http', host='192.168.1.241:8000', method='POST', uri='/hub/login?next=', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'Connection': 'close', 'Content-Length': '51', 'Content-Type': 'application/x-www-form-urlencoded', 'Dnt': '1', 'Accept-Language': 'en-US,en;q=0.5', 'Referer': 'http://192.168.1.241:8000/hub/login', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0', 'Host': '192.168.1.241:8000', 'Accept-Encoding': 'gzip, deflate', 'Upgrade-Insecure-Requests': '1', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'})
Traceback (most recent call last):
File "/opt/.virtualenvs/jupyter/lib/python3.4/site-packages/tornado/web.py", line 1469, in _execute
result = yield result
File "/opt/.virtualenvs/jupyter/lib/python3.4/site-packages/jupyterhub/handlers/login.py", line 79, in post
yield self.spawn_single_user(user)
File "/opt/.virtualenvs/jupyter/lib/python3.4/site-packages/jupyterhub/handlers/base.py", line 312, in spawn_single_user
yield gen.with_timeout(timedelta(seconds=self.slow_spawn_timeout), f)
File "/opt/.virtualenvs/jupyter/lib/python3.4/site-packages/jupyterhub/user.py", line 247, in spawn
raise e
File "/opt/.virtualenvs/jupyter/lib/python3.4/site-packages/jupyterhub/user.py", line 228, in spawn
yield gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
File "/opt/.virtualenvs/jupyter/lib/python3.4/site-packages/jupyterhub/spawner.py", line 470, in start
start_new_session=True, # don't forward signals
File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'jupyterhub-singleuser'
When we try to login using Web Browser on port 8000, we get the following on the browser:
500 : Internal Server Error
Failed to start your server. Please contact admin.
from jupyter_server.
I'm no JupyterHub expert, can you please try your question here: https://github.com/jupyterhub/jupyterhub?
from jupyter_server.
Closing this issue, since it's run stale. Feel free to reopen if you still have questions here.
from jupyter_server.
Related Issues (20)
- Latest release 2.9.0 broken on install HOT 4
- Custom ContentsManager with a NoOpCheckpoints cannot open notebook, raises Unhandled error HOT 1
- Navigating in the JupyterLab UI can prevent idle kernels from being culled. HOT 11
- Remove usages of tornado io_loop in favor of native asyncio HOT 4
- Latest release is breaking custom ContentManager HOT 4
- lots of ways to trigger unhandled errors via filesystem permissions
- Stop using deprecated function in tornado HOT 1
- Serve kernel WASM assets
- Enable EPUB and HTML outputs from the docs HOT 1
- Tests failing in the latest version HOT 4
- Removing `nbconvert` as a required dependency HOT 4
- Missing Python target version bound leads to incorrect `ruff` suggestions HOT 3
- Kernel's execution state is not updated after the kernel is crashed while executing code HOT 4
- Should `current_user` and `prepare` guards be set in `AuthenticatedHandler` rather than `JupyterHandler`? HOT 2
- The Shut Down and Log Out menu items disappeared between 2.12.5 and 2.13.0 HOT 2
- Invalid page_config.json can crash server HOT 1
- interface for switching between jupyter apps
- Add constraints fore saving/reading files
- Add an HTML endpoint for `/api` with interactive docs HOT 3
- Slower atexit methods do not run to completion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyter_server.