Can't rebuild app 'bundle exec rake db:migrate' failed

Trying to throw but still faces the error:

    FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 520 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development --retry 3 --jobs 4'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
d7394631501352d1b02a5cef05b5fc5c3f7755636f9d89e2919648b22dfde6a8
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
==================== END REBUILD LOG ====================

thanks