Failed bootstrap: rake aborted (wrong number of arguments)

When rebuilding my app, bootstrapping fails like this:

2017-12-19 09:36:33.578 UTC [48] 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 569 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108: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'"]}
40524c0dfb47d3a58c4b841f5dd20a252f4530659897e23ea6be2c702ff088b1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Further up, I find

Bundled gems are installed into `./vendor/bundle`

I, [2017-12-19T09:36:12.734165 #14]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
ArgumentError: wrong number of arguments (given 1, expected 2..3)

I uninstalled any suspicious plugins. Here is what I have left:

          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-data-explorer.git
          - git clone https://github.com/discourse/discourse-canned-replies.git
          - git clone https://github.com/discourse/discourse-translator.git
          - git clone https://github.com/discourse/discourse-admin-statistics-digest.git
          - git clone https://github.com/discourse/discourse-feature-voting.git
          - git clone https://github.com/discourse/discourse-staff-notes.git
          - git clone https://github.com/berlindiamonds/discourse-sync-base.git
          - git clone https://github.com/berlindiamonds/discourse-sync-to-dropbox.git
          - git clone https://github.com/discourse/discourse-assign.git
          - git clone https://github.com/discourse/discourse-bbcode.git

How can I troubleshoot this?

Okay, I gave it another try after uninstalling discourse-admin-statistics-digest and now it works. So there seems to be a bug in that plugin.

2 Likes

This topic was automatically closed after 2363 days. New replies are no longer allowed.