plasmabio / tljh-repo2docker

Plugin for The Littlest JupyterHub to build multiple user environments with repo2docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API request failed error with new panel for environment creation

pierrepo opened this issue Β· comments

After upgrading TLJH installation of PlasmaBio, I got the new panel for environement creation πŸ˜„

image

I tried to create a new environment but encountered an error:

image

After a click on OK, I got

image

that seems running forever.

Did I miss something while upgrading TLJH installation (with TLJH-repo2docker plugin)?

The issue might come from the browser cache that still uses the old assets.

Since the JS has changed it would be good to try after clearing the cache.

Maybe a good opportunity to look at logs

Oh yes...

$ sudo journalctl -u jupyterhub | tail -n 20
Apr 30 15:38:59 plasmabio-pierrepo-test-2 python3[18482]: [E 2020-04-30 15:38:59.529 JupyterHub log:174] 503 GET /hub/user/claire/toto/metrics?1588261139494 (claire@82.254.29.234) 6.50ms
Apr 30 15:39:04 plasmabio-pierrepo-test-2 python3[18482]: [I 2020-04-30 15:39:04.566 JupyterHub log:174] 302 GET /user/claire/toto/metrics?1588261144527 -> /hub/user/claire/toto/metrics?1588261144527 (@82.254.29.234) 2.26ms
Apr 30 15:39:04 plasmabio-pierrepo-test-2 python3[18482]: [I 2020-04-30 15:39:04.567 JupyterHub log:174] 302 GET /user/claire/toto/metrics?1588261144557 -> /hub/user/claire/toto/metrics?1588261144557 (@82.254.29.234) 2.39ms
Apr 30 15:39:04 plasmabio-pierrepo-test-2 python3[18482]: [E 2020-04-30 15:39:04.583 JupyterHub log:174] 503 GET /hub/user/claire/toto/metrics?1588261144557 (claire@82.254.29.234) 5.65ms
Apr 30 15:39:04 plasmabio-pierrepo-test-2 python3[18482]: [E 2020-04-30 15:39:04.588 JupyterHub log:174] 503 GET /hub/user/claire/toto/metrics?1588261144527 (claire@82.254.29.234) 4.95ms
Apr 30 15:39:05 plasmabio-pierrepo-test-2 python3[18482]: [I 2020-04-30 15:39:05.792 JupyterHub log:174] 302 GET /user/claire/toto/api/contents/?content=1&1588261145775 -> /hub/user/claire/toto/api/contents/?content=1&1588261145775 (@82.254.29.234) 1.60ms
Apr 30 15:39:05 plasmabio-pierrepo-test-2 python3[18482]: [W 2020-04-30 15:39:05.812 JupyterHub base:1262] Failing suspected API request to not-running server: /hub/user/claire/toto/api/contents/
Apr 30 15:39:05 plasmabio-pierrepo-test-2 python3[18482]: [E 2020-04-30 15:39:05.813 JupyterHub log:174] 503 GET /hub/user/claire/toto/api/contents/?content=1&1588261145775 (claire@82.254.29.234) 5.16ms
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]: [E 200430 15:39:57 web:1792] Uncaught exception POST /services/environments/api/build (127.0.0.1)
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]:     HTTPServerRequest(protocol='http', host='dev.plasmabio.org', method='POST', uri='/services/environments/api/build', version='HTTP/1.1', remote_ip='127.0.0.1')
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]:     Traceback (most recent call last):
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]:       File "/opt/tljh/hub/lib/python3.6/site-packages/tornado/web.py", line 1703, in _execute
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]:         result = await result
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]:       File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]:         result = self.fn(*self.args, **self.kwargs)
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]:       File "/opt/tljh/hub/lib/python3.6/site-packages/tljh_repo2docker/builder.py", line 135, in post
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]:         display_name = data["displayName"]
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]:     KeyError: 'displayName'
Apr 30 15:39:57 plasmabio-pierrepo-test-2 python3[18482]: [E 200430 15:39:57 web:2250] 500 POST /services/environments/api/build (127.0.0.1) 4.12ms
Apr 30 15:39:59 plasmabio-pierrepo-test-2 python3[18482]: [I 2020-04-30 15:39:59.166 JupyterHub log:174] 200 GET /hub/api/users (cull-idle@51.68.113.239) 17.39ms


Since the JS has changed it would be good to try after clearing the cache.

Bloody cache...

It is now working like a charm. Sorry for that 😞

image