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.65k stars 130 forks source link

[BUG]: Can't access using domain name #317

Closed Dan-Yaw closed 2 months ago

Dan-Yaw commented 2 months ago

What happened?

I can not access using the domain name. However, accessing with the machine name works, and it gives the expected error to use the domain name. This was working fine right after setup, however, a few days later, not working

What should have happened?

Web UI should have worked

How to reproduce the bug?

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Relevant log output


2024/09/09 17:46:23 [INFO] Starting Cosmos-Server version 0.15.7
2024/09/09 17:46:23 [INFO] ------------------------------------------
2024/09/09 17:46:23 [INFO] Using config file: /config/cosmos.config.json
2024/09/09 17:46:23 [INFO] Validating config file...
2024/09/09 17:46:23 [INFO] Docker Connected
2024/09/09 17:46:23 [INFO] Cosmos IsHostNetwork: true
2024/09/09 17:46:23 [INFO] Checking for self updater agent
2024/09/09 17:46:23 [INFO] Docker API version: 1.47
2024/09/09 17:46:23 [INFO] Using config file: /config/cosmos.config.json
2024/09/09 17:46:23 [INFO] Puppet mode enabled. Checking for DB...
2024/09/09 17:46:23 [INFO] (Re) Connecting to the database...
2024/09/09 17:46:23 [INFO] Getting Mongo DB IP from name : cosmos-mongo-PGK (port 27017)
2024/09/09 17:46:23 [INFO] Mongo DB IP : 172.17.0.2
2024/09/09 17:46:23 [INFO] Successfully connected to the database.
2024/09/09 17:46:23 [INFO] Starting monitoring services...
2024/09/09 17:46:23 [INFO] Starting market services...
2024/09/09 17:46:23 [INFO] MarketInit: Added market cosmos-cloud
2024/09/09 17:46:23 [INFO] Starting OpenID services...
2024/09/09 17:46:23 [INFO] Using config file: /config/cosmos.config.json
2024/09/09 17:46:23 [INFO] Metrics: Agglomeration Initialized
2024/09/09 17:46:23 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 17:46:24 [INFO] OpenID server initialized
2024/09/09 17:46:24 [INFO] Starting constellation services...
2024/09/09 17:46:24 [INFO] Resetting CRON scheduler: SnapRAID
2024/09/09 17:46:24 [INFO] Initializing CRON...
2024/09/09 17:46:24 [INFO] Initializing custom jobs from config...
2024/09/09 17:46:24 [INFO] Resetting CRON scheduler: Custom
2024/09/09 17:46:24 [INFO] Initializing CRON jobs to scheduler...
2024/09/09 17:46:24 [INFO] Starting server...
2024/09/09 17:46:24 [INFO] Initialising HTTP(S) Router and all routes
2024/09/09 17:46:24 [INFO] CRON scheduler started with 0 jobs
2024/09/09 17:46:24 [INFO] Starting in /app
2024/09/09 17:46:24 [INFO] TLS certificate exist, starting HTTPS servers and redirecting HTTP to HTTPS
2024/09/09 17:46:24 [INFO] Listening to HTTP on :80
2024/09/09 17:46:24 [INFO] Listening to HTTPS on :443
2024/09/09 17:46:24 [INFO] Network: Initializing internal TCP proxy
2024/09/09 17:46:24 [INFO] Now listening to HTTPS on :443
2024/09/09 17:46:24 [INFO] Metrics: Agglomeration of metrics
2024/09/09 17:46:24 [INFO] Metrics: Agglomeration done. Saving to DB
2024/09/09 17:46:24 [INFO] Metrics: Agglomeration saved to DB
2024/09/09 17:46:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 17:47:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 17:47:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:06:31 [INFO] ------------------------------------------
2024/09/09 18:06:31 [DEBUG] checkVersion{
  "version": "0.15.7",
  "buildDate": "Thu Apr 25 15:46:14 UTC 2024",
  "built from": "ip-10-0-23-1"
}

2024/09/09 18:06:31 [INFO] Starting Cosmos-Server version 0.15.7
2024/09/09 18:06:31 [INFO] ------------------------------------------
2024/09/09 18:06:31 [INFO] Using config file: /config/cosmos.config.json
2024/09/09 18:06:31 [INFO] Validating config file...
2024/09/09 18:06:31 [INFO] Docker Connected
2024/09/09 18:06:31 [INFO] Cosmos IsHostNetwork: true
2024/09/09 18:06:31 [INFO] Checking for self updater agent
2024/09/09 18:06:31 [INFO] Docker API version: 1.47
2024/09/09 18:06:31 [INFO] Using config file: /config/cosmos.config.json
2024/09/09 18:06:31 [INFO] Puppet mode enabled. Checking for DB...
2024/09/09 18:06:31 [INFO] (Re) Connecting to the database...
2024/09/09 18:06:31 [INFO] Getting Mongo DB IP from name : cosmos-mongo-PGK (port 27017)
2024/09/09 18:06:31 [INFO] Mongo DB IP : 172.17.0.2
2024/09/09 18:06:31 [INFO] Successfully connected to the database.
2024/09/09 18:06:31 [INFO] Starting monitoring services...
2024/09/09 18:06:31 [INFO] Starting market services...
2024/09/09 18:06:31 [INFO] MarketInit: Added market cosmos-cloud
2024/09/09 18:06:31 [INFO] Starting OpenID services...
2024/09/09 18:06:31 [INFO] Using config file: /config/cosmos.config.json
2024/09/09 18:06:31 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:06:31 [INFO] Metrics: Agglomeration Initialized
2024/09/09 18:06:32 [INFO] OpenID server initialized
2024/09/09 18:06:32 [INFO] Starting constellation services...
2024/09/09 18:06:32 [INFO] Resetting CRON scheduler: SnapRAID
2024/09/09 18:06:32 [INFO] Initializing CRON...
2024/09/09 18:06:32 [INFO] Initializing custom jobs from config...
2024/09/09 18:06:32 [INFO] Resetting CRON scheduler: Custom
2024/09/09 18:06:32 [INFO] Initializing CRON jobs to scheduler...
2024/09/09 18:06:32 [INFO] Starting server...
2024/09/09 18:06:32 [INFO] Initialising HTTP(S) Router and all routes
2024/09/09 18:06:32 [INFO] CRON scheduler started with 0 jobs
2024/09/09 18:06:32 [INFO] Starting in /app
2024/09/09 18:06:32 [INFO] TLS certificate exist, starting HTTPS servers and redirecting HTTP to HTTPS
2024/09/09 18:06:32 [INFO] Listening to HTTP on :80
2024/09/09 18:06:32 [INFO] Listening to HTTPS on :443
2024/09/09 18:06:32 [INFO] Network: Initializing internal TCP proxy
2024/09/09 18:06:32 [INFO] Now listening to HTTPS on :443
2024/09/09 18:06:32 [INFO] Metrics: Agglomeration of metrics
2024/09/09 18:06:32 [INFO] Metrics: Agglomeration done. Saving to DB
2024/09/09 18:06:32 [INFO] Metrics: Agglomeration saved to DB
2024/09/09 18:07:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:07:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:08:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:08:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:09:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:09:31 [INFO] Checking for updates for arm64v8/mongo:4.4.18
2024/09/09 18:09:31 [INFO] {"status":"Pulling from arm64v8/mongo","id":"4.4.18"}
2024/09/09 18:09:31 [INFO] {"status":"Digest: sha256:a428218c5e7976962879dbeead9997d4d420db360ada18d1a8590e2311a1c640"}
2024/09/09 18:09:31 [INFO] No updates available for arm64v8/mongo:4.4.18
2024/09/09 18:09:31 [INFO] CheckUpdatesAvailable - Checking local image for change for arm64v8/mongo:4.4.18
2024/09/09 18:09:31 [INFO] CheckUpdatesAvailable - No local updates available for arm64v8/mongo:4.4.18
2024/09/09 18:09:31 [INFO] Checking for updates for azukaar/cosmos-server:latest
2024/09/09 18:09:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:09:32 [INFO] {"status":"Pulling from azukaar/cosmos-server","id":"latest"}
2024/09/09 18:09:32 [INFO] {"status":"Digest: sha256:db2b21c7f591f80f1913af6c8815acd710abb13dfda0415217264523949bc0d3"}
2024/09/09 18:09:32 [INFO] No updates available for azukaar/cosmos-server:latest
2024/09/09 18:09:32 [INFO] Using config file: /config/cosmos.config.json
2024/09/09 18:09:32 [INFO] CheckUpdatesAvailable - Checking local image for change for azukaar/cosmos-server:latest
2024/09/09 18:09:32 [INFO] CheckUpdatesAvailable - No local updates available for azukaar/cosmos-server:latest
2024/09/09 18:10:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:10:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:11:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:11:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:12:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:12:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:13:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:13:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:14:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:14:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:15:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:15:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:16:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:16:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:17:02 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:17:32 [INFO] Metrics - Monitoring the server at /mnt/host
2024/09/09 18:17:55 http: TLS handshake error from [2600:4040:7e00:5700:706b:c2de:778b:37d3]:53500: remote error: tls: bad certificate

Other details

No response

System details

azukaar commented 2 months ago

Seems like you just have a caching issue, try with another browser or in 5g. Does not seems to be a bug, feel free to use the Discord server for any help request