Letencrypt Error on NextCloudPi

Hello,

I’m attempting to install NextCloudPi on a Raspberry Pi 4 and I’m running into isues with letsencrypt. Here’s my system information:

distribution Raspbian GNU/Linux 10 \n \l
automount yes
USB devices sda
datadir /media/myCloudDrive/ncdata
data in SD no
data filesystem btrfs
data disk usage 64M/116G
rootfs usage 2.2G/118G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 17.0.2.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
Postfix service up
internet check no
port check 80 closed
port check 443 closed
IP 192.168.1.120
gateway 192.168.1.1
interface eth0
certificates none
NAT loopback no
uptime 20min

Ports are being forwarded on :80 and :443. When I attempt to activate letsencrypt for my FreeDNS domain, I receive the following error:

[ letsencrypt ]
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
An unexpected error occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb5747c70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5747c70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb5747c70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Please see the logfiles in /var/log/letsencrypt for more details.

I’ve looked all around the forums and GitHub and am not sure how to continue. Any help would be greatly appreciated!

Your ports 80 and 443 are closed, but should be open.
Is a firewall blocking them?

Huh, they appear open in my router. I should probably detail how my routers are configured:

Dual modem/router from cable provider —> secondary router with all requests passed through OpenVPN connection, using DDWRT —> rpi

Modem/router from cable provider has been locked from changing DNS providers and cable provider can observe all traffic, so I use an additional router connected to that with all traffic routed through an OpenVPN connection.

If the pi was connected to this “watched” network, would files uploaded and downloaded to the pi over this network be visible by the cable provider?

Thanks for your help.