# FAILED TO BOOTSTRAP : 'Pups::ExecError'

**URL:** https://meta.discourse.org/t/failed-to-bootstrap-pups-execerror/47980
**Category:** Self-hosting
**Created:** [July 29, 2016, 5:50pm UTC](https://meta.discourse.org/t/failed-to-bootstrap-pups-execerror/47980 "2016-07-29T17:50:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![CamilleRoux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/camilleroux/32/119575_2.png) [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)
#### Post date: [July 29, 2016, 5:50pm UTC](https://meta.discourse.org/t/failed-to-bootstrap-pups-execerror/47980/1 "2016-07-29T17:50:20Z")

</div>

Hi!

Here is the error I get when I try to rebuild my app (Git revision: beta):

```
Compressing: application-db30cb7af624e44f554adaa4f48e592c263b25627dac6aaded087b41331c3a55.js
uglifyjs '/var/www/discourse/public/assets/_application-db30cb7af624e44f554adaa4f48e592c263b25627dac6aaded087b41331c3a55.js' -p relative -c -m -o '/var/www/discourse/public/assets/application-db30cb7af624e44f554adaa4f48e592c263b25627dac6aaded087b41331c3a55.js' --source-map-root '/assets' --source-map '/var/www/discourse/public/assets/application-db30cb7af624e44f554adaa4f48e592c263b25627dac6aaded087b41331c3a55.js.map' --source-map-url '/assets/application-db30cb7af624e44f554adaa4f48e592c263b25627dac6aaded087b41331c3a55.js.map'
Parse error at _application-db30cb7af624e44f554adaa4f48e592c263b25627dac6aaded087b41331c3a55.js:99232,22
Unexpected token name «of», expected punc «;»
Error
    at new JS_Parse_Error (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1526:18)
    at js_error (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1534:11)
    at croak (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2026:9)
    at token_error (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2034:9)
    at expect_token (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2047:9)
    at expect (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2050:36)
    at regular_for (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2280:9)
    at for_ (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2276:16)
    at eval (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2158:24)
    at eval (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2073:24)
    at block_ (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2353:20)
I, [2016-07-29T17:37:24.968689 #13] INFO -- : Purging temp files
Bundling assets
Compressing Javascript and Generating Source Maps

I, [2016-07-29T17:37:24.998638 #13] INFO -- : Terminating async processes
I, [2016-07-29T17:37:25.000414 #13] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main pid: 1471
I, [2016-07-29T17:37:25.003670 #13] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 1584
1584:signal-handler (1469813845) Received SIGTERM scheduling shutdown...
2016-07-29 17:37:25 UTC [1471-2] LOG: received fast shutdown request
2016-07-29 17:37:25 UTC [1471-3] LOG: aborting any active transactions
2016-07-29 17:37:25 UTC [1478-2] LOG: autovacuum launcher shutting down
1584:M 29 Jul 17:37:25.013 # User requested shutdown...
1584:M 29 Jul 17:37:25.015 * Saving the final RDB snapshot before exiting.
2016-07-29 17:37:25 UTC [1475-1] LOG: shutting down
2016-07-29 17:37:25 UTC [1475-2] LOG: database system is shut down
1584:M 29 Jul 17:37:31.212 * DB saved on disk
1584:M 29 Jul 17:37:31.216 # Redis is now ready to exit, bye bye...

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

```

Here are the plugins I’m using:

```
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-akismet.git
- git clone https://github.com/discourse/discourse-affiliate.git

```

---

<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: [July 29, 2016, 6:00pm UTC](https://meta.discourse.org/t/failed-to-bootstrap-pups-execerror/47980/2 "2016-07-29T18:00:49Z")

</div>


