Skip to content

Instantly share code, notes, and snippets.

@3lackRos3
Created June 29, 2015 11:15
Show Gist options
  • Save 3lackRos3/3bb0614490df72d75838 to your computer and use it in GitHub Desktop.
Save 3lackRos3/3bb0614490df72d75838 to your computer and use it in GitHub Desktop.
Rebuilding Discourse
I, [2015-06-29T11:13:42.169893 #36] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
I18n::InvalidLocale: "ta" is not a valid locale
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/i18n-0.7.0/lib/i18n.rb:284:in `enforce_available_locales!'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/i18n-0.7.0/lib/i18n/config.rb:13:in `locale='
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/i18n-0.7.0/lib/i18n.rb:35:in `locale='
/var/www/discourse/lib/tasks/db.rake:3:in `block in <top (required)>'
Tasks: TOP => db:migrate => set_locale
(See full trace by running task with --trace)
I, [2015-06-29T11:13:54.725109 #36] INFO -- :
I, [2015-06-29T11:13:54.726928 #36] INFO -- : Terminating async processes
I, [2015-06-29T11:13:54.727221 #36] 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: 65
2015-06-29 11:13:54 UTC [65-2] LOG: received fast shutdown request
2015-06-29 11:13:54 UTC [65-3] LOG: aborting any active transactions
2015-06-29 11:13:54 UTC [72-2] LOG: autovacuum launcher shutting down
I, [2015-06-29T11:13:54.731222 #36] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 190
190:signal-handler (1435576434) Received SIGTERM scheduling shutdown...
2015-06-29 11:13:54 UTC [69-1] LOG: shutting down
2015-06-29 11:13:54 UTC [69-2] LOG: database system is shut down
190:M 29 Jun 11:13:54.773 # User requested shutdown...
190:M 29 Jun 11:13:54.774 * Saving the final RDB snapshot before exiting.
190:M 29 Jun 11:13:54.835 * DB saved on disk
190:M 29 Jun 11:13:54.835 # Redis is now ready to exit, bye bye...
FAILED
--------------------
RuntimeError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 471 exit 1>
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'"]}
3b2cfe2972a1d03b63fbd7bc2d25d2d562fd99a30408c80bb3642d6a7b61bdd9
FAILED TO BOOTSTRAP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment