我们最近尝试在我们的 discourse 实例上安装一个私有插件。重启 docker 后,服务无法恢复联机。多次尝试后,我们看到了这个:
root@discourse:/var/discourse# docker container logs d6aa2ac484b9
run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/01-cleanup-web-pids
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
run-parts: executing /etc/runit/1.d/letsencrypt
[Tue Feb 4 07:23:08 PM UTC 2025] Domains not changed.
[Tue Feb 4 07:23:08 PM UTC 2025] Skip, Next renewal time is: 2025-03-17T17:22:01Z
[Tue Feb 4 07:23:08 PM UTC 2025] Add '--force' to force to renew.
[Tue Feb 4 07:23:09 PM UTC 2025] Installing key to: /shared/ssl/forum.get.it.key
[Tue Feb 4 07:23:09 PM UTC 2025] Installing full chain to: /shared/ssl/forum.get.it.cer
[Tue Feb 4 07:23:09 PM UTC 2025] Run reload cmd: sv reload nginx
warning: nginx: unable to open supervise/ok: file does not exist
[Tue Feb 4 07:23:09 PM UTC 2025] Reload error for :
[Tue Feb 4 07:23:10 PM UTC 2025] Domains not changed.
[Tue Feb 4 07:23:10 PM UTC 2025] Skip, Next renewal time is: 2025-03-17T17:22:09Z
[Tue Feb 4 07:23:10 PM UTC 2025] Add '--force' to force to renew.
[Tue Feb 4 07:23:11 PM UTC 2025] Installing key to: /shared/ssl/forum.get.it_ecc.key
[Tue Feb 4 07:23:11 PM UTC 2025] Installing full chain to: /shared/ssl/forum.get.it_ecc.cer
[Tue Feb 4 07:23:11 PM UTC 2025] Run reload cmd: sv reload nginx
warning: nginx: unable to open supervise/ok: file does not exist
[Tue Feb 4 07:23:12 PM UTC 2025] Reload error for :
Started runsvdir, PID is 534
ok: run: redis: (pid 548) 0s
ok: run: postgres: (pid 544) 0s
nginx: [warn] duplicate extension "wasm", content type: "application/wasm", previous content type: "application/wasm" in /etc/nginx/conf.d/discourse.conf:4
supervisor pid: 547 unicorn pid: 574
…我们尝试让应用程序恢复联机的其他方法:
- 重新构建应用程序
- 使用
./launcher cleanup清理 Docker 缓存
如果有人遇到过这种情况或能指出正确的方向,我们将不胜感激。