大家早上好!
大约一周前,我的 Discourse 安装可能更新了。我不完全确定,但我所知道的是,每当我访问该网站时,我都会收到 nginx 发布的 502 错误。
这是典型的 Docker 安装。
此后,我进入并运行了“./launcher rebuild app”,但似乎出错了。
然后我运行了“./discourse-setup”,它也出错了。
不过我不是专业人士,而且是 Discourse 的新手,所以如果需要,我可以在这里发布重建的结果。
经过大约一周的搜索和尝试修复,我可能将直接在 VPS 上进行全新的安装。话虽如此,但我不知道如何备份和恢复用户帐户和数据库。
任何建议都将是惊人的!
感谢您的时间!
抱歉延迟。
虽然重建日志似乎很长,但似乎问题出在以下位置:
Tasks: TOP => db:migrate => db:load_config => environment
(运行任务时带 --trace 查看完整跟踪)
I, [2024-01-29T18:40:10.599024 #1] INFO -- :
I, [2024-01-29T18:40:10.627958 #1] INFO -- : Terminating async processes
I, [2024-01-29T18:40:10.629723 #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/13/bin/postmaster -D /etc/postgresql/13/main pid: 42
2024-01-29 18:40:10.630 UTC [42] LOG: received fast shutdown request
2024-01-29 18:40:10.644 UTC [42] LOG: aborting any active transactions
2024-01-29 18:40:10.651 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
2024-01-29 18:40:10.654 UTC [46] LOG: shutting down
2024-01-29 18:40:10.811 UTC [42] LOG: database system is shut down
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 3290 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
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.
963d90233930c09a993e084bf1e858d7486ddb797bd5743e6073f4563db0777a
谢谢各位的建议。
我最终进行了全新安装,并从备份目录恢复了备份。一切都好! 
1 个赞