6 Jan 2020 |
oliver sanders | (out of ideas0 | 02:10:47 |
oliver sanders | * (out of ideas) | 02:13:48 |
@kinow:matrix.org | Not sure if rebooting will fix it, but might be worth a try. You can also try to increase log verbosity, or attach the debugger to jupyterhub to see which part is triggering the redirect | 02:13:53 |
@kinow:matrix.org | (there should be a way to increase log level for jupyterhub & for the configurable-http-proxy) | 02:14:57 |
oliver sanders | Good idea logging the proxy, the config is c.ConfigurableHTTPProxy.debug for reference. | 02:27:21 |
oliver sanders | The repeating log section is now: | 02:27:28 |
oliver sanders | [I 2020-01-06T15:21:32.534 JupyterHub base:663] User logged in: sanderso
[I 2020-01-06T15:21:32.534 JupyterHub log:174] 302 POST /hub/login?next=%2Fhub%2Fspawn -> /hub/spawn (sanderso@::ffff:127.0.0.1) 143.53ms
15:21:32.536 [ConfigProxy] debug: PROXY WEB /hub/spawn to http://127.0.0.1:8081
[I 2020-01-06T15:21:32.538 JupyterHub log:174] 302 GET /hub/spawn -> /hub/login?next=%2Fhub%2Fspawn (@::ffff:127.0.0.1) 0.58ms
15:21:32.539 [ConfigProxy] debug: PROXY WEB /hub/login?next=%2Fhub%2Fspawn to http://127.0.0.1:8081
[I 2020-01-06T15:21:32.541 JupyterHub log:174] 200 GET /hub/login?next=%2Fhub%2Fspawn (@::ffff:127.0.0.1) 0.88ms
15:21:36.870 [ConfigProxy] debug: PROXY WEB /hub/login?next=%2Fhub%2Fspawn to http://127.0.0.1:8081
[D 2020-01-06T15:21:37.025 JupyterHub base:482] Setting cookie for sanderso: jupyterhub-hub-login
[D 2020-01-06T15:21:37.025 JupyterHub base:478] Setting cookie jupyterhub-hub-login: {'httponly': True, 'path': '/hub/'}
| 02:27:41 |
oliver sanders | So the proxy is pointing back at the hub, which is correct at the uiserver has not been spawned yet. | 02:28:19 |
oliver sanders | Ok, just created a new conda environment and conda install -c conda-forge jupyterhub -y , cd $HOME; jupyterhub same issue, something deeper going on, not a Cylc Hub problem. | 02:39:59 |
@kinow:matrix.org | Did you add anything in your jupyterhub_config.py that specifies host or ip? | 02:41:44 |
@kinow:matrix.org | Take a look at the sqlite DB too, with sqlitebrowser or cli. It may have something useful if you quickly browse the data (it shouldn't have a lot) | 02:42:11 |
oliver sanders | Tried without the jupyterhub_config.py so if it's a config issue its an issue with the default config. | 02:43:08 |
oliver sanders | Taking a poke around the DB atm. | 02:43:46 |
oliver sanders | hmmm, all tables are empty except two, users has an entry for me and spawners has one entry but all fields are blank. | 02:48:41 |
oliver sanders | 1|1||||||```
| 02:48:44 |
@kinow:matrix.org | Oh, that's super weird. | 02:49:00 |
oliver sanders | *
sqlite> 1|1||||||
| 02:49:13 |
@kinow:matrix.org | I think there should be at least one with the server info, with some simple stuff like your IP, server host name I guess | 02:49:16 |
@kinow:matrix.org | * I think there should be at least one with the server info, with some simple stuff like your IP, server host name, etc | 02:49:37 |
@kinow:matrix.org | Any chance your Conda installation got corrupted some way? Or you can re-install jupyterhub module and see if that fixes it | 02:50:28 |
oliver sanders | sqlite> select * from oauth_codes;
sqlite> select * from api_tokens;
sqlite> select * from ix_oauth_access_tokens_prefix;
Error: no such table: ix_oauth_access_tokens_prefix
sqlite> select * from oauth_access_tokens;
sqlite> select * from services;
sqlite> select * from spawners;
1|1||||||
sqlite> select * from user_group_map;
sqlite> select * from oauth_clients;
sqlite> select * from users;
1|sanderso|0|2020-01-06 02:06:52.781861||<code>||
sqlite> select * from groups;
sqlite> select * from servers;
sqlite> select * from alembic_version;
4dc2d5a8c53c
| 02:50:37 |
oliver sanders | In reply to @kinow:matrix.org Any chance your Conda installation got corrupted some way? Or you can re-install jupyterhub module and see if that fixes it Tried in three different conda environments with two different versions of Python. | 02:51:06 |
@kinow:matrix.org | ![image.png](https://matrix.org/_matrix/media/r0/thumbnail/matrix.org/dNVHHCbgFkkJLBytnnmlpPmu?height=360&method=scale&width=360) Download image.png | 02:51:28 |
@kinow:matrix.org | The spawners got id and user id, but no server_id | 02:51:52 |
@kinow:matrix.org | Which is correct I think, as you are not able to star tthe server | 02:52:21 |
@kinow:matrix.org | Sorry, I think the DB being empty shoul dbe fine. It's because I have the Cylc UI Server actually running in my environment 🤦♂️ hehe, that's why I have more data | 02:53:03 |
oliver sanders | Yeah, I haven't got any ui-servers running so a blank DB makes some sence. | 02:53:59 |
oliver sanders | * Yeah, I haven't got any ui-servers running so a blank DB makes some sense. | 02:54:02 |
@kinow:matrix.org | https://github.com/jupyterhub/jupyterhub/issues/1657 | 02:54:11 |
@kinow:matrix.org | I'm reading this ticket now, it looks similar to what you have | 02:54:30 |