# Failed bootstrap: rake aborted (wrong number of arguments)

**URL:** https://meta.discourse.org/t/failed-bootstrap-rake-aborted-wrong-number-of-arguments/76410
**Category:** Support
**Created:** [Décembre 19, 2017, 10:28 UTC](https://meta.discourse.org/t/failed-bootstrap-rake-aborted-wrong-number-of-arguments/76410 "2017-12-19T10:28:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [Décembre 19, 2017, 10:28 UTC](https://meta.discourse.org/t/failed-bootstrap-rake-aborted-wrong-number-of-arguments/76410/1 "2017-12-19T10:28:47Z")

</div>

When rebuilding my app, bootstrapping fails like this:

```plaintext
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

```plaintext
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:

```plaintext
          - 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?

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [Décembre 19, 2017, 10:37 UTC](https://meta.discourse.org/t/failed-bootstrap-rake-aborted-wrong-number-of-arguments/76410/2 "2017-12-19T10:37:38Z")

</div>

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](https://meta.discourse.org/t/admin-statistics-report/50943).

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [Juin 8, 2024, 12:43 UTC](https://meta.discourse.org/t/failed-bootstrap-rake-aborted-wrong-number-of-arguments/76410/3 "2024-06-08T12:43:44Z")

</div>

Ce sujet a été automatiquement fermé après 2363 jours. Les nouvelles réponses ne sont plus autorisées.
