无法 ./launcher rebuild app

大家好,我遇到了以下错误,有什么办法可以解决吗?

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 571 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.3.0/lib/pups/exec_command.rb:131:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"migrate", "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.
45b3d2e2831f4e090fba5da5f4e3bcfb5cabdb6b8f694b7765676ac9b5b0f6d2
root@forum:/var/discourse#

正如它所说:

我建议您从日志文件的末尾发布几百行。

1 个赞

free -h 返回什么?

1 个赞

它显示这个:

root@forum:/var/discourse# free -h
              total        used        free      shared  buff/cache   available
Mem:          7.8Gi       1.7Gi       2.8Gi       1.0Gi       3.2Gi       4.8Gi
Swap:            0B          0B          0B
root@forum:/var/discourse#
1 个赞

和当时一样,不过我现在有 2GB 的交换空间以防万一。

1 个赞

你好,正如 @Ed_S 所提到的,你能发送日志文件的最后一部分吗?错误可能在那里。