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.

InsecureRequestWarning After enabling letsencrypt

See original GitHub issue
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/.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
stephen-a2zcommented, May 28, 2020

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,

0reactions
mtavcommented, 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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

LetsEncrypt: InsecureRequestWarning: Unverified HTTPS ...
During upgrade i was not able to install Letsencrypt CA, following the steps on How to Enable HTTPS with letsencrypt So that i...
Read more >
Problems creating a new certificate - Help
Hi, i discovered this morning while trying to add new hosting on our ispconfig that the creation of the SSL certificate wasn't working....
Read more >
Endless InsecureRequestWarning errors with UniFi
I'm running Home Assistant and Unifi Controller in docker containers on a Synology DSM-918+. Your answer was the only solution after reaching ...
Read more >
What does the Python InsecureRequestWarning really mean?
... InsecureRequestWarning: Unverified HTTPS request is being made. ... When using requests , an unverified connection should raise a ...
Read more >
cant create a ssl certificate Let's Encrypt - aaPanel - aaPanel
I ve this error when i try create a Let's Encrypt certificate ... InsecureRequestWarning: Unverified HTTPS request is being made.
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