重建论坛时的 LetsEncrypt 错误

请看这个错误:

I, [2025-04-14T12:47:09.997719 #1]  INFO -- : > if [ -z "$LETSENCRYPT_ACCOUNT_EMAIL" ]; then echo "LETSENCRYPT_ACCOUNT_EMAIL ENV variable is required and has not been set."; exit 1; fi
I, [2025-04-14T12:47:10.004236 #1]  INFO -- : LETSENCRYPT_ACCOUNT_EMAIL ENV variable is required and has not been set.

I, [2025-04-14T12:47:10.232706 #1]  INFO -- : Terminating async processes
I, [2025-04-14T12:47:10.237265 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/15/bin/postmaster -D /etc/postgresql/15/main pid: 43
2025-04-14 12:47:10.238 UTC [43] LOG:  received fast shutdown request
I, [2025-04-14T12:47:10.239346 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 110
110:signal-handler (1744634830) Received SIGTERM scheduling shutdown...
2025-04-14 12:47:10.246 UTC [43] LOG:  aborting any active transactions
110:M 14 Apr 2025 12:47:10.469 # User requested shutdown...
110:M 14 Apr 2025 12:47:10.470 * Saving the final RDB snapshot before exiting.
2025-04-14 12:47:10.477 UTC [43] LOG:  background worker "logical replication launcher" (PID 57) exited with exit code 1
2025-04-14 12:47:10.491 UTC [52] LOG:  shutting down
2025-04-14 12:47:10.495 UTC [52] LOG:  checkpoint starting: shutdown immediate
2025-04-14 12:47:11.995 UTC [52] LOG:  checkpoint complete: wrote 220 buffers (1.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.475 s, sync=0.006 s, total=1.502 s; sync files=11, longest=0.004 s, average=0.001 s; distance=1706 kB, estimate=1706 kB
2025-04-14 12:47:12.475 UTC [43] LOG:  database system is shut down
110:M 14 Apr 2025 12:47:12.492 * DB saved on disk
110:M 14 Apr 2025 12:47:12.493 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: if [ -z "$LETSENCRYPT_ACCOUNT_EMAIL" ]; then echo "LETSENCRYPT_ACCOUNT_EMAIL ENV variable is required and has not been set."; exit 1; fi failed with return #<Process::Status: pid 2923 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cmd"=>["if [ -z \"$LETSENCRYPT_ACCOUNT_EMAIL\" ]; then echo \"LETSENCRYPT_ACCOUNT_EMAIL ENV variable is required and has not been set.\"; exit 1; fi", "/bin/bash -c \"if [[ ! \\\"$LETSENCRYPT_ACCOUNT_EMAIL\\\" =~ ([^@]+)@([^\\\\.]+) ]]; then echo \\\"LETSENCRYPT_ACCOUNT_EMAIL is not a valid email address\\\"; exit 1; fi\""]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
9a7cc1d7e6fbf0611632c1a8ffd0355718fd76510460435570375f22f1566651

可惜的是,我无法滚动到这里以上的内容,因为我似乎无法在终端中滚动(以前是可以的)。

我的 app.yml

正如你所见,我的 LetsEncrypt 账户电子邮件被注释掉了,因为我没有使用它(我认为我的域名提供商已经在他们的域名上设置了域保护以及 https),那么为什么我会遇到这个问题?

这是新的设置还是您遇到问题的现有设置?

如果您不需要 SSL,则需要从您的 app.yml 模板(应位于顶部)中禁用自动 SSL 预配。您可以像这样注释掉这些行

#  - "templates/web.ssl.template.yml"
#  - "templates/web.letsencrypt.ssl.template.yml"

这是一个现有的设置。

我会尝试一下,然后回复您。

谢谢!

您好 @nat,我现在遇到这个错误:

抱歉提供图片。我无法滚动我的终端,所以截图是最好的办法。

你可以尝试 echo "set -g mouse on"  >> ~/.tmux.conf。但有多种滚动和复制粘贴的方法,所以Google是你的好帮手。甚至 man tmux 也可能提供一些信息——我从未尝试过,必须这么说。

1 个赞

我没有看到错误。倒数倒数第二行看起来像是容器的ID,通常在容器成功启动时返回。

嗯……奇怪。这个网站甚至都加载不出来。