Launcher 重建应用程序失败,显示 "containers/app.yml 不存在"

上传页面告诉我:

必须先运行最新映像,然后才能通过 Web UI 进行更新。为此,请使用 SSH 登录到您的服务器并运行:

cd /var/discourse
git pull
./launcher rebuild app

第一次运行时,它运行了一段时间然后以错误结束。如果我再试一次,我会得到:

./launcher rebuild app
x86_64 arch detected.
ERROR: containers/app.yml does not exist or is not readable.

Available configs ( data, mail-receiver, web_only )

文件不存在:

ls -al containers
total 28
drwxr-xr-x  3 root root 4096 Jan 15 18:12 .
drwxr-xr-x 12 root root 4096 Jun 19 17:34 ..
-rw-r--r--  1 root root    0 Jun 11  2023 .gitkeep
-rw-------  1 root root 1175 Jun 27  2023 data.yml
drwxr-xr-x  2 root root 4096 Jun 27  2023 delete
-rw-r--r--  1 root root 2306 Jan 15 18:12 mail-receiver.yml
-rw-------  1 root root 6304 Jan  2 20:39 web_only.yml

在 Digital Ocean 虚拟机中运行。

看起来您使用的是双容器设置,而不是通常的 app 单容器设置。

对于双容器设置,我认为您需要运行:

./launcher bootstrap web_only && ./launcher destroy web_only && ./launcher start web_only

不过,通常拥有双容器设置的人都会意识到这种区别。这是您安装后第一次更新吗?

3 个赞

我在 Web UI 中使用了自动更新,但之前从未收到有关 ./launcher rebuild app 的消息。

@pfaffman 进行了安装。

2 个赞

啊,是的。我认为他有一些额外的详细说明 - Managing a Two-Container Installation - Documentation - Literate Computing Support

2 个赞

看起来该命令有效,谢谢。

2 个赞

很高兴您解决了问题!

您也可以注册我的重建计划,通过 dashboard.literatecomputing.com 点击即可完成。您还可以加入免费试用组并免费使用仪表板,尽管没有我的支持(除非我在这里免费提供支持!)。

1 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.