Skip to content

Instantly share code, notes, and snippets.

@bootstraponline
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bootstraponline/64fb5bc5b81b85eb86b3 to your computer and use it in GitHub Desktop.
Save bootstraponline/64fb5bc5b81b85eb86b3 to your computer and use it in GitHub Desktop.
I, [2014-12-01T22:15:40.662155 #40]  INFO -- : > cd /var/www/discourse && git fetch origin tests-passed
From https://github.com/discourse/discourse
 * branch            tests-passed -> FETCH_HEAD
I, [2014-12-01T22:15:42.951650 #40]  INFO -- : 
I, [2014-12-01T22:15:42.952187 #40]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2014-12-01T22:15:43.068550 #40]  INFO -- : Branch tests-passed set up to track remote branch tests-passed from origin.

I, [2014-12-01T22:15:43.069096 #40]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2014-12-01T22:15:43.074274 #40]  INFO -- : 
I, [2014-12-01T22:15:43.074696 #40]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2014-12-01T22:15:43.078562 #40]  INFO -- : 
I, [2014-12-01T22:15:43.078966 #40]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2014-12-01T22:15:43.082944 #40]  INFO -- : 
I, [2014-12-01T22:15:43.083315 #40]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2014-12-01T22:15:43.087189 #40]  INFO -- : 
I, [2014-12-01T22:15:43.087532 #40]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr}.log"
I, [2014-12-01T22:15:43.094248 #40]  INFO -- : 
I, [2014-12-01T22:15:43.094647 #40]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr}.log /var/www/discourse/log"
I, [2014-12-01T22:15:43.100924 #40]  INFO -- : 
I, [2014-12-01T22:15:43.101163 #40]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2014-12-01T22:15:43.107981 #40]  INFO -- : 
I, [2014-12-01T22:15:43.108411 #40]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2014-12-01T22:15:43.114519 #40]  INFO -- : 
I, [2014-12-01T22:15:43.114768 #40]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups
I, [2014-12-01T22:15:43.299817 #40]  INFO -- : 
I, [2014-12-01T22:15:43.300743 #40]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2014-12-01T22:15:43.303215 #40]  INFO -- : > cd /var/www/discourse/plugins && mkdir -p plugins
I, [2014-12-01T22:15:43.308096 #40]  INFO -- : 
I, [2014-12-01T22:15:43.308626 #40]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2014-12-01T22:15:49.364158 #40]  INFO -- : 
I, [2014-12-01T22:15:49.365967 #40]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/werweisswas/discourse-plugin-tagger.git
Cloning into 'discourse-plugin-tagger'...
I, [2014-12-01T22:15:52.041915 #40]  INFO -- : 
I, [2014-12-01T22:15:52.044091 #40]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2014-12-01T22:15:52.048831 #40]  INFO -- : 
I, [2014-12-01T22:15:52.049348 #40]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2014-12-01T22:15:52.052273 #40]  INFO -- : 
I, [2014-12-01T22:15:52.052735 #40]  INFO -- : > mkdir -p /var/nginx/cache
I, [2014-12-01T22:15:52.055699 #40]  INFO -- : 
I, [2014-12-01T22:15:52.056387 #40]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2014-12-01T22:15:52.057681 #40]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2014-12-01T22:15:52.058659 #40]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2014-12-01T22:15:52.059645 #40]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2014-12-01T22:15:52.060737 #40]  INFO -- : > echo "done configuring web"
I, [2014-12-01T22:15:52.063350 #40]  INFO -- : done configuring web

I, [2014-12-01T22:15:52.064723 #40]  INFO -- : > cd /var/www/discourse && gem update bundler
I, [2014-12-01T22:16:07.187294 #40]  INFO -- : Updating installed gems
Updating bundler
Successfully installed bundler-1.7.7
Gems updated: bundler

I, [2014-12-01T22:16:07.188404 #40]  INFO -- : > cd /var/www/discourse && chown -R discourse /var/www/discourse
I, [2014-12-01T22:16:10.650332 #40]  INFO -- : 
I, [2014-12-01T22:16:10.653403 #40]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development'
I, [2014-12-01T22:17:35.656473 #40]  INFO -- : HTTP GET https://bundler.rubygems.org/api/v1/dependencies
HTTP 200 OK
Fetching source index from https://rubygems.org/
HTTP GET https://rubygems.org/quick/Marshal.4.8/actionmailer-4.1.8.gemspec.rz
HTTP 302 Moved Temporarily
HTTP GET https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/actionmailer-4.1.8.gemspec.rz
HTTP 200 OK
HTTP GET https://rubygems.org/quick/Marshal.4.8/actionpack-4.1.8.gemspec.rz
HTTP 302 Moved Temporarily
HTTP GET https://bb-m.rubygems.org/quick/Marshal.4.8/actionpack-4.1.8.gemspec.rz
SocketError: getaddrinfo: Name or service not known
/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `initialize'
/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `open'
/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
/usr/local/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
/usr/local/lib/ruby/2.0.0/net/http.rb:877:in `connect'
/usr/local/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
/usr/local/lib/ruby/2.0.0/net/http.rb:857:in `start'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/vendor/net/http/persistent.rb:700:in `start'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/vendor/net/http/persistent.rb:631:in `connection_for'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/vendor/net/http/persistent.rb:994:in `request'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/fetcher.rb:295:in `request'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/fetcher.rb:265:in `fetch'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/fetcher.rb:275:in `fetch'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/fetcher.rb:148:in `fetch_spec'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/remote_specification.rb:46:in `_remote_specification'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/remote_specification.rb:51:in `method_missing'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:148:in `tsort_each_child'
/usr/local/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/local/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:150:in `block (2 levels) in tsort_each_child'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:150:in `each'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:150:in `block in tsort_each_child'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:148:in `each'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:148:in `tsort_each_child'
/usr/local/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/local/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:144:in `block in tsort_each_node'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:144:in `each'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:144:in `tsort_each_node'
/usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
/usr/local/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
/usr/local/lib/ruby/2.0.0/tsort.rb:135:in `tsort'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:113:in `sorted'
/usr/local/lib/ruby/2.0.0/forwardable.rb:171:in `each'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/installer.rb:263:in `install_sequentially'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/installer.rb:90:in `run'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/installer.rb:18:in `install'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/cli/install.rb:79:in `run'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/cli.rb:145:in `install'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/vendor/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/vendor/thor.rb:363:in `dispatch'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/vendor/thor/base.rb:440:in `start'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/cli.rb:9:in `start'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/bin/bundle:20:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/bin/bundle:18:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Network error while fetching
https://bb-m.rubygems.org/quick/Marshal.4.8/actionpack-4.1.8.gemspec.rz

I, [2014-12-01T22:17:35.659760 #40]  INFO -- : Terminating async processes
I, [2014-12-01T22:17:35.659977 #40]  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: 67
2014-12-01 22:17:35 UTC LOG:  received fast shutdown request
2014-12-01 22:17:35 UTC LOG:  aborting any active transactions
2014-12-01 22:17:35 UTC LOG:  autovacuum launcher shutting down
2014-12-01 22:17:35 UTC LOG:  shutting down
I, [2014-12-01T22:17:35.666643 #40]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 180
[180 | signal handler] (1417472255) Received SIGTERM scheduling shutdown...
2014-12-01 22:17:35 UTC LOG:  database system is shut down
[180] 01 Dec 22:17:35.727 # User requested shutdown...
[180] 01 Dec 22:17:35.728 * Saving the final RDB snapshot before exiting.
[180] 01 Dec 22:17:36.551 * DB saved on disk
[180] 01 Dec 22:17:36.551 # Redis is now ready to exit, bye bye...


FAILED
--------------------
RuntimeError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development' failed with return #<Process::Status: pid 293 exit 17>
Location of failure: /pups/lib/pups/exec_command.rb:105: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'"]}
1cae25bfd6af25e4238ce572c4b7eba1dcc1b014225c80dbb298486aba408144
FAILED TO BOOTSTRAP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment