Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InsecureRequestWarning After enabling letsencrypt #454

Closed
abhillman opened this issue Oct 27, 2019 · 8 comments
Closed

InsecureRequestWarning After enabling letsencrypt #454

abhillman opened this issue Oct 27, 2019 · 8 comments

Comments

@abhillman
Copy link

root@littlest-jupyter-hub:/opt/tljh/config/jupyterhub_config.d# sudo tljh-config reload
active
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
Hub reload with new configuration complete

Sometimes the errors don't go away when I mess with configuration, perhaps implying that other errors are clobbered.

Related, but closed issues, appear to be:

pip freeze output:

# pip freeze
aiohttp==3.6.2
alembic==1.2.1
async-generator==1.10
async-timeout==3.0.1
attrs==19.3.0
backoff==1.8.1
bcrypt==3.1.7
certifi==2019.9.11
certipy==0.1.3
cffi==1.13.1
chardet==3.0.4
cryptography==2.8
decorator==4.4.0
entrypoints==0.3
escapism==1.0.0
etcd3==0.10.0
grpcio==1.24.3
idna==2.8
idna-ssl==1.1.0
importlib-metadata==0.23
ipython-genutils==0.2.0
Jinja2==2.10.3
jupyterhub==1.0.0
jupyterhub-dummyauthenticator==0.3.1
jupyterhub-firstuseauthenticator==0.12
jupyterhub-ldapauthenticator==1.2.2
jupyterhub-nativeauthenticator==0.0.4
jupyterhub-systemdspawner==0.13
jupyterhub-tmpauthenticator==0.6
jupyterhub-traefik-proxy==0.1.4
ldap3==2.6.1
Mako==1.1.0
MarkupSafe==1.1.1
more-itertools==7.2.0
multidict==4.5.2
oauthenticator==0.8.2
oauthlib==3.1.0
pamela==1.0.0
passlib==1.7.1
pkg-resources==0.0.0
pluggy==0.13.0
prometheus-client==0.7.1
protobuf==3.10.0
pyasn1==0.4.7
pycparser==2.19
pycurl==7.43.0.3
pyOpenSSL==19.0.0
python-consul==1.1.0
python-dateutil==2.8.0
python-editor==1.0.4
requests==2.22.0
ruamel.yaml==0.15.100
six==1.12.0
SQLAlchemy==1.3.10
tenacity==5.1.1
the-littlest-jupyterhub==0.1
toml==0.10.0
tornado==6.0.3
traitlets==4.3.3
typing-extensions==3.7.4
urllib3==1.25.6
yarl==1.3.0
zipp==0.6.0

Running on Ubuntu LTS on Google Cloud per instructions here https://the-littlest-jupyterhub.readthedocs.io/.

@stephen-a2z
Copy link

I meet the same error
root@ubuntu:~# sudo tljh-config reload

active
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,

@gileiro
Copy link

gileiro commented Jul 14, 2020

I get the same:

# tljh-config reload hub
active
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
Hub reload with new configuration complete

# lsof -i -P -n | grep LISTEN
rpcbind    480            root    8u  IPv4  16447      0t0  TCP *:111 (LISTEN)
rpcbind    480            root   11u  IPv6  16450      0t0  TCP *:111 (LISTEN)
systemd-r  755 systemd-resolve   13u  IPv4  18668      0t0  TCP 127.0.0.53:53 (LISTEN)
sshd      1101            root    3u  IPv4  21228      0t0  TCP *:22 (LISTEN)
sshd      1101            root    4u  IPv6  21230      0t0  TCP *:22 (LISTEN)
traefik   5291            root    3u  IPv6  60372      0t0  TCP *:443 (LISTEN)
traefik   5291            root    5u  IPv4  60374      0t0  TCP 127.0.0.1:8099 (LISTEN)
traefik   5291            root    6u  IPv6  60375      0t0  TCP *:80 (LISTEN)
python3   6140            root    8u  IPv4  63896      0t0  TCP 127.0.0.1:15001 (LISTEN)

$ sudo journalctl -u jupyterhub -f
-- Logs begin at Tue 2020-07-14 14:44:18 UTC. --
Jul 14 19:10:04 jupyter python3[6140]: [I 2020-07-14 19:10:04.437 JupyterHub proxy:320] Checking routes
Jul 14 19:10:04 jupyter python3[6140]: [I 2020-07-14 19:10:04.671 JupyterHub log:174] 200 GET /hub/api/users (cull-idle@127.0.0.1) 23.42ms
Jul 14 19:11:04 jupyter python3[6140]: [I 2020-07-14 19:11:04.671 JupyterHub log:174] 200 GET /hub/api/users (cull-idle@127.0.0.1) 22.39ms
Jul 14 19:12:04 jupyter python3[6140]: [I 2020-07-14 19:12:04.674 JupyterHub log:174] 200 GET /hub/api/users (cull-idle@127.0.0.1) 23.90ms
Jul 14 19:13:04 jupyter python3[6140]: [I 2020-07-14 19:13:04.679 JupyterHub log:174] 200 GET /hub/api/users (cull-idle@127.0.0.1) 30.59ms
Jul 14 19:14:04 jupyter python3[6140]: [I 2020-07-14 19:14:04.671 JupyterHub log:174] 200 GET /hub/api/users (cull-idle@127.0.0.1) 21.32ms
Jul 14 19:15:04 jupyter python3[6140]: [I 2020-07-14 19:15:04.409 JupyterHub proxy:320] Checking routes
Jul 14 19:15:04 jupyter python3[6140]: [I 2020-07-14 19:15:04.671 JupyterHub log:174] 200 GET /hub/api/users (cull-idle@127.0.0.1) 23.01ms
Jul 14 19:16:04 jupyter python3[6140]: [I 2020-07-14 19:16:04.671 JupyterHub log:174] 200 GET /hub/api/users (cull-idle@127.0.0.1) 22.31ms
Jul 14 19:17:04 jupyter python3[6140]: [I 2020-07-14 19:17:04.679 JupyterHub log:174] 200 GET /hub/api/users (cull-idle@127.0.0.1) 28.87ms

$ sudo journalctl -u traefik                                                                                                                                                                                                                              
-- Logs begin at Tue 2020-07-14 14:44:18 UTC, end at Tue 2020-07-14 19:19:01 UTC. --                                                                                                                                                                                      
Jul 14 15:28:55 jupyter systemd[1]: Started traefik.service.
Jul 14 15:28:55 jupyter systemd[1]: Stopping traefik.service...
Jul 14 15:28:55 jupyter systemd[1]: Stopped traefik.service.
Jul 14 15:28:55 jupyter systemd[1]: Started traefik.service.
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Using TOML configuration file /opt/tljh/state/traefik.toml"
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Traefik version v1.7.18 built on 2019-09-26_01:56:30PM"
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://docs.traefik.io/v1.7/basics/#collected-data\n"
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Preparing server http &{Address::80 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc000915b60} with
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Preparing server auth_api &{Address:127.0.0.1:8099 TLS:<nil> Redirect:<nil> Auth:0xc0007fc6c0 WhitelistSourceRange:[] WhiteList:0xc000914a00 Compress:false ProxyProtocol:<nil> Forward
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Starting provider configuration.ProviderAggregator {}"
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Starting server on :80"
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Starting server on 127.0.0.1:8099"
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Starting provider *file.Provider {\"Watch\":true,\"Filename\":\"\",\"Constraints\":null,\"Trace\":false,\"TemplateVersion\":0,\"DebugLogGeneratedTemplate\":false,\"Directory\":\"rules
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 15:28:55 jupyter traefik[4675]: time="2020-07-14T15:28:55Z" level=info msg="Server configuration reloaded on :80"
Jul 14 15:28:57 jupyter traefik[4675]: time="2020-07-14T15:28:57Z" level=info msg="Skipping same configuration for provider file"
Jul 14 15:28:57 jupyter traefik[4675]: time="2020-07-14T15:28:57Z" level=info msg="Server configuration reloaded on :80"
Jul 14 15:28:57 jupyter traefik[4675]: time="2020-07-14T15:28:57Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 15:28:57 jupyter traefik[4675]: time="2020-07-14T15:28:57Z" level=info msg="Skipping same configuration for provider file"
Jul 14 15:28:57 jupyter traefik[4675]: time="2020-07-14T15:28:57Z" level=info msg="Skipping same configuration for provider file"
Jul 14 15:38:56 jupyter traefik[4675]: time="2020-07-14T15:38:56Z" level=warning msg="A new release has been found: 2.2.5. Please consider updating."
Jul 14 18:05:42 jupyter traefik[4675]: time="2020-07-14T18:05:42Z" level=info msg="Skipping same configuration for provider file"
Jul 14 18:05:42 jupyter traefik[4675]: time="2020-07-14T18:05:42Z" level=info msg="Server configuration reloaded on :80"
Jul 14 18:05:42 jupyter traefik[4675]: time="2020-07-14T18:05:42Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 18:05:44 jupyter traefik[4675]: time="2020-07-14T18:05:44Z" level=info msg="Server configuration reloaded on :80"
Jul 14 18:05:44 jupyter traefik[4675]: time="2020-07-14T18:05:44Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 18:11:14 jupyter traefik[4675]: time="2020-07-14T18:11:14Z" level=info msg="Server configuration reloaded on :80"
Jul 14 18:11:14 jupyter traefik[4675]: time="2020-07-14T18:11:14Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 18:11:14 jupyter systemd[1]: Stopping traefik.service...
Jul 14 18:11:14 jupyter traefik[4675]: time="2020-07-14T18:11:14Z" level=info msg="I have to go..."
Jul 14 18:11:14 jupyter traefik[4675]: time="2020-07-14T18:11:14Z" level=info msg="Stopping server gracefully"
Jul 14 18:11:14 jupyter traefik[4675]: time="2020-07-14T18:11:14Z" level=info msg="Server stopped"
Jul 14 18:11:14 jupyter traefik[4675]: time="2020-07-14T18:11:14Z" level=info msg="Shutting down"
Jul 14 18:11:14 jupyter systemd[1]: Stopped traefik.service.
Jul 14 18:11:14 jupyter systemd[1]: Started traefik.service.
Jul 14 18:11:14 jupyter traefik[5291]: time="2020-07-14T18:11:14Z" level=info msg="Using TOML configuration file /opt/tljh/state/traefik.toml"
Jul 14 18:11:14 jupyter traefik[5291]: time="2020-07-14T18:11:14Z" level=info msg="Traefik version v1.7.18 built on 2019-09-26_01:56:30PM"
Jul 14 18:11:14 jupyter traefik[5291]: time="2020-07-14T18:11:14Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://docs.traefik.io/v1.7/basics/#collected-data\n"
Jul 14 18:11:14 jupyter traefik[5291]: time="2020-07-14T18:11:14Z" level=info msg="Preparing server https &{Address::443 TLS:0xc0005606c0 Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc0002070
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="Preparing server auth_api &{Address:127.0.0.1:8099 TLS:<nil> Redirect:<nil> Auth:0xc0005b8600 WhitelistSourceRange:[] WhiteList:0xc000206020 Compress:false ProxyProtocol:<nil> Forward
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="Preparing server http &{Address::80 TLS:<nil> Redirect:0xc00008b540 Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc0002070e0
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="Starting provider configuration.ProviderAggregator {}"
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="Starting server on :443"
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="Starting server on 127.0.0.1:8099"
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="Starting server on :80"
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="Starting provider *file.Provider {\"Watch\":true,\"Filename\":\"\",\"Constraints\":null,\"Trace\":false,\"TemplateVersion\":0,\"DebugLogGeneratedTemplate\":false,\"Directory\":\"rules
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="Starting provider *acme.Provider {\"Email\":\"marcin.tomasz.gil@gmail.com\",\"ACMELogging\":false,\"CAServer\":\"https://acme-v02.api.letsencrypt.org/directory\",\"Storage\":\"acme.js
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="Testing certificate renew..."
Jul 14 18:11:15 jupyter traefik[5291]: time="2020-07-14T18:11:15Z" level=info msg="The key type is empty. Use default key type 4096."
Jul 14 18:11:16 jupyter traefik[5291]: time="2020-07-14T18:11:16Z" level=info msg="Server configuration reloaded on :443"
Jul 14 18:11:16 jupyter traefik[5291]: time="2020-07-14T18:11:16Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 18:11:16 jupyter traefik[5291]: time="2020-07-14T18:11:16Z" level=info msg="Server configuration reloaded on :80"
Jul 14 18:11:16 jupyter traefik[5291]: time="2020-07-14T18:11:16Z" level=info msg="Server configuration reloaded on :80"
Jul 14 18:11:16 jupyter traefik[5291]: time="2020-07-14T18:11:16Z" level=info msg="Server configuration reloaded on :443"
Jul 14 18:11:16 jupyter traefik[5291]: time="2020-07-14T18:11:16Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 18:11:18 jupyter traefik[5291]: time="2020-07-14T18:11:18Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
ul 14 18:11:18 jupyter traefik[5291]: time="2020-07-14T18:11:18Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 18:11:18 jupyter traefik[5291]: time="2020-07-14T18:11:18Z" level=info msg="Server configuration reloaded on :80"
Jul 14 18:11:18 jupyter traefik[5291]: time="2020-07-14T18:11:18Z" level=info msg="Server configuration reloaded on :443"
Jul 14 18:11:21 jupyter traefik[5291]: time="2020-07-14T18:11:21Z" level=info msg=Register...
Jul 14 18:11:26 jupyter traefik[5291]: time="2020-07-14T18:11:26Z" level=error msg="Unable to obtain ACME certificate for domains \"vaxar.online\" : unable to generate a certificate for the domains [vaxar.online]: acme: Error -> One or more domains had a problem:\n[
Jul 14 18:16:16 jupyter traefik[5291]: time="2020-07-14T18:16:16Z" level=info msg="Skipping same configuration for provider file"
Jul 14 18:16:16 jupyter traefik[5291]: time="2020-07-14T18:16:16Z" level=info msg="Skipping same configuration for provider file"
Jul 14 18:16:16 jupyter traefik[5291]: time="2020-07-14T18:16:16Z" level=info msg="Server configuration reloaded on :443"
Jul 14 18:16:16 jupyter traefik[5291]: time="2020-07-14T18:16:16Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 18:16:16 jupyter traefik[5291]: time="2020-07-14T18:16:16Z" level=info msg="Server configuration reloaded on :80"
Jul 14 18:16:18 jupyter traefik[5291]: time="2020-07-14T18:16:18Z" level=info msg="Server configuration reloaded on :80"
Jul 14 18:16:18 jupyter traefik[5291]: time="2020-07-14T18:16:18Z" level=info msg="Server configuration reloaded on :443"
Jul 14 18:16:18 jupyter traefik[5291]: time="2020-07-14T18:16:18Z" level=info msg="Server configuration reloaded on 127.0.0.1:8099"
Jul 14 18:21:15 jupyter traefik[5291]: time="2020-07-14T18:21:15Z" level=warning msg="A new release has been found: 2.2.5. Please consider updating."
Jul 14 18:55:03 jupyter traefik[5291]: {"BackendAddr":"127.0.0.1:15001","BackendName":"backend__2F","BackendURL":{"Scheme":"http","Opaque":"","User":null,"Host":"127.0.0.1:15001","Path":"","RawPath":"","ForceQuery":false,"RawQuery":"","Fragment":""},"ClientAddr":"12
Jul 14 18:55:04 jupyter traefik[5291]: {"BackendAddr":"127.0.0.1:15001","BackendName":"backend__2F","BackendURL":{"Scheme":"http","Opaque":"","User":null,"Host":"127.0.0.1:15001","Path":"","RawPath":"","ForceQuery":false,"RawQuery":"","Fragment":""},"ClientAddr":"12

@satoi8080
Copy link

Same here

sudo tljh-config reload
active
/opt/tljh/hub/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
/opt/tljh/hub/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
/opt/tljh/hub/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
/opt/tljh/hub/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
Hub reload with new configuration complete

@consideRatio
Copy link
Member

I think this is resolved by #357!

@davidedelvento
Copy link

This is still happening right now for me.

I have just installed TLJH from https://tljh.jupyter.org/bootstrap.py changed some bits of configurations and then I can't apply them since sudo tljh-config reload gets stuck into this loop. I am doing exactly the same fresh install which I was doing a week ago, when it worked just fine (but then, various pip and conda installs might have changed since)

Let me know if I should open a separate issue with more details instead of this "footnote" on closed issue.

@teward
Copy link

teward commented Feb 23, 2022

This issue persists with an existing SSL as well. Constant InsecureRequestWarning loop.

@davidedelvento
Copy link

davidedelvento commented Mar 7, 2022

In case others land here and feel stuck, there is still something like a race condition or other issue that cause a loop of these warnings, which eventually clears. That is "normal" (should not, but we can live with it).

In some other circumstances, the finite loop becomes infinite. It is very annoying to not see the reason, but double checking everything should allow one to find the solution. In my case, it was an incorrect value set in the field auth.NativeAuthenticator.secret_key

@mtav
Copy link

mtav commented Sep 9, 2022

This issue still exists. I don't get stuck in a loop, but I keep getting warnings when reloading the hub (not the proxy):

$ sudo tljh-config reload hub
active
/opt/tljh/hub/lib/python3.10/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
/opt/tljh/hub/lib/python3.10/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
Hub reload with new configuration complete

@consideRatio : #357 does not fix this, as it seems to only disable these warnings for upgrades specifically. I assume a similar fix could be done for tljh-config reload. Or maybe some sort of hostname configuration needs to be done, so the SSL requests to 127.0.0.1 get redirected to the domain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants