你好
我已经安装过很多次 Discourse 了。有时一天会安装几次。
这次我在 f.example.LTD 安装了 Discourse。
我使用了来自 Public Cloud: Cloud solutions and on-demand resources | OVHcloud Worldwide 的服务器。
DNS 使用 Cloudflare(仅 DNS,并且 ./discourse-setup 能找到我的 DISCOURSE_HOSTNAME)。
错误:
Discourse version at f.example.LTD: NOT FOUND
Discourse version at localhost: NOT FOUND
当我保留 IP 地址并重装 Ubuntu 系统以全新安装 Discourse 时,出现了这个错误。
./discourse-doctor
time ./discourse-doctor
DISCOURSE DOCTOR Tue Feb 6 06:08:06 UTC 2024
OS: Linux discourse–c3-4-de1 6.2.0-37-generic #38-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 30 21:04:52 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Found containers/app.yml
==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=f.example.LTD
SMTP_ADDRESS=smtp.eu.mailgun.org
DEVELOPER_EMAILS=i@example.LTD
SMTP_PASSWORD=***
SMTP_PORT=587
SMTP_USER_NAME=i@mg.example.LTD
LETSENCRYPT_ACCOUNT_EMAIL=ssl@example.LTD
==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 24.0.5, build 24.0.5-0ubuntu1~23.04.1
DOCKER PROCESSES (docker ps -a)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8f64a8154b21 local_discourse/app “/sbin/boot” 15 minutes ago Up 15 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp app
8f64a8154b21 local_discourse/app “/sbin/boot” 15 minutes ago Up 15 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp app
Discourse container app is running
==================== PLUGINS ====================
No non-official plugins detected.
See discourse/lib/plugin/metadata.rb at main · discourse/discourse · GitHub for the official list.
========================================
Discourse version at f.example.LTD: NOT FOUND
Discourse version at localhost: NOT FOUND
==================== MEMORY INFORMATION ====================
RAM (MB): 3996
total used free shared buff/cache available
Mem: 3811 1501 217 50 2453 2310
Swap: 0 0 0
==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 49G 11G 38G 22% /
==================== DISK INFORMATION ====================
Disk /dev/loop0: 73.9 MiB, 77492224 bytes, 151352 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 40.86 MiB, 42840064 bytes, 83672 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 152.06 MiB, 159444992 bytes, 311416 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop3: 74.11 MiB, 77713408 bytes, 151784 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E232CD77-D3F6-45AA-9A19-E6C002533B04
Device Start End Sectors Size Type
/dev/sda1 227328 104857566 104630239 49.9G Linux filesystem
/dev/sda14 2048 10239 8192 4M BIOS boot
/dev/sda15 10240 227327 217088 106M EFI System
Partition table entries are not in disk order.
==================== END DISK INFORMATION ====================
==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Or just send a test message to yourself.
Email address for mail test? (‘n’ to skip) [i@example.LTD]: Sending mail to i@example.LTD. . .
Testing sending to i@example.LTD using smtp.eu.mailgun.org:587, username:i@mg.example.LTD with plain auth.
SMTP server connection successful.
Sending to i@example.LTD. . .
Mail accepted by SMTP server.
Message-ID: a8ae3b5c-98d8-4bf1-8264-40b730bf4ec1@f.example.LTD
If you do not receive the message, check your SPAM folder
or test again using a service like http://www.mail-tester.com/.
If the message is not delivered it is not a problem with Discourse.
Check the SMTP server logs for the above Message ID to see why it
failed to deliver the message.
Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to
==================== DONE! ====================
Would you like to serve a publicly available version of this file? (Y/n) n
Publicly available log not generated.
You can examine the output of this script with
LESS=-Ri less /tmp/discourse-debug.txt
BUT FIRST, make sure that you know the first three commands below!!!
Commands to know when viewing the file with the above command (called ‘less’):
q – quit
/error – search for the word ‘error’
n – search for the next occurrence
g – go to the beginning of the file
f – go forward a page
b – go back a page
G – go to the end of the file
real 3m3.391s
user 0m0.251s
sys 0m0.179s
作为测试,我在同一台服务器和 IP 上安装了 Discourse,并指向了另一个子域名,结果成功了。
然后我执行了 更改域名 操作,又回到了错误状态。
Discourse version at f.example.LTD: NOT FOUND
现在我的网站 f.example.LTD 无法访问了,我不知道如何调试。
非常感谢!
Ali