azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.59k stars 127 forks source link

[BUG]: Port 443 listens but not reactive #20

Closed Node815 closed 1 year ago

Node815 commented 1 year ago

What happened?

When I try to access via https, I get a page not found and no resolution. I can access the site via http however but I don't think this is a good idea. :) If I restart cosmos-server via docker - I get very brief (less than 2 seconds of port 443 availability).

What should have happened?

I should be able access via the https level.

How to reproduce the bug?

Install on fresh system. Make sure your IP is correctly forwarded to via the router to both 443 and port 80 TCP stack. Let it restart the cosmose-server container Try to access your site via https

Check canyousemee.org and you can confirm port 80 is listening but 443 is not.

Relevant log output

I see it listening:
lsof -i :443 -S
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 5931 root    4u  IPv4  43874      0t0  TCP *:https (LISTEN)
docker-pr 5937 root    4u  IPv6  45555      0t0  TCP *:https (LISTEN)

Other details

No response

System details

Debian 11 fresh install static IP - Cloudflare DNS pointing to my system.
Firefox Browser and Chromium both tried.

azukaar commented 1 year ago

Check your Cosmos logs (docker log cosmos), you should have an error where the Let's Encrypt bot fails to validate the certificate with Let's Encrypt. It usually have two explanations:

Please double check that, and re-open the ticket posting logs if that's not the case