GUI 更新失败。因此,我通过执行以下操作进行了命令行更新:
cd /var/discourse
./launcher rebuild app
当尝试从浏览器连接到网站时,我收到“此网站无法访问”错误。考虑到容器可能尚未启动,我尝试了:
./launcher start app
我收到一条消息,指出容器已启动。为了确保万无一失,我执行了以下操作:
./launcher restart app
问题仍然存在。网站仍然无法从浏览器访问。我对 Docker 或 Discourse 不是很熟悉。因此,甚至不确定从哪里开始调试。
这是我执行 ./launcher logs app 时得到的结果:
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
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
Started runsvdir, PID is 28
ok: run: redis: (pid 40) 0s
ok: run: postgres: (pid 36) 0s
supervisor pid: 38 unicorn pid: 67
Shutting Down
run-parts: executing /etc/runit/3.d/01-nginx
ok: down: nginx: 0s, normally up
run-parts: executing /etc/runit/3.d/02-unicorn
(38) exiting
ok: down: unicorn: 0s, normally up
run-parts: executing /etc/runit/3.d/10-redis
ok: down: redis: 1s, normally up
run-parts: executing /etc/runit/3.d/99-postgres
ok: down: postgres: 0s, normally up
ok: down: cron: 1s, normally up
ok: down: nginx: 8s, normally up
ok: down: postgres: 1s, normally up
ok: down: redis: 8s, normally up
ok: down: rsyslog: 0s, normally up
ok: down: unicorn: 8s, normally up
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
Started runsvdir, PID is 28
ok: run: redis: (pid 43) 1s
ok: run: postgres: (pid 37) 1s
supervisor pid: 35 unicorn pid: 67
如果有人能帮助我让网站重新上线,我将不胜感激。