Cannot rebuild app after migrate

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 3000 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}

What can I do now ? ;/

discourse-doctor dont return anything bad

Well, you’ll need to go back in the logs, but my guess is a corrupt database index. Search for the word '“unique” maybe.

1 Like

but what is the reason ?

It’s hard to tell the reason without knowing whether it’s the problem, but either a bug in postgres or an unclean shutdown. It’s not supposed to happen.

1 Like