Discourse failed after attempted update


(Joe Z) #1

Let me start that I’m not very familiar with Ruby, dockers, or debugging discourse.

Discourse was running fine until I attempted the latest update. It errored half way through, and the subsequent page told me to run the command in shell: “git pull” and “./launcher rebuild app”

At this point it failed during the launch and the site died. It won’t start the container now.

I’m getting the “which: no docker.io” error, but believe that this has always been there and it ran before.

I received “best effort” attempt from my hosting company and what they said the issue is that I have ruby 2.0.0p647 installed, but need the libraries from 2.1+

I can’t figure out how to update this, and when I try to enter the container I’m stopped by the “which:no docker” issue.

Please advise…I appreciate it!


(Felix Freiberger) #2

Can you post the full output of ./launcher rebuild app?


(Joe Z) #3
Using ember-data-source 1.0.0.beta.16.1
0:  ember-data-source (1.0.0.beta.16.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/ember-data-source-1.0.0.beta.16.1.gemspe                                                                                             c
Installing sprockets 3.6.0
0:  sprockets (3.6.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/sprockets-3.6.0.gemspec
Using unf 0.1.4
0:  unf (0.1.4) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/unf-0.1.4.gemspec
Using thin 1.6.4
0:  thin (1.6.4) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/thin-1.6.4.gemspec
Installing faraday 0.9.2
0:  faraday (0.9.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/faraday-0.9.2.gemspec
Installing rb-inotify 0.9.7
0:  rb-inotify (0.9.7) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rb-inotify-0.9.7.gemspec
Installing given_core 3.7.1
0:  given_core (3.7.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/given_core-3.7.1.gemspec
Installing omniauth 1.3.1
0:  omniauth (1.3.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/omniauth-1.3.1.gemspec
Using image_optim 0.20.2
0:  image_optim (0.20.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/image_optim-0.20.2.gemspec
Installing mini_racer 0.1.3 with native extensions
Building native extensions.  This could take a while...
0:  mini_racer (0.1.3) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/mini_racer-0.1.3.gemspec
Using mocha 1.1.0
0:  mocha (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/mocha-1.1.0.gemspec
Using rack-openid 1.3.1
0:  rack-openid (1.3.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rack-openid-1.3.1.gemspec
Using openid-redis-store 0.0.2
0:  openid-redis-store (0.0.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/openid-redis-store-0.0.2.gemspec
Using redis-namespace 1.5.2
0:  redis-namespace (1.5.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/redis-namespace-1.5.2.gemspec
Installing sidekiq 4.1.2
0:  sidekiq (4.1.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/sidekiq-4.1.2.gemspec
Installing pry 0.10.3
0:  pry (0.10.3) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/pry-0.10.3.gemspec
Installing unicorn 5.1.0 with native extensions
Building native extensions.  This could take a while...
0:  unicorn (5.1.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/unicorn-5.1.0.gemspec
Installing rbtrace 0.4.8 with native extensions
Building native extensions.  This could take a while...
0:  rbtrace (0.4.8) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rbtrace-0.4.8.gemspec
Installing rspec-core 3.4.4
0:  rspec-core (3.4.4) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rspec-core-3.4.4.gemspec
Installing rspec-expectations 3.4.0
0:  rspec-expectations (3.4.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rspec-expectations-3.4.0.gemspec
Installing rspec-mocks 3.4.1
0:  rspec-mocks (3.4.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rspec-mocks-3.4.1.gemspec
Installing simplecov 0.11.1
0:  simplecov (0.11.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/simplecov-0.11.1.gemspec
Using fast_xor 1.1.3
0:  fast_xor (1.1.3) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/fast_xor-1.1.3.gemspec
Installing activesupport 4.2.6
0:  activesupport (4.2.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/activesupport-4.2.6.gemspec
Using loofah 2.0.3
0:  loofah (2.0.3) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/loofah-2.0.3.gemspec
Installing nokogumbo 1.4.7 with native extensions
Building native extensions.  This could take a while...
0:  nokogumbo (1.4.7) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/nokogumbo-1.4.7.gemspec
Installing onebox 1.5.42
0:  onebox (1.5.42) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/onebox-1.5.42.gemspec
Using ruby-readability 0.7.0
0:  ruby-readability (0.7.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/ruby-readability-0.7.0.gemspec
Using sinatra 1.4.6
0:  sinatra (1.4.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/sinatra-1.4.6.gemspec
Installing aws-sdk-core 2.3.7
0:  aws-sdk-core (2.3.7) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/aws-sdk-core-2.3.7.gemspec
Installing ember-handlebars-template 0.7.3
0:  ember-handlebars-template (0.7.3) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/ember-handlebars-template-0.7.3.gemspec
Installing domain_name 0.5.25
0:  domain_name (0.5.25) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/domain_name-0.5.25.gemspec
Using oauth2 1.0.0
0:  oauth2 (1.0.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/oauth2-1.0.0.gemspec
Using omniauth-oauth 1.1.0
0:  omniauth-oauth (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/omniauth-oauth-1.1.0.gemspec
Using omniauth-openid 1.0.1
0:  omniauth-openid (1.0.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/omniauth-openid-1.0.1.gemspec
Installing sidekiq-statistic 1.2.0
0:  sidekiq-statistic (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/sidekiq-statistic-1.2.0.gemspec
Using pry-nav 0.2.4
0:  pry-nav (0.2.4) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/pry-nav-0.2.4.gemspec
Using pry-rails 0.3.4
0:  pry-rails (0.3.4) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/pry-rails-0.3.4.gemspec
Installing rspec 3.4.0
0:  rspec (3.4.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rspec-3.4.0.gemspec
Using rails-deprecated_sanitizer 1.0.3
0:  rails-deprecated_sanitizer (1.0.3) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rails-deprecated_sanitizer-1.0.3.gemspec
Using globalid 0.3.6
0:  globalid (0.3.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/globalid-0.3.6.gemspec
Installing activemodel 4.2.6
0:  activemodel (4.2.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/activemodel-4.2.6.gemspec
Installing bullet 5.0.0
0:  bullet (5.0.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/bullet-5.0.0.gemspec
Installing shoulda-matchers 2.8.0
0:  shoulda-matchers (2.8.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/shoulda-matchers-2.8.0.gemspec
Installing rails-html-sanitizer 1.0.3
0:  rails-html-sanitizer (1.0.3) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rails-html-sanitizer-1.0.3.gemspec
Installing sanitize 4.0.1
0:  sanitize (4.0.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/sanitize-4.0.1.gemspec
Installing aws-sdk-resources 2.3.7
0:  aws-sdk-resources (2.3.7) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/aws-sdk-resources-2.3.7.gemspec
Installing http-cookie 1.0.2
0:  http-cookie (1.0.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/http-cookie-1.0.2.gemspec
Using omniauth-oauth2 1.3.1
0:  omniauth-oauth2 (1.3.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/omniauth-oauth2-1.3.1.gemspec
Using omniauth-twitter 1.2.1
0:  omniauth-twitter (1.2.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/omniauth-twitter-1.2.1.gemspec
Installing rspec-given 3.7.1
0:  rspec-given (3.7.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rspec-given-3.7.1.gemspec
Using rspec-html-matchers 0.7.0
0:  rspec-html-matchers (0.7.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rspec-html-matchers-0.7.0.gemspec
Using rails-dom-testing 1.0.7
0:  rails-dom-testing (1.0.7) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rails-dom-testing-1.0.7.gemspec
Installing activejob 4.2.6
0:  activejob (4.2.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/activejob-4.2.6.gemspec
Using active_model_serializers 0.8.3
0:  active_model_serializers (0.8.3) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/active_model_serializers-0.8.3.gemspec
Installing activerecord 4.2.6
0:  activerecord (4.2.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/activerecord-4.2.6.gemspec
Using rails-observers 0.1.2
0:  rails-observers (0.1.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rails-observers-0.1.2.gemspec
Using shoulda 3.5.0
0:  shoulda (3.5.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/shoulda-3.5.0.gemspec
Installing aws-sdk 2.3.7
0:  aws-sdk (2.3.7) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/aws-sdk-2.3.7.gemspec
Installing rest-client 1.8.0
0:  rest-client (1.8.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rest-client-1.8.0.gemspec
Installing omniauth-facebook 3.0.0
0:  omniauth-facebook (3.0.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/omniauth-facebook-3.0.0.gemspec
Using omniauth-github-discourse 1.1.2
0:  omniauth-github-discourse (1.1.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/omniauth-github-discourse-1.1.2.gemspec
Installing omniauth-google-oauth2 0.3.1
0:  omniauth-google-oauth2 (0.3.1) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/omniauth-google-oauth2-0.3.1.gemspec
Installing omniauth-instagram 1.0.2
0:  omniauth-instagram (1.0.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/omniauth-instagram-1.0.2.gemspec
Installing actionview 4.2.6
0:  actionview (4.2.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/actionview-4.2.6.gemspec
Using seed-fu 2.3.5
0:  seed-fu (2.3.5) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/seed-fu-2.3.5.gemspec
Installing actionpack 4.2.6
0:  actionpack (4.2.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/actionpack-4.2.6.gemspec
Installing actionmailer 4.2.6
0:  actionmailer (4.2.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/actionmailer-4.2.6.gemspec
Installing railties 4.2.6
0:  railties (4.2.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/railties-4.2.6.gemspec
Installing sprockets-rails 3.0.4
0:  sprockets-rails (3.0.4) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/sprockets-rails-3.0.4.gemspec
Installing discourse-qunit-rails 0.0.9
0:  discourse-qunit-rails (0.0.9) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/discourse-qunit-rails-0.0.9.gemspec
Installing jquery-rails 4.0.5
0:  jquery-rails (4.0.5) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/jquery-rails-4.0.5.gemspec
Installing rspec-rails 3.4.2
0:  rspec-rails (3.4.2) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rspec-rails-3.4.2.gemspec
Installing rails 4.2.6
0:  rails (4.2.6) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/rails-4.2.6.gemspec
Installing sass-rails 5.0.4
0:  sass-rails (5.0.4) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/sass-rails-5.0.4.gemspec
Installing ember-rails 0.18.5
0:  ember-rails (0.18.5) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/ember-rails-0.18.5.gemspec
Using spork-rails 4.0.0
0:  spork-rails (4.0.0) from /var/www/discourse/vendor/bundle/ruby/2.0.0/specifications/spork-rails-4.0.0.gemspec
Bundle complete! 99 Gemfile dependencies, 180 gems now installed.
Gems in the group development were not installed.
Bundled gems are installed into ./vendor/bundle.

I, [2016-06-30T03:27:31.911523 #43]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
LoadError: cannot load such file -- memory_profiler
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/www/discourse/config/initializers/006-mini_profiler.rb:5:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `block in load'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:652:in `block in load_config_initializer'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:651:in `load_config_initializer'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `block in <class:Engine>'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `tsort_each_child'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:194:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:194:in `method_missing'
/var/www/discourse/config/environment.rb:5:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/application.rb:328:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/application.rb:457:in `block in run_tasks_blocks'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
I, [2016-06-30T03:27:36.099118 #43]  INFO -- :
I, [2016-06-30T03:27:36.099565 #43]  INFO -- : Terminating async processes
I, [2016-06-30T03:27:36.099618 #43]  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: 72
I, [2016-06-30T03:27:36.099683 #43]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 200
200:signal-handler (1467257256) Received SIGTERM scheduling shutdown...
2016-06-30 03:27:36 UTC [72-2] LOG:  received fast shutdown request
2016-06-30 03:27:36 UTC [72-3] LOG:  aborting any active transactions
2016-06-30 03:27:36 UTC [79-2] LOG:  autovacuum launcher shutting down
2016-06-30 03:27:36 UTC [76-1] LOG:  shutting down
200:M 30 Jun 03:27:36.174 # User requested shutdown...
200:M 30 Jun 03:27:36.174 * Saving the final RDB snapshot before exiting.
200:M 30 Jun 03:27:36.229 * DB saved on disk
200:M 30 Jun 03:27:36.229 # Redis is now ready to exit, bye bye...
2016-06-30 03:27:36 UTC [76-2] 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 16653 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 tes                                                                                             t --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
e23bbbbd5f8b21a2f7977796b12db19a19becd20e7bcd6bd51843628ed1dfc6a
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

(Joe Z) #4

This is as much as I could copy.

The tech said the relevant portion was here:

I, [2016-06-30T04:08:46.449885 #6036]  INFO -- : Refreshing Gem list /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- memory_profiler (LoadError)
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /var/www/discourse/config/initializers/006-mini_profiler.rb:5:in `<top (required)>'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `block in load'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:651:in `load_config_initializer'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `each'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `each'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `tsort_each_child'
from /usr/local/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:194:in `public_send'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:194:in `method_missing'
from /var/www/discourse/config/environment.rb:5:in `<top (required)>'
from config.ru:3:in `require'
from config.ru:3:in `block in <main>'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from config.ru:1:in `new'
from config.ru:1:in `<main>'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-5.1.0/lib/unicorn.rb:56:in `eval'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-5.1.0/lib/unicorn.rb:56:in `block in builder'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:752:in `call'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:752:in `build_app!'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:129:in `start'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-5.1.0/bin/unicorn:126:in `<top (required)>'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `load'
from /var/www/discourse/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `<main>'

(Felix Freiberger) #5

Hm, I have no idea why you are running Ruby 2.0…

Possibly related:

Did you configure anything fancy in your app.yml, like a base image version?


(Joe Z) #6

Looks like only in terms of which ports are exposed.


(Joe Z) #7
  GNU nano 2.0.9                                                                   File: app.yml                                                                                                                                   Modified

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ##
  ## On 1GB installs set to 128MB (to leave room for other processes)
  ## on a 4GB instance you may raise to 1GB
  #db_shared_buffers: "256MB"
  #
  ## Set higher on large instances it defaults to 10MB, for a 3GB install 40MB is a good default
  ## this improves sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"
  #
  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

env:
  LANG: en_US.UTF-8
  # DISCOURSE_DEFAULT_LOCALE: en

  ## TODO: How many concurrent web requests are supported?
  ## With 2GB we recommend 3-4 workers, with 1GB only 2
  #UNICORN_WORKERS: 3

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'admin@pwcextreme.com,kkennedy@liquidweb.com'

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: 'pwcextreme.com'

  ## TODO: The mailserver this Discourse instance will use
  DISCOURSE_SMTP_ADDRESS: host2.zorsus.com         # (mandatory)
  DISCOURSE_SMTP_PORT: 25                        # (optional)

##
## After making changes to this file, you MUST rebuild for any changes
## to take effect in your live Discourse instance:
##
## /var/discourse/launcher rebuild app
##
## Make sure to obey YAML syntax! You can use this site to help check:
## http://www.yamllint.com/

## this is the all-in-one, standalone Discourse Docker container template

# You may add rate limiting by uncommenting the web.ratelimited template.
# Out of the box it allows 12 reqs a second per ip, and 100 per minute per ip
# This is configurable by amending the params in this file

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/sshd.template.yml"
  - "templates/web.ratelimited.template.yml"

## which TCP/IP ports should this container expose?
expose:
  - "3000:80"   # fwd host port 3000   to container port 80 (http)
  - "2222:22" # fwd host port 2222 to container port 22 (ssh)

# any extra arguments for Docker?
# docker_args:

params:
  db_default_text_search_config: "pg_catalog.english"

(Rafael dos Santos Silva) #8

Please remove your password from the post above!


(Joe Z) #9

Thanks man, I changed it on my edit but then my edit did not go through and I forgot. Thank you very much!


(Felix Freiberger) #10

Note that your password is still in the edit history – you should change that password now.

(I cannot help you with your main problem, I’m out of ideas.)


(Alan Tan) #11

Hmm I think this somehow breaks if you didn’t update to the latest discourse base image. Anyway, memory_profiler failing to load shouldn’t break the site.


(Alan Tan) #12

Can you ssh into your server and run the following commands?

cd /var/discourse
git pull origin master
./launcher rebuild app

(Joe Z) #13

Just ran the commands you suggested. I originally broke it with a git pull update and rebuild so ws hoping this would do it but doesn’t look like it worked.

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

(Joe Z) #14

Just wanted to note that this all started when I did the original git pull and tried to rebuild. There isn’t a way to revert, is there?


(Felix Freiberger) #15

I’m really starting to guess here…

Could you post an output of sudo docker images?


(Joe Z) #16
REPOSITORY             TAG                 IMAGE ID            CREATED                                                                                                                                                                          VIRTUAL SIZE
centos                 latest              2a332da70fd1        4 weeks ago                                                                                                                                                                      196.7 MB
local_discourse/app    latest              bf786a34110c        6 months ago                                                                                                                                                                     1.502 GB
<none>                 <none>              7023e1611475        6 months ago                                                                                                                                                                     1.502 GB
<none>                 <none>              a0bdb4db6c42        6 months ago                                                                                                                                                                     1.502 GB
<none>                 <none>              18fec621e586        6 months ago                                                                                                                                                                     1.502 GB
<none>                 <none>              ecebd66c5c56        6 months ago                                                                                                                                                                     1.502 GB
<none>                 <none>              746555b6653b        6 months ago                                                                                                                                                                     1.61 GB
discourse/discourse    1.0.15              0706480e0511        7 months ago                                                                                                                                                                     1.265 GB
<none>                 <none>              7e20e5e1f745        10 months ago                                                                                                                                                                    1.449 GB
<none>                 <none>              49ae5738d38c        10 months ago                                                                                                                                                                    1.449 GB
<none>                 <none>              11f76ad548c5        10 months ago                                                                                                                                                                    1.448 GB
samsaffron/discourse   1.0.12              2285ff53ab18        13 months ago                                                                                                                                                                    1.217 GB

(Felix Freiberger) #17

Okay, your docker image is too old. Can your server reach Docker Hub?


Can you post a full output of a rebuild? You first try is cut off, and I’m hoping to see a clue in the beginning of the log.


(Joe Z) #18

like ./launcher enter app?


(Joe Z) #19

doing a rebuild right now and will post it once done. I gotta figure out how to get the entire thing.


(Felix Freiberger) #20

Here’s a more complete response:

Your docker image is too old. That’s your main problem, the remaining failures are caused by that. Since you don’t specify a base_image in your app.yml, something must be preventing launcher from pulling the new image.

Maybe you can try running sudo docker pull discourse/discourse:1.3.5, which should manually pull the latest image. I’d kind of expect that you get an error there.