question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error accessing Hub API - HTTP 599: SSL certificate problem

See original GitHub issue

Bug description

Binderhub instance launch fails because of SSL certificate issues for the jupyter hub.

Expected behaviour

Launch success.

Actual behaviour

Errors related to the jupyter hub access in the binder pod.

Error accessing Hub API (using <>/jupyter/hub/api/users/neurolibre-binder-tuto-8u2o82xt): HTTP 599: SSL certificate problem: unable to get local issuer certificate
Error creating user neurolibre-binder-tuto-8u2o82xt: HTTP 599: SSL certificate problem: unable to get local issuer certificate

What is weird is that we can access the binder webpage (through https, the cert is okay), and launch a build correctly.

How to reproduce

We are using a certificate from certbot, and manually inject it into k8s cluster: kubectl create secret tls <>-tls --namespace=binderhub --cert=certbot/fullchain.pem --key=certbot/privkey.pem

We are not using cert-manager because we have too much issues with it, and we will buy a certificate for our domain in the future.

Your personal set up

  • OS: ubuntu 18
  • Version: binder v0.2.0-n121.h6d936d7
  • Configuration:
jupyterhub:
  ingress:
    enabled: true
    hosts:
      - <>
    annotations:
      kubernetes.io/ingress.class: nginx
      kubernetes.io/tls-acme: "true"
    https:
      enabled: true
      type: nginx
    config:
      # Allow POSTs of upto 64MB, for large notebook support.
      proxy-body-size: 64m
    tls:
      - secretName: <>-tls
        hosts:
          -<>
  hub:
    baseUrl: /jupyter/
    image:
      name: conpdev/hub-image
      tag: v1.4
  proxy:
    service:
      type: NodePort
  cull:
    timeout: 600
    every: 120
  singleuser:
    memory:
       guarantee: 2G
    cpu:
       guarantee: 1

# BinderHub config
config:
  GitHubRepoProvider:
    banned_specs:
      - ^(?!neurolibre\/.*).*
      - ^ines/spacy-binder.*
      - ^soft4voip/rak.*
      - ^hmharshit/cn-ait.*
      - ^shishirchoudharygic/mltraining.*
      - ^hmharshit/mltraining.*
  BinderHub:
    hub_url: https://<>/jupyter
    use_registry: true
    image_prefix: conpdev/binder-mcgill-

service:
  type: NodePort

storage:
  capacity: 2G

ingress:
  enabled: true
  hosts:
    - <>
  annotations:
    kubernetes.io/ingress.class: nginx
    kubernetes.io/tls-acme: "true"
  https:
    enabled: true
    type: nginx
  config:
    # Allow POSTs of upto 64MB, for large notebook support.
    proxy-body-size: 64m
  tls:
    - secretName: <>-tls
      hosts:
        - <>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ltetrelcommented, Sep 1, 2020

We can continue the discussion it in the discourse forum. I will close this issue, since it seems to be not related to binderhub, but rather networking configuration.

0reactions
meeseeksmachinecommented, Sep 1, 2020

This issue has been mentioned on Jupyter Community Forum. There might be relevant details there:

https://discourse.jupyter.org/t/error-accessing-hub-api-http-599-ssl-certificate-problem/5824/1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error accessing Hub API - HTTP 599: SSL certificate problem
UPDATE: When we spawned the cluster, our binderhub domain was not accessible from within the LAN (SSL certificate problem). After adding the ...
Read more >
Security settings — JupyterHub 3.1.0 documentation
Since JupyterHub includes authentication and allows arbitrary code execution, you should not run it without SSL (HTTPS). Using an SSL certificate#. This will ......
Read more >
SSL certificate problem: Unable to get local issuer certificate
Resolution · Tell git to not perform the validation of the certificate using the global option: · Please be advised disabling SSL verification...
Read more >
curl: (60) SSL certificate problem: unable to get local issuer ...
Relating to 'SSL certificate problem: unable to get local issuer certificate' error. It is important to note that this applies to the system ......
Read more >
How to Fix the Side Effect caused by New SSL Cert on ...
Jupyter Hub fails in OAuth handshaking with HydroShare “HTTP 599: server certificate verification failed. CAfile: none CRLfile: none”
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found