Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jgm106 on github.
  • I am jgm106 (https://keybase.io/jgm106) on keybase.
  • I have a public key ASBaPhZhOtvfZh27Ewpw7gMaGzK9reM4QBZN42MIK7jFwwo

To claim this, I am signing this object:

* executing "cd -- /opt/heracles/deploy/scholarsphere/releases/20131212201917 && RAILS_ENV=production RAILS_GROUPS=assets env RBENV_ROOT=\"/opt/heracles/deploy/.rbenv\" PATH=\"/opt/heracles/deploy/.rbenv/shims:/opt/heracles/deploy/.rbenv/bin:$PATH\" RBENV_VERSION=\"2.0.0-p353\" /opt/heracles/deploy/.rbenv/bin/rbenv exec bundle exec rake assets:precompile"
servers: ["ss2test.dlt.psu.edu"]
[ss2test.dlt.psu.edu] executing command
** [out :: ss2test.dlt.psu.edu] rake aborted!
** [out :: ss2test.dlt.psu.edu] cannot load such file -- rspec/core
** [out :: ss2test.dlt.psu.edu] /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
** [out :: ss2test.dlt.psu.edu] /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
** [out :: ss2test.dlt.psu.edu] /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/
Error in production.log:
ActionController::RoutingError (No route matches [GET] "/github_hook"):
actionpack (3.2.12) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.12) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.12) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.12) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.12) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
@jgm106
jgm106 / mysql errors
Created June 27, 2012 17:50
mysql2 errors for SS
: fedora2test:pts/2%; grep Mysql !$
grep Mysql *
delayed_job.log:2012-06-20T10:36:25-0400: [Worker(delayed_job.2 host:fedora2test pid:25853)] AuditJob failed with ActiveRecord::StatementInvalid: Mysql2::Error: Lock wait timeout exceeded; try restarting transaction: DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 1816 - 0 failed attempts
delayed_job.log:2012-06-20T10:41:31-0400: [Worker(delayed_job.1 host:fedora2test pid:26281)] AuditJob failed with ActiveRecord::StatementInvalid: Mysql2::Error: Lock wait timeout exceeded; try restarting transaction: DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 1816 - 0 failed attempts
delayed_job.log:2012-06-20T10:46:26-0400: [Worker(delayed_job.2 host:fedora2test pid:26565)] AuditJob failed with ActiveRecord::StatementInvalid: Mysql2::Error: Lock wait timeout exceeded; try restarting transaction: DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 1838 - 0 failed attempts
delayed_job.log:2012-06-20T10:46:36-0400: [Worker(delayed_job.3 host:fedora2test pid
@jgm106
jgm106 / trace_db:data:load
Created June 15, 2012 01:16
RAILS_ENV=production rake --trace db:data:load
: fedora2test:pts/0%; RAILS_ENV=production rake --trace db:data:load
SOLRIZER: loading field name mappings from /usr/local/rvm/gems/ruby-1.9.3-p125@scholarsphere/gems/solrizer-1.2.1/config/solr_mappings.yml
resetting mappings for Solrizer::FieldMapper::Default
** Invoke db:data:load (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:data:load
rake aborted!
undefined class/module Mysql::
/usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:269:in `path2class'
@jgm106
jgm106 / rake_no_trace
Created June 11, 2012 17:57
broken build 6/11/12
: fedora1test:pts/0%; RAILS_ENV=integration rake db:migrate
SOLRIZER: loading field name mappings from /usr/local/rvm/gems/ruby-1.9.3-p125@scholarsphere/gems/solrizer-1.2.1/config/solr_mappings.yml
resetting mappings for Solrizer::FieldMapper::Default
== DeviseCreateUsers: migrating ==============================================
-- create_table(:users)
[DEVISE] You are using t.database_authenticatable and others in your migration and this feature is deprecated. Please simply use Rails helpers instead as mentioned here:
https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0-migration-schema-style
-> 0.0065s
@jgm106
jgm106 / db_config
Created June 5, 2012 12:17
rake --trace db:data:load explosion
: fedora1test:pts/0%; cat config/database.yml
############################
# If using MySQL, comment out this block
############################
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
@jgm106
jgm106 / active_fedora.git-fail
Created April 30, 2012 20:06
integration deploy from jenkins (fresh git)
[ pid=17541 thr=140622345549568 file=ext/common/ApplicationPool/Pool.h:939 time=2012-04-30 15:59:16.257 ]: Spawning a process for /opt/heracles/scholarsphere/scholarsphere because there are none for this app group
[ pid=17541 thr=140622345549568 file=ext/common/ApplicationPool/../SpawnManager.h:289 time=2012-04-30 15:59:16.257 ]: Spawning a new application process for /opt/heracles/scholarsphere/scholarsphere...
[ pid=17543 thr=4032620 file=utils.rb:176 time=2012-04-30 15:59:16.562 ]: *** Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (git://github.com/psu-stewardship/active_fedora.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)) (process 17543, thread #<Thread:0x000000007b10d8>):
from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/source.rb:574:in `rescue in load_spec_files'
from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/source.rb:572:in `load_spec_files'
from /usr/
@jgm106
jgm106 / db_migrate_fail
Created April 24, 2012 20:12
mysql error with rake db:migrate
: fedora1test:pts/0%; RAILS_ENV=integration rake db:migrate
(in /opt/heracles/scholarsphere)
SOLRIZER: loading field name mappings from /usr/local/rvm/gems/ree-1.8.7-2011.03@scholarsphere/gems/solrizer-1.2.0/config/solr_mappings.yml
resetting mappings for Solrizer::FieldMapper::Default
== AddMissingIndexes: migrating ==============================================
-- add_index(:domain_terms_local_authorities, [:local_authority_id, :domain_term_id], {:name=>"dtla_by_ids1"})
rake aborted!
An error has occurred, all later migrations canceled:
Index name 'dtla_by_ids1' on table 'domain_terms_local_authorities' already exists
@jgm106
jgm106 / NoMethodError_undefined_method_pp
Created April 24, 2012 17:21
fedora1test integration issues.
http://fedora1test/batches/scholarsphere:8p58pc92q/edit
NoMethodError in BatchController#update
undefined method `pp' for #<BatchController:0x49e66d8>
Rails.root: /opt/heracles/scholarsphere
Application Trace | Framework Trace | Full Trace
app/controllers/batch_controller.rb:20:in `update'
actionpack (3.2.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'