5 Jan 2020 |
oliver sanders | Tornado claims to scale to 10's of thousands of open connections and of course does so asynchronously (via epoll). Tornado supports vertical scaling via multiprocessing also. | 21:19:57 |
6 Jan 2020 |
oliver sanders | HTTPS & jupyterhub has broken down on my machine (perhaps after patching), I'm using a local SSL cert generated by openssl and have added the certificate to by web browser authorities list but having issues with Firefox & Opera (haven't tried others yet). I can access the hub via https://0.0.0.0:8000 but still have to "accept the risk and continue". | 01:31:20 |
oliver sanders | Once authenticated Opera takes me through to the dashboard, and the UI loads, however, there is no data and this error in the console: | 01:32:01 |
oliver sanders | allowInsecureFromHTTPS | 01:32:02 |
oliver sanders | * client.js:427 WebSocket connection to 'ws://0.0.0.0:8000/user/sanderso/subscriptions' failed: Connection closed before receiving a handshake response | 01:32:18 |
oliver sanders | Once authenticated Firefox displays a blank page with this error in the console: | 01:33:08 |
oliver sanders | SecurityError: The operation is insecure. | 01:33:09 |
oliver sanders | (which may be related to default behaviour of firefox blocking https+ws https://stackoverflow.com/a/12042843) | 01:34:30 |
oliver sanders | Has anyone had to configure their browsers in any special way to get past issues like this? | 01:35:03 |
@kinow:matrix.org | Haven't used HTTPS & jupyterhub yet. | 01:35:48 |
@kinow:matrix.org | I wonder if it's not something in the way we are using graphql-ws | 01:36:51 |
@kinow:matrix.org | (might be missing some parameter to support ssl) | 01:37:00 |
@kinow:matrix.org | * (might be missing some parameter to support ssl?) | 01:37:15 |
oliver sanders | (setting allowInsecureFromHTTPS=true in Firefox gets the same behaviour as Opera0 | 01:37:27 |
@kinow:matrix.org | * (might be missing some parameter to support ssl? or we need to tell it to use wss) | 01:37:30 |
oliver sanders | * (setting allowInsecureFromHTTPS=true in Firefox gets the same behaviour as Opera) | 01:37:32 |
oliver sanders | In reply to @kinow:matrix.org (might be missing some parameter to support ssl? or we need to tell it to use wss) May well need https+wss | 01:38:35 |
oliver sanders | In reply to @kinow:matrix.org (might be missing some parameter to support ssl? or we need to tell it to use wss) * May well need https+wss or for insecure http+ws but not https+ws. | 01:42:00 |
@kinow:matrix.org | Yup. Good that you found out about it now, so we can start working on a fix/docs. | 01:52:30 |
@kinow:matrix.org | Are you creating an issue in Cylc UI for that? If not I can create one and point that the fix is probably related to graphql-ws and/or apolloclient | 01:53:22 |
oliver sanders | Have put up and issue, feel free to edit. | 01:59:32 |
oliver sanders | Have used https a little, worked ok, persumably until websockets. | 02:00:54 |
oliver sanders | jupyterhub has got itself stuck in a login re-direct loop when using http on my machine | 02:01:19 |
oliver sanders | * jupyterhub has got itself stuck in a login re-direct loop when using http on my machine (hence desperately trying to get https+ws working) | 02:01:50 |
@kinow:matrix.org | I think I had a redirect issue once, and I think what solved was to kill everything (including the node process for the proxy) and delete the juypytehub.sqlite DB | 02:02:44 |
oliver sanders | Been there :( | 02:07:23 |
oliver sanders | Good to know someone else has run into it though. | 02:09:40 |
oliver sanders | This is the repeating section from the jupyterhub log | 02:10:11 |
oliver sanders | [base:663] User logged in: sanderso
[log:174] 302 POST /hub/login?next=%2Fhub%2Fspawn -> /hub/spawn (sanderso@::ffff:127.0.0.1) 136.49ms
[log:174] 302 GET /hub/spawn -> /hub/login?next=%2Fhub%2Fspawn (@::ffff:127.0.0.1) 0.59ms
[log:174] 200 GET /hub/login?next=%2Fhub%2Fspawn (@::ffff:127.0.0.1) 1.36ms
| 02:10:12 |
oliver sanders | might try a reboot | 02:10:31 |