Hello Everybody.
I have an unraid server with mutliple fixed IPs (e.g. with the ending .15 for unraid, .16 for nextcloud 1, .17 for nextcloud 2, .18 for windows VM etc.) and now I wanted to set up lets encrypt container for https connection.
However, I am not able to configure it the right way and I can't find any tutorials which match my case. I have followed many instructions, created a domain with several subdomains pointing to the unraid server IP, however I struggle with IP forwarding since there is no router to do it - I just have a fixed IP.
To the procedure:
When I configure letsencrypt with Ports 80 and 443 and the custom network called "proxynet", the container fails to start with the error:
'URL'='alptekin.de' -e 'SUBDOMAINS'='www,cloud' -e 'ONLY_SUBDOMAINS'='true' -e 'DHLEVEL'='2048' -e 'VALIDATION'='http' -e 'DNSPLUGIN'='' -e 'PUID'='99' -e 'PGID'='100' -p '80:80/tcp' -p '443:443/tcp' -v '/mnt/user/appdata/letsencrypt':'/config':'rw' 'linuxserver/letsencrypt'
b5048c49965b8301d7ad84b3f674583c5b911f615d553d787334c847a248908a
/usr/bin/docker: Error response from daemon: driver failed programming external connectivity on endpoint letsencrypt (28ea8b125fda09108bb915b42aa644542626a2da05e89d0d664eaf63fad0ef28): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use.
The command failed.
When I set up with different Ports for http and https, e.g. 180 and 1443, the container starts correctly
'URL'='alptekin.de' -e 'SUBDOMAINS'='www,cloud' -e 'ONLY_SUBDOMAINS'='true' -e 'DHLEVEL'='2048' -e 'VALIDATION'='http' -e 'DNSPLUGIN'='' -e 'PUID'='99' -e 'PGID'='100' -p '180:80/tcp' -p '1443:443/tcp' -v '/mnt/user/appdata/letsencrypt':'/config':'rw' 'linuxserver/letsencrypt'
ce11a06bffa81d45dc3e56683f1bddbd7912263e640d9ec5ea2bc9921a4a3215
The command finished successfully!
but there are several errors in the container log:
Performing the following challenges:
http-01 challenge for cloud.alptekin.de
http-01 challenge for www.alptekin.de
Waiting for verification...
Challenge failed for domain cloud.alptekin.de
Challenge failed for domain www.alptekin.de
http-01 challenge for cloud.alptekin.de
http-01 challenge for www.alptekin.de
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: cloud.alptekin.de
Type: unauthorized
Detail: Invalid response from http://cloud.alptekin.de/login
[xxx.xxx.xxx.19]: "<!DOCTYPE html>\n<html class=\"ng-csp\"
data-placeholder-focus=\"false\" lang=\"en\" data-locale=\"en\"
>\n\t<head\n data-requesttoken=\"sdOZ"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
- The following errors were reported by the server:
Domain: www.alptekin.de
Type: connection
Detail: Fetching
http://www.alptekin.de/.well-known/acme-challenge/SCwRkrdGFW8SRRVNevsrbjvTkldoatzXFdEOeQMWx_A:
Timeout during connect (likely firewall problem)
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container