Site DNS is propagated but discourse refuses connection?

I migrated from upcloud to contabo VPS. I used Rsync and following the steps was able to rebuild and app confirmed running

Topic here. This post got the site to rebuild properly

I changed DNS records on Squarespace(who bought out Google domains) and changed DNS records A to point to the server in Contabo.

I can kind of connect using the IP address but when using the domain name

HTTPS://www.xrtropolis.one/

I get

I was introduced to this website tool that checks DBS propagation

Do I need to do something on the discourse side to get it to accept connection from the domain name?

Not sure on tag install or maybe migration tooling?

Not using let’s encrypt as Squarespace provides SSL cert and was working fine on Upcloud.

I think if you run ./discourse-setup, it should try to connect to the domain after it has prompted you to provide it.

Does it succeed?

1 Like

no this is copy of output. succeeds to connect to domain though.

discourse-setup
The configuration file containers/app.yml already exists!

. . . reconfiguring . . .


Saving old file as app.yml.2025-01-06-030236.bak
Stopping existing container in 5 seconds or Control-C to cancel.
x86_64 arch detected.
WARNING: containers/app.yml file is world-readable. You can secure this file by running: chmod o-rwx containers/app.yml
+ /usr/bin/docker stop -t 600 app
app

Found 25GB of memory and 8 physical CPU cores
setting db_shared_buffers = 4096MB
setting UNICORN_WORKERS = 8
containers/app.yml memory parameters updated.

Hostname for your Discourse? [www.xrtropolis.one]: 
Checking your domain name . . .
Connection to www.xrtropolis.one succeeded.
Email address for admin account(s)? [demontmorency_dan@hotmail.com]:
SMTP server address? [smtp-relay.brevo.com]:
SMTP port? [587]:
SMTP user name? [redacted]:
SMTP password? [redacted]:
notification email address? [noreply@xrtropolis.one]:
Optional email address for Let's Encrypt warnings? (ENTER to skip) [me@example.com]:
Optional MaxMind Account ID (ENTER to continue without MAXMIND GeoLite2 geolocation database) [123456]:

Does this look right?

Hostname          : www.xrtropolis.one
Email             : demontmorency_dan@hotmail.com
SMTP address      : smtp-relay.brevo.com
SMTP port         : 587
SMTP username     : redacted
SMTP password     : redacted
Notification email: noreply@xrtropolis.one
MaxMind account ID: (unset)
MaxMind license key: (unset)

ENTER to continue, 'n' to try again, Ctrl+C to exit:
web.ssl.template.yml NOT ENABLED--was it on already?
letsencrypt.ssl.template.yml NOT ENABLED -- was it on already?




Unfortunately, there was an error changing containers/app.yml

This may happen if you have made unexpected changes.

That being said the app.yml appears to have been changed even though it says error changing it.

However still get connection refused even though setup said it connected successfully.

additions notes


Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-51-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

 System information as of Mon Jan  6 04:03:52 CET 2025

  System load:           2.52
  Usage of /:            4.5% of 289.56GB
  Memory usage:          2%
  Swap usage:            0%
  Processes:             245
  Users logged in:       0
  IPv4 address for eth0: 154.53.35.16
  IPv6 address for eth0: 2605:a142:2238:3164::1

 * Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
   just raised the bar for easy, resilient and secure K8s cluster deployment.

   https://ubuntu.com/engage/secure-kubernetes-at-the-edge

Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status

not using kubernetes. copied and installed with Docker and used rsync.

figured maybe ubuntu lts 24.04.1 info might help.

Solved.

Issue was a couple of templates were commented out the SSL web and let’s encrypt even though not in use.

Either an error with rsync or something else.

Compared old server app.yml with new server and corrected entries. :woman_facepalming:

All good now. :sweat_smile:

3 Likes