install-discourse 스크립트에서 SKIP_CONNECTION_TEST가 작동하지 않습니다

생각할 수 있는 거의 모든 방법을 시도해 보았지만 아무것도 작동하지 않아서, 이는 버그라고 추정할 수밖에 없습니다.

시도해 본 방법:

  • SKIP_CONNECTION_TEST=1 ./install-discourse
  • export SKIP_CONNECTION_TEST=1; ./install-discourse
  • 로컬 discourse-setup 복사본에서 해당 줄을 주석 처리

하지만 여전히 포트 443이 없다고 경고합니다(리버스 프록시를 사용 중이므로 문제가 되지 않습니다):

root@discourse:~/discourse_docker# ./install-discourse 

Discourse One-Line Installer

→ Docker is already installed
==> Setting up Discourse Docker
→ Existing installation found at /var/discourse
→ Updating repository...
HEAD is now at 2ad96ec DEV: Remove ruby 3.4 build step (#1042)
→ Repository ready at /var/discourse
==> Starting Discourse Setup Wizard

→ Checking for setup wizard image updates...
release: Pulling from discourse/setup-wizard
Digest: sha256:7ca57ab89b6659bea41f78ed667876ef8f00d80f4addfea9ec7907f1bf5ad544
Status: Image is up to date for discourse/setup-wizard:release
docker.io/discourse/setup-wizard:release
→ Starting Discourse Setup Wizard...


 ___  _
|   \(_)___ __ ___ _  _ _ _ ___ ___
| |) | (_-</ _/ _ \ || | '_(_-</ -_)
|___/|_/__/\__\___/\_,_|_| /__/\___|
                       Setup Wizard


→ This wizard will help you configure your Discourse installation.
→ Press Ctrl+C at any time to cancel.

── System Checks ──

[1/5] Verifying system requirements
✓ Running as root
✓ Docker is available
✓ Memory: 33GB, CPU: 112 cores

── Configuration ──

[2/5] Preparing configuration
✓ Ports 80 and 443 are free for use
→ Creating new configuration...
→ Creating new configuration from template...

── Site Settings ──

[3/5] Enter your site details

Email address for admin account(s)?
[redacted]@proton.me▌

Do you have a domain name for your Discourse?
▸ Yes      No

Hostname for your Discourse?
discourse.pyxfluff.dev▌

Configure SMTP for sending emails? (Requires SMTP credentials)
  Yes    ▸ No


── Review Configuration ──


╭────────────────────────────────────────────╮
│                                            │
│  Hostname       discourse.pyxfluff.dev     │
│  Admin Email    [redacted]@proton.me        │
│  SMTP           (not configured)           │
│  Let's Encrypt  Enabled                    │
│                                            │
╰────────────────────────────────────────────╯


Does this look right?
▸ Yes      No
→ Found 33GB of memory and 112 CPU cores
→ Setting db_shared_buffers = 4096MB
→ Setting UNICORN_WORKERS = 8

── Network Validation ──

[4/5] Verifying domain configuration
→ Checking your domain name...
⚠ Port 443 of this computer does not appear to be accessible using hostname: discourse.pyxfluff.dev

✓ A connection to port 80 succeeds!
This suggests that your DNS settings are correct,
but something is keeping traffic to port 443 from getting to your server.
Check your networking configuration to see that connections to port 443 are allowed.

The first thing to do is confirm that discourse.pyxfluff.dev resolves to the IP address of this server.
You usually do this at the same place you purchased the domain.

If you are sure that the IP address resolves correctly, it could be a firewall issue.
A web search for "open ports YOUR CLOUD SERVICE" might help.

This tool is designed only for the most standard installations. If you cannot resolve
the issue above, you will need to edit containers/app.yml yourself and then type:

    ./launcher rebuild app


✗ DNS verification failed for discourse.pyxfluff.dev
root@discourse:~/discourse_docker# 

환경 변수가 올바르게 설정되어 있는지 확인했습니다:

여기서 제가 더 할 수 있는 일은 많지 않은 것 같습니다. SMTP를 사용해야 하는 상황이 되고 싶지 않는데, 이 스크립트로 인해 당분간 막다른 골목에 빠진 상태라 안타깝습니다. 이 도구는 클라우드 호스팅, 그것도 클라우드 호스팅에만 최적화되어 있는 것처럼 보입니다(여러 서비스를 하나의 IP에서 사용하는 것이 큰 문제가 되지 않는 환경).

이전에 skip-connection-test를 사용해 본 적이 있지만, 이것은 다음과 같은 명령어 옵션으로 사용되는 것 같습니다.

./install-discourse --skip-connection-test

정확한 문법은 확실하지 않지만, 문서에서 찾기 쉽지 않았던 것 같습니다.

감사합니다. 이제 저에게는 잘 작동했습니다. 환경 변수가 작동하지 않은 것은 여전히 이상하거나 의도하지 않은 것 같고 잠재적인 문제라고 생각하지만, 그 부분은 스태프가 판단하도록 하겠습니다.

연결을 거부하는 이유가 궁금했는데, 스크립트가 사이트를 구성하려고 시도조차 하지 않은 것 같습니다.