사이트 DNS가 전파되었는데 Discourse가 연결을 거부합니다?

Upcloud에서 Contabo VPS로 이전했습니다. Rsync를 사용하고 해당 단계를 따르며 앱을 재구축했으며 정상적으로 실행 중임을 확인했습니다.

관련 토픽은 여기 있습니다. 이 게시물이 사이트를 올바르게 재구축하도록 도와주었습니다.

Squarespace(구 Google Domains 인수)에서 DNS 레코드를 변경하고, A 레코드를 Contabo 서버를 가리키도록 변경했습니다.

IP 주소로는 어느 정도 접속이 가능하지만, 도메인 이름을 사용할 때

에 접속하면

이런 오류가 발생합니다.

DNS 전파를 확인하는 이 웹사이트 도구를 알게 되었습니다.

도메인 이름으로 연결을 수락받기 위해 Discourse 쪽에서 무언가를 해야 하나요?

태그 설치인지, 아니면 마이그레이션 도구의 문제인지 잘 모르겠습니다.

Squarespace가 SSL 인증서를 제공하며 Upcloud에서는 잘 작동했기 때문에 Let’s Encrypt는 사용하지 않고 있습니다.

./discourse-setup를 실행하면 도메인을 입력하도록 프롬프트를 표시한 후 해당 도메인에 연결을 시도할 것입니다.

성공하나요?

아니요, 이건 출력의 복사본입니다. 도메인에 연결은 성공했습니다.

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.

그럼에도 불구하고, 오류가 발생했다는 메시지가 표시되었음에도 app.yml 파일이 변경된 것으로 보입니다.

하지만 설정 과정에서 연결에 성공했다고 했음에도 불구하고, 여전히 연결 거부 오류가 발생합니다.

추가 메모


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

Kubernetes를 사용하지 않았습니다. Docker로 복사하여 설치하고 rsync를 사용했습니다.

ubuntu lts 24.04.1 정보가 도움이 될 것 같아서 첨부했습니다.

해결했습니다.

문제는 SSL 웹과 Let’s Encrypt가 사용되지 않고 있음에도 불구하고 템플릿 몇 개가 주석 처리되어 있었던 것이었습니다.

rsync 오류이거나 다른 문제였던 것 같습니다.

구 서버의 app.yml을 새 서버와 비교하여 항목을 수정했습니다. :woman_facepalming:

이제 모두 정상입니다. :sweat_smile: