您好,
我正在自托管一个 Discourse(由承包商安装),今天通过自动更新升级到最新的测试版时,提示更新过程中出现错误,导致一切停止工作。网站已下线。
我该怎么做?
您好,
我正在自托管一个 Discourse(由承包商安装),今天通过自动更新升级到最新的测试版时,提示更新过程中出现错误,导致一切停止工作。网站已下线。
我该怎么做?
我试过了,但它不起作用
如果你有快照,就去做,然后等待修复。
感谢您的回复。我在哪里输入“./launcher rebuild app”?
SSH
cd ..
cd var/discourse
./launcher rebuild app
谢谢,但我收到类似这样的信息:
-------------------------------------------------------------------------------------\nUPGRADE OF POSTGRES FAILED\n\nPlease visit https://meta.discourse.org/t/postgresql-15-update/349515 for support.\n\nYou can run ./launcher start app to restart your app in the meanwhile\n-------------------------------------------------------------------------------------\n\n\n\nFAILED\n--------------------\nPups::ExecError: if [ -f /root/install_postgres ]; then\n /root/install_postgres \u0026\u0026 rm -f /root/install_postgres\nelif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then\n socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 \u0026\u0026 echo postgres already running stop container ; exit 1\nfi\n failed with return #\u003cProcess::Status: pid 18 exit 1\u003e\nLocation of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'\nexec failed with the params {\"tag\"=\u003e\"db\", \"cmd\"=\u003e\"if [ -f /root/install_postgres ]; then\\n /root/install_postgres \u0026\u0026 rm -f /root/install_postgres\\nelif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then\\n socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 \u0026\u0026 echo postgres already running stop container ; exit 1\\nfi\\n\"}\nbootstrap failed with exit code 1\n** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.\n./discourse-doctor may help diagnose the problem.\nc5b5958a65b830ae97f279c6df70e8b485b2d9d594af68767a953ff59e6ca286\n\n
正如我所说,使用 snap 来还原旧容器,并等待此问题被修复,我也尝试更新,但我的网络服务器由于某种原因无法启动。
感谢您的帮助。我没时间处理这件事了。将返回静态 Hugo 网站。再见 Discourse。
我建议您在提到的主题中发帖。
Discourse 只需要一点耐心,它就会起作用。
是的,请按照该主题中的调试步骤进行操作,并告知我们您是否还有其他信息 @eisammy @Markus_Moenig
我们没有等待发布的修复程序。因此,如果问题仍然存在,我们需要更多信息来提供帮助。
我不明白的是,为什么你们会投入大量精力来创建一个防傻瓜、易于使用的用户界面,以吸引像我这样的网络技术新手,然后在没有任何警告的情况下放入潜在的危险更新。
我今天花了 4 个小时试图让它工作,之后我愤怒地摧毁了我的 droplet。所以对我来说没有回头路了。
完全正确!我现在就这么做了,我的实例已更新并正常运行,谢谢。
另外,@Markus_Moenig,这个教程足以解决这个麻烦
很高兴听到它在工作 @eisammy
@Markus_Moenig 很抱歉事情没有如愿。我们会尽最大努力让这些更新尽可能无缝,但有时候确实会出错。我同意这可能令人沮丧。我们会尽最大努力在Meta上保持响应,但我理解这并不总是足够的。
我将关闭这个话题。但如果你或其他人有任何相关问题,请随时在#support中开启一个新的话题。