urllib3.exceptions.NewConnectionError and adding ordig to system startup
derekschartung opened this issue · comments
Two things our team worked through.
-
urllib3 threw an error since the hostname could not be resolved. We noticed that wg peers could not ping anything other than the private IP of the wg server/peer. We updated /etc/hosts with the public dns name of the server. I should note our wg server is behind NAT using a Fortigate FW - SNAT to inside private IP and DNAT from private to public IP. We have a hairpin policy in place, so having a static host assigned in /etc/hosts solved the issue for us.
-
We created a systemd service to run /opt/ordig/start.sh at system startup. This could have easily been a crontab entry, but we wanted to be proper.
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='wg.example.org', port=443): Max retries exceeded with url: /api/v1/server/config (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff1a22fc430>: Failed to establish a new connection: [Errno -5] No address associated with hostname'))
Closing this since it is just a report - nothing broken.