# Bootstrap Error during Installation at Amazon EC2 (Ubuntu)

**URL:** https://meta.discourse.org/t/bootstrap-error-during-installation-at-amazon-ec2-ubuntu/82998
**Category:** Self-hosting
**Created:** [March 14, 2018, 6:34pm UTC](https://meta.discourse.org/t/bootstrap-error-during-installation-at-amazon-ec2-ubuntu/82998 "2018-03-14T18:34:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![abdo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abdo/32/92160_2.png) [@abdo](https://meta.discourse.org/u/abdo)
#### Post date: [March 14, 2018, 6:34pm UTC](https://meta.discourse.org/t/bootstrap-error-during-installation-at-amazon-ec2-ubuntu/82998/1 "2018-03-14T18:34:12Z")

</div>

Hello,

I’ve followed the instructions at: [http://stroupaloop.com/blog/discourse-setup-using-aws/](http://stroupaloop.com/blog/discourse-setup-using-aws/) - to setup a discourse instance via Amazon EC2. Everything seems to be working smoothly until, I arrive at: “sudo ./launcher bootstrap app” and receive the following error.

```
   FAILED
Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’ failed with return #<Process::Status: pid 13896 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’”]}
f5472ed8e1191c1208eb989e78ceedc9b968fb7db2c36a0a7d2f93e03bf6122e
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

Any idea what’s going wrong there and how to fix it?

Thanks

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [March 17, 2018, 3:20pm UTC](https://meta.discourse.org/t/bootstrap-error-during-installation-at-amazon-ec2-ubuntu/82998/4 "2018-03-17T15:20:24Z")

</div>

> [@abdo](#):
>
> ` **FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages`

You need to include the parts of the output where it errored, not just the failure message at the end.

---

<div class="post-metadata">

### Author: ![abdo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abdo/32/92160_2.png) [@abdo](https://meta.discourse.org/u/abdo)
#### Post date: [March 17, 2018, 8:59pm UTC](https://meta.discourse.org/t/bootstrap-error-during-installation-at-amazon-ec2-ubuntu/82998/5 "2018-03-17T20:59:05Z")

</div>

Thanks for your response Andrew. I managed to get it to work by removing the docker folder, creating a new one and using a locally hosted postgres database other than using Amazon RDS.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 17, 2018, 9:34pm UTC](https://meta.discourse.org/t/bootstrap-error-during-installation-at-amazon-ec2-ubuntu/82998/6 "2018-03-17T21:34:13Z")

</div>


