!zSOyErzaWkDKUGeUBe:matrix.org

cylc web architecture

13 Members
architecture supporting the new Cylc web GUI1 Servers

Load older messages


SenderMessageTime
6 Jan 2020
@oliver-sanders2:matrix.orgoliver sanders(out of ideas002:10:47
@oliver-sanders2:matrix.orgoliver sanders * (out of ideas)02:13:48
@kinow:matrix.org@kinow:matrix.orgNot 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 redirect02:13:53
@kinow:matrix.org@kinow:matrix.org(there should be a way to increase log level for jupyterhub & for the configurable-http-proxy)02:14:57
@oliver-sanders2:matrix.orgoliver sanders Good idea logging the proxy, the config is c.ConfigurableHTTPProxy.debug for reference. 02:27:21
@oliver-sanders2:matrix.orgoliver sandersThe repeating log section is now:02:27:28
@oliver-sanders2:matrix.orgoliver 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-sanders2:matrix.orgoliver sandersSo the proxy is pointing back at the hub, which is correct at the uiserver has not been spawned yet.02:28:19
@oliver-sanders2:matrix.orgoliver 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@kinow:matrix.orgDid you add anything in your jupyterhub_config.py that specifies host or ip?02:41:44
@kinow:matrix.org@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-sanders2:matrix.orgoliver 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-sanders2:matrix.orgoliver sandersTaking a poke around the DB atm.02:43:46
@oliver-sanders2:matrix.orgoliver 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-sanders2:matrix.orgoliver sanders
1|1||||||```
02:48:44
@kinow:matrix.org@kinow:matrix.orgOh, that's super weird.02:49:00
@oliver-sanders2:matrix.orgoliver sanders *
sqlite>
1|1||||||
02:49:13
@kinow:matrix.org@kinow:matrix.orgI think there should be at least one with the server info, with some simple stuff like your IP, server host name I guess02:49:16
@kinow:matrix.org@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, etc02:49:37
@kinow:matrix.org@kinow:matrix.orgAny chance your Conda installation got corrupted some way? Or you can re-install jupyterhub module and see if that fixes it02:50:28
@oliver-sanders2:matrix.orgoliver 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-sanders2:matrix.orgoliver 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@kinow:matrix.orgimage.png
Download image.png
02:51:28
@kinow:matrix.org@kinow:matrix.orgThe spawners got id and user id, but no server_id02:51:52
@kinow:matrix.org@kinow:matrix.orgWhich is correct I think, as you are not able to star tthe server02:52:21
@kinow:matrix.org@kinow:matrix.orgSorry, 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 data02:53:03
@oliver-sanders2:matrix.orgoliver sandersYeah, I haven't got any ui-servers running so a blank DB makes some sence.02:53:59
@oliver-sanders2:matrix.orgoliver sanders * Yeah, I haven't got any ui-servers running so a blank DB makes some sense.02:54:02
@kinow:matrix.org@kinow:matrix.orghttps://github.com/jupyterhub/jupyterhub/issues/165702:54:11
@kinow:matrix.org@kinow:matrix.orgI'm reading this ticket now, it looks similar to what you have02:54:30

Show newer messages


Back to Room ListRoom Version: 1