FAILED -------------------- Pups::ExecError: cd /var/www/discourse & su discourse -c ‘bundle exec rake db:migrate’ failed with return <Process::Status: pid 1494 exit 1> 位置:/usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117: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. 77d614688bcd29bc5bb4ee1b28ed08423dea795d5f25b985e245390dd5707ad9
ERROR: duplicate key value violates unique constraint “index_badges_on_name” 2022-11-24 14:43:25.194 UTC [1522] discourse@discourse DETAIL: Key (name)=(First Reaction) already exists. 2022-11-24 14:43:25.194 UTC [1522] discourse@discourse STATEMENT: UPDATE badges SET name = ‘First Reaction’, description = NULL, long_description = NULL WHERE name = ‘Primera reacción’ rake aborted! StandardError: An error has occurred, this and all later migrations canceled: ERROR: duplicate key value violates unique constraint “index_badges_on_name” DETAIL: Key (name)=(First Reaction) already exists.
您好,从今天起,我在尝试克隆和构建时也遇到了一些问题。
它试图下载一个8月份的基础镜像,docker pull 给了我一个错误
“ERRO[0001] 目标元数据已过期”
否则我得到:
“Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update assets:precompile’ failed with return #<Process::Status: pid 1298 exit 1>”
“exec failed with the params {“cd”=>“$home”, “hook”=>“assets_precompile”, “cmd”=>[“su discourse -c ‘bundle exec rake themes:update assets:precompile’”]}”
“Sprockets::FileNotFound: couldn’t find file ‘/var/www/discourse/plugins/docker_manager/assets/javascripts/upgrade-header.js.handlebars’ with type ‘application/javascript’”