Giter Club home page Giter Club logo

Comments (3)

minrk avatar minrk commented on July 18, 2024

Can you show a bit more of the log context?

from sudospawner.

 avatar commented on July 18, 2024

Sure!

== LOG ==
$ sudo -u jhub_runner jupyterhub --JupyterHub.spawner_class=sudospawner.SudoSpawner --debug
[D 2015-05-29 17:03:28.331 JupyterHub application:242] Config changed:
[D 2015-05-29 17:03:28.331 JupyterHub application:243] {'JupyterHub': {'log_level': 10, 'spawner_class': 'sudospawner.SudoSpawner'}}
[I 2015-05-29 17:03:28.332 JupyterHub app:522] Loading cookie_secret from /etc/jupyterhub/jupyterhub_cookie_secret
[D 2015-05-29 17:03:28.332 JupyterHub app:549] Connecting to db: sqlite:///jupyterhub.sqlite
[W 2015-05-29 17:03:28.372 JupyterHub app:260]
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.

[I 2015-05-29 17:03:28.378 JupyterHub app:623] Not using whitelist. Any authenticated user will be allowed.
[D 2015-05-29 17:03:28.380 JupyterHub app:699] Loaded users:
jhub_runner admin
pierluigi_jupyter
[I 2015-05-29 17:03:28.387 JupyterHub app:1001] Hub API listening on http://localhost:8081/hub/
[I 2015-05-29 17:03:28.390 JupyterHub app:758] Starting proxy @ http://:8000/
[D 2015-05-29 17:03:28.390 JupyterHub app:759] Proxy cmd: ['configurable-http-proxy', '--ip', '', '--port', '8000', '--api-ip', 'localhost', '--api-port', '8001', '--default-target', 'http://localhost:8081']
17:03:28.487 - info: [ConfigProxy] Proxying http://
:8000 to http://localhost:8081
17:03:28.489 - info: [ConfigProxy] Proxy API at http://localhost:8001/api/routes
[D 2015-05-29 17:03:28.494 JupyterHub app:787] Proxy started and appears to be up
[I 2015-05-29 17:03:28.495 JupyterHub app:1024] JupyterHub is now running at http://localhost:8000/
[I 2015-05-29 17:04:16.861 JupyterHub log:100] 200 GET /hub/ (@127.0.0.1) 28.73ms

=== cmd: ['sudo', '-u', 'pierluigi_jupyter', '-nH', 'sudospawner']

=== kwargs: {'action': 'spawn', 'args': ['--user=pierluigi_jupyter', '--port=53251', '--cookie-name=jupyter-hub-token-pierluigi_jupyter', '--base-url=/user/pierluigi_jupyter', '--hub-prefix=/hub/', '--hub-api-url=http://localhost:8081/hub/api', '--ip=localhost'], 'env': {'USER': 'pierluigi_jupyter', 'HOME': '/home/pierluigi_jupyter', 'JPY_API_TOKEN': 'f32f975c2cf14bbe90362f9aa0f9f595', 'SHELL': '/bin/sh', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'LANG': 'en_US.UTF-8'}}

=== json.dumps: b'{"action": "spawn", "args": ["--user=pierluigi_jupyter", "--port=53251", "--cookie-name=jupyter-hub-token-pierluigi_jupyter", "--base-url=/user/pierluigi_jupyter", "--hub-prefix=/hub/", "--hub-api-url=http://localhost:8081/hub/api", "--ip=localhost"], "env": {"USER": "pierluigi_jupyter", "HOME": "/home/pierluigi_jupyter", "JPY_API_TOKEN": "f32f975c2cf14bbe90362f9aa0f9f595", "SHELL": "/bin/sh", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG": "en_US.UTF-8"}}'

[I 150529 17:04:23 mediator:62] Spawning /usr/bin/python3.3 -m jupyterhub.singleuser --user=pierluigi_jupyter --port=53251 --cookie-name=jupyter-hub-token-pierluigi_jupyter --base-url=/user/pierluigi_jupyter --hub-prefix=/hub/ --hub-api-url=http://localhost:8081/hub/api --ip=localhost

=== data: ''

[E 2015-05-29 17:04:23.955 JupyterHub orm:376] Unhandled error starting pierluigi_jupyter's server: No JSON object could be decoded
[E 2015-05-29 17:04:23.964 JupyterHub web:1496] Uncaught exception POST /hub/login?next= (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8000', method='POST', uri='/hub/login?next=', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'X-Forwarded-For': '127.0.0.1', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8', 'Cookie': '_ga=GA1.1.783766431.1415828907; __insp_slim=1415828906895; __insp_nv=true; __insp_ref=aHR0cDovL2xvY2FsaG9zdDo1MDAwL2ludGVybmFsL2RhdGFfZXhwbG9yYXRpb25fYW5ndWxhci8%3D; __insp_norec_sess=true; ucPref=%7B%22FIRST_VISIT%22%3Afalse%2C%22SELECTED_GEOGRAPHY%22%3A%22nyc%22%2C%22anonymous_user_id%22%3A%22542d8d1b421aa9043f056a5f%22%7D; lastVisited=%2Fresearch%2F; session="yEUXIJ83XUMcAAro9QuK3jYg9os=?_fresh=STAwCi4=&_id=UydlOTZiZmU3MzUyYWE5OWYwODdkZWRmYWU0OGY1Njk4NycKcDEKLg==&user_id=VjU0MmMzZGQ1ODU2OTkzMzQwNDcyMDQ3MApwMQou"', 'Content-Length': '45', 'X-Forwarded-Port': '8000', 'Referer': 'http://localhost:8000/hub/', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36', 'Accept-Encoding': 'gzip, deflate', 'X-Forwarded-Proto': 'http', 'Origin': 'http://localhost:8000', 'Host': 'localhost:8000', 'Accept-Language': 'en-US,en;q=0.8,it;q=0.6', 'Cache-Control': 'max-age=0', 'Connection': 'close', 'Content-Type': 'application/x-www-form-urlencoded'})
Traceback (most recent call last):
File "/usr/local/lib/python3.3/dist-packages/tornado/web.py", line 1415, in _execute
result = yield result
File "/usr/local/lib/python3.3/dist-packages/jupyterhub/handlers/login.py", line 66, in post
yield self.spawn_single_user(user)
File "/usr/local/lib/python3.3/dist-packages/jupyterhub/handlers/base.py", line 260, in spawn_single_user
yield gen.with_timeout(timedelta(seconds=self.slow_spawn_timeout), f)
File "/usr/local/lib/python3.3/dist-packages/jupyterhub/orm.py", line 386, in spawn
raise e
File "/usr/local/lib/python3.3/dist-packages/jupyterhub/orm.py", line 367, in spawn
yield gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
File "/home/pierluigi/development/sudospawner/sudospawner/spawner.py", line 65, in start
reply = yield self.do(action='spawn', args=self.get_args(), env=self.env)
File "/home/pierluigi/development/sudospawner/sudospawner/spawner.py", line 57, in do
return json.loads(data.decode('utf8'))
File "/usr/lib/python3.3/json/init.py", line 316, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.3/json/decoder.py", line 351, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.3/json/decoder.py", line 369, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

[D 2015-05-29 17:04:23.969 JupyterHub base:375] No template for 500
[E 2015-05-29 17:04:23.976 JupyterHub log:99] {
"X-Forwarded-For": "127.0.0.1",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8",
"Cookie": "_ga=GA1.1.783766431.1415828907; __insp_slim=1415828906895; __insp_nv=true; __insp_ref=aHR0cDovL2xvY2FsaG9zdDo1MDAwL2ludGVybmFsL2RhdGFfZXhwbG9yYXRpb25fYW5ndWxhci8%3D; __insp_norec_sess=true; ucPref=%7B%22FIRST_VISIT%22%3Afalse%2C%22SELECTED_GEOGRAPHY%22%3A%22nyc%22%2C%22anonymous_user_id%22%3A%22542d8d1b421aa9043f056a5f%22%7D; lastVisited=%2Fresearch%2F; session="yEUXIJ83XUMcAAro9QuK3jYg9os=?_fresh=STAwCi4=&_id=UydlOTZiZmU3MzUyYWE5OWYwODdkZWRmYWU0OGY1Njk4NycKcDEKLg==&user_id=VjU0MmMzZGQ1ODU2OTkzMzQwNDcyMDQ3MApwMQou"",
"Content-Length": "45",
"X-Forwarded-Port": "8000",
"Referer": "http://localhost:8000/hub/",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36",
"Accept-Encoding": "gzip, deflate",
"X-Forwarded-Proto": "http",
"Origin": "http://localhost:8000",
"Host": "localhost:8000",
"Accept-Language": "en-US,en;q=0.8,it;q=0.6",
"Cache-Control": "max-age=0",
"Connection": "close",
"Content-Type": "application/x-www-form-urlencoded"
}
[E 2015-05-29 17:04:23.977 JupyterHub log:100] 500 POST /hub/login?next= (@127.0.0.1) 425.72ms

from sudospawner.

 avatar commented on July 18, 2024

I figured out the error: my user does not have an home folder.

from sudospawner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.