【问题标题】:Jupyterhub + DockerSpawner: Error in Authenticator.pre_spawn_start: APIError 400 Client Error: Bad Request ("invalid tag format")Jupyterhub + DockerSpawner:Authenticator.pre_spawn_start 中的错误:APIError 400 客户端错误:错误请求(“无效标签格式”)
【发布时间】:2020-02-08 15:17:29
【问题描述】:

我正在 iframe 中加载 jupyterhub。父页面和 jupyterhub 都使用相同的身份验证服务(keycloak)。我首先使用我的用户名(rabraham)登录到我的父页面,然后我打开一个 iframe 并启动 jupyterhub,然后我登录到 jupyterhub。它可以正常登录,但在使用 DockerSpawner 时可能会在下一步失败

500 : Internal Server Error
Error in Authenticator.pre_spawn_start: APIError 400 Client Error: Bad Request ("invalid tag format")

You can try restarting your server from the home page.

如果有帮助,这里是我的日志:

[I 2020-02-07 19:41:50.050 JupyterHub proxy:320] Checking routes
[I 2020-02-07 19:44:04.222 JupyterHub log:174] 302 GET / -> /hub/ (@::ffff:192.0.161.155) 1.87ms
[I 2020-02-07 19:44:04.305 JupyterHub log:174] 302 GET /hub/ -> /hub/login (@::ffff:192.0.161.155) 1.30ms
[I 2020-02-07 19:44:04.387 JupyterHub log:174] 200 GET /hub/login (@::ffff:192.0.161.155) 3.06ms
[I 2020-02-07 19:44:05.988 JupyterHub oauth2:103] OAuth redirect: 'http://35.225.100.133:30100/hub/oauth_callback'
[I 2020-02-07 19:44:05.990 JupyterHub log:174] 302 GET /hub/oauth_login?next= -> http://35.225.100.133:30080/auth/realms/master/protocol/openid-connect/auth?response_type=code&redirect_uri=http%3A%2F%2F35.225.100.133%3A30100%2Fhub%2Foauth_callback&client_id=jupyterhub&state=[secret] (@::ffff:192.0.161.155) 2.57ms
[I 2020-02-07 19:44:06.206 JupyterHub base:707] User logged in: rabraham
[I 2020-02-07 19:44:06.214 JupyterHub log:174] 302 GET /hub/oauth_callback?state=[secret]&session_state=[secret]&code=[secret] -> /hub/spawn (@::ffff:192.0.161.155) 84.66ms
[I 2020-02-07 19:44:06.440 JupyterHub dockerspawner:930] pulling image localhost:5000/fifteenrock/fifteenrock-jupyterhub:0.1
[E 2020-02-07 19:44:06.446 JupyterHub user:640] Unhandled error starting rabraham's server: 400 Client Error: Bad Request ("invalid tag format")
[I 2020-02-07 19:44:06.449 JupyterHub dockerspawner:784] Container 'jupyter-rabraham' is gone
[W 2020-02-07 19:44:06.450 JupyterHub dockerspawner:757] Container not found: jupyter-rabraham
[W 2020-02-07 19:44:06.467 JupyterHub web:1782] 500 GET /hub/spawn (::ffff:192.0.161.155): Error in Authenticator.pre_spawn_start: APIError 400 Client Error: Bad Request ("invalid tag format")
[E 2020-02-07 19:44:06.497 JupyterHub log:166] {
      "X-Forwarded-Host": "35.225.100.133:30100",
      "X-Forwarded-Proto": "http",
      "X-Forwarded-Port": "30100",
      "X-Forwarded-For": "::ffff:192.0.161.155",
      "Cookie": "jupyterhub-hub-login=[secret]; session=[secret]; oidc_id_token=[secret]; jupyterhub-session-id=[secret]",
      "Accept-Language": "en-CA,en-GB;q=0.9,en-US;q=0.8,en;q=0.7",
      "Accept-Encoding": "gzip, deflate",
      "Referer": "http://35.225.100.133:30100/hub/login",
      "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36",
      "Upgrade-Insecure-Requests": "1",
      "Connection": "close",
      "Host": "35.225.100.133:30100"
    }
[E 2020-02-07 19:44:06.497 JupyterHub log:174] 500 GET /hub/spawn (rabraham@::ffff:192.0.161.155) 199.18ms

【问题讨论】:

  • 错误来自您的本地 docker 存储库。因此,您可能应该检查 localhost:5000 上的私有 docker repo 的日志。您需要那里的身份验证吗?
  • 谢谢。我不需要身份验证。您是指软件 docker 本身的日志还是容器的日志?除了已创建的中心映像之外没有其他容器。
  • @abinet。你是对的。谢谢你。发生的事情是我忘记在我的 yaml 配置文件中引用我的图像版本。所以我的图像版本字符串'0.10'变成了0.1,它找不到它。如果您愿意,请将其作为答案,我可以接受它以获得更多积分。

标签: docker jupyterhub


【解决方案1】:

错误来自您的本地 docker 存储库。因此,您可能应该检查 localhost:5000 上的私有 docker repo 的日志。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-04-03
    • 2019-11-10
    • 2020-05-20
    • 2015-08-17
    • 1970-01-01
    • 2013-09-12
    • 1970-01-01
    相关资源
    最近更新 更多