Rake 0.9.2 issue with rakedb:migrate - mysql

I'm setting up my new Macbook (Lion OSX) with my rails environment and have hit a odd problem that I can't figure out what the issue is.
When I am running rake db:setup or rake db:migrate I am getting the following error:
rake aborted!
wrong number of arguments (1 for 0)
Tasks: TOP => db:migrate => environment
When I run a trace I get the following:
$/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/syntax/default.rb:6:in `define'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/deprecated.rb:5:in `method_missing'
/Users/djforth/Websites/bdglobal/spec/factories/sites.rb:3:in `<top (required)>'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `block in load'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:20:in `block (2 levels) in find_definitions'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:19:in `each'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:19:in `block in find_definitions'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:15:in `each'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl-2.1.2/lib/factory_girl/find_definitions.rb:15:in `find_definitions'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/factory_girl_rails-1.2.0/lib/factory_girl_rails/railtie.rb:12:in `block in <class:Railtie>'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:34:in `call'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:42:in `each'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `instance_exec'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `run'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:50:in `block in run_initializers'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `each'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `run_initializers'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/application.rb:92:in `initialize!'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/djforth/Websites/bdglobal/config/environment.rb:5:in `<top (required)>'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/application.rb:78:in `require_environment!'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/application.rb:189:in `block (2 levels) in initialize_tasks'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:205:in `block in execute'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/djforth/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:174:in `each'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/Users/djforth/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:90:in `block (2 levels) in top_level'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:90:in `block in top_level'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:62:in `block in run'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/bin/rake:19:in `load'
/Users/djforth/.rvm/gems/ruby-1.9.2-head/bin/rake:19:in `<main>'
If I uninstall 0.9.2 and run an older project that runs rake 0.8.7 the rake works perfectly. So I am thinking it is a problem with the rake, but not entirely sure?
Anyone got any thoughts?

The problem seems to lie there:
/Users/djforth/Websites/bdglobal/spec/factories/sites.rb:3:in `<top (required)>'
You're misdeclaring a factory and maybe rake 0.8.7 doesn't check that.

Related

Rails 6 and neo4j.rb?

Is there development happening for Rails 6 in Neo4j.rb? In a new rails 6(rc1) project, if I create a couple scaffolds then run 'rake neo4j:migrate:all' I get an error that when I follow it quickly rabbitholes much deeper into the internals of ActiveModel than I can parse:
NoMethodError: undefined method `force_change' for #<ActiveModel::NullMutationTracker:0x00007fa1aadd8788>
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/activemodel-6.0.0.rc1/lib/active_model/dirty.rb:268:in `attribute_will_change!'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/activemodel-6.0.0.rc1/lib/active_model/attribute_methods.rb:383:in `migration_id_will_change!'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/shared/property.rb:213:in `block in attribute!'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/shared/property.rb:51:in `block in send_props'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/shared/property.rb:51:in `each'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/shared/property.rb:51:in `send_props'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/shared/property.rb:32:in `initialize'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/active_node/property.rb:7:in `initialize'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/shared/callbacks.rb:19:in `block in initialize'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/callbacks.rb:101:in `run_callbacks'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/shared/callbacks.rb:19:in `initialize'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/active_node.rb:53:in `initialize'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/active_node/persistence.rb:116:in `new'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/active_node/persistence.rb:116:in `create!'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/migrations/base.rb:31:in `migrate_up'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/migrations/base.rb:16:in `block in migrate'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/migrations/base.rb:15:in `migrate'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/migrations/runner.rb:127:in `block in migrate'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/migrations/runner.rb:133:in `migration_message'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/migrations/runner.rb:125:in `migrate'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/migrations/runner.rb:26:in `block in all'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/migrations/runner.rb:24:in `each'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/migrations/runner.rb:24:in `all'
/Users/metkat/.rvm/gems/ruby-2.6.0/gems/neo4j-9.2.4/lib/neo4j/tasks/migration.rake:116:in `block (3 levels) in <main>'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `block in execute'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `each'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `execute'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:214:in `block in invoke_with_call_chain'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:183:in `invoke'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:160:in `invoke_task'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `each'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block in top_level'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:125:in `run_with_threads'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:110:in `top_level'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:83:in `block in run'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:80:in `run'
/Users/metkat/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/Users/metkat/.rvm/gems/ruby-2.6.0/bin/rake:23:in `load'
/Users/metkat/.rvm/gems/ruby-2.6.0/bin/rake:23:in `<main>'
/Users/metkat/.rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `eval'
/Users/metkat/.rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => neo4j:migrate:all
It is fixed with this pull request. With neo4jrb version 9.6.0 and onwards.
It looks like it's related to this PR which landed in RC1, I'm running into the same issue. I pinged that thread to see if it was intentional. In the meantime, try rolling back to the last beta or monkey patching ActiveModel::NullMutationTracker (which is what I did and confirmed it fixed the issue) by adding the following methods back into it:
def forget_change(attr_name)
end
def original_value(attr_name)
end
def force_change(attr_name)
end

Sidekiq loading invalid JSON

Hello I've installed Gitalb CE (v9.3.8) on my private server (Debian Stretch) and I have got myself into a problem with Sidekiq. Aparently it is trying to load an invalid JSON, but I don't know from where. Do you have any idea, where could have the "nalse" (second line in the log below) come from?
2017-09-06_12:23:27.91969 2017-09-06T12:23:27.919Z 27771 TID-ot0tpp4p4 INFO: Booting Sidekiq 5.0.0 with redis options {:path=>"/var/opt/gitlab/redis/redis.socket", :namespace=>"resque:gitlab", :url=>nil}
2017-09-06_12:23:27.95895 784: unexpected token at '{"retry":nalse,"queue":"cronjob","class":"StuckCiBuildsWorker","args":[]}'
2017-09-06_12:23:27.95908 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/common.rb:155:in `parse'
2017-09-06_12:23:27.95911 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/common.rb:155:in `parse'
2017-09-06_12:23:27.95913 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/lib/sidekiq.rb:171:in `load_json'
2017-09-06_12:23:27.95916 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:289:in `initialize'
2017-09-06_12:23:27.95918 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:213:in `new'
2017-09-06_12:23:27.95921 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:213:in `block in all'
2017-09-06_12:23:27.95924 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:211:in `collect'
2017-09-06_12:23:27.95926 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:211:in `all'
2017-09-06_12:23:27.95929 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:488:in `destroy_removed_jobs'
2017-09-06_12:23:27.95931 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-cron-0.6.0/lib/sidekiq/cron/job.rb:162:in `load_from_hash!'
2017-09-06_12:23:27.95936 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/sidekiq.rb:41:in `block in <top (required)>'
2017-09-06_12:23:27.95939 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/lib/sidekiq.rb:73:in `configure_server'
2017-09-06_12:23:27.95941 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/sidekiq.rb:8:in `<top (required)>'
2017-09-06_12:23:27.95943 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
2017-09-06_12:23:27.95946 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load'
2017-09-06_12:23:27.95948 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
2017-09-06_12:23:27.95951 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
2017-09-06_12:23:27.95954 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:652:in `block in load_config_initializer'
2017-09-06_12:23:27.95956 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in `instrument'
2017-09-06_12:23:27.95961 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:651:in `load_config_initializer'
2017-09-06_12:23:27.95964 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
2017-09-06_12:23:27.95971 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:615:in `each'
2017-09-06_12:23:27.95974 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:615:in `block in <class:Engine>'
2017-09-06_12:23:27.95976 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec'
2017-09-06_12:23:27.95979 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run'
2017-09-06_12:23:27.95981 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
2017-09-06_12:23:27.95983 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2017-09-06_12:23:27.95985 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2017-09-06_12:23:27.95988 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
2017-09-06_12:23:27.95993 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2017-09-06_12:23:27.95995 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
2017-09-06_12:23:27.95997 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each'
2017-09-06_12:23:27.96000 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child'
2017-09-06_12:23:27.96002 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:415:in `call'
2017-09-06_12:23:27.96004 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:415:in `each_strongly_connected_component_from'
2017-09-06_12:23:27.96006 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2017-09-06_12:23:27.96009 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:347:in `each'
2017-09-06_12:23:27.96011 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:347:in `call'
2017-09-06_12:23:27.96013 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2017-09-06_12:23:27.96016 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2017-09-06_12:23:27.96018 /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2017-09-06_12:23:27.96022 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers'
2017-09-06_12:23:27.96025 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/application.rb:352:in `initialize!'
2017-09-06_12:23:27.96027 /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in `<top (required)>'
2017-09-06_12:23:27.96029 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
2017-09-06_12:23:27.96032 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
2017-09-06_12:23:27.96034 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
2017-09-06_12:23:27.96037 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
2017-09-06_12:23:27.96039 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/lib/sidekiq/cli.rb:252:in `boot_system'
2017-09-06_12:23:27.96041 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/lib/sidekiq/cli.rb:54:in `run'
2017-09-06_12:23:27.96046 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sidekiq-5.0.0/bin/sidekiq:12:in `<top (required)>'
2017-09-06_12:23:27.96048 /opt/gitlab/embedded/bin/sidekiq:22:in `load'
2017-09-06_12:23:27.96050 /opt/gitlab/embedded/bin/sidekiq:22:in `<top (required)>'
2017-09-06_12:23:27.96052 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `load'
2017-09-06_12:23:27.96055 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `kernel_load'
2017-09-06_12:23:27.96061 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:in `run'
2017-09-06_12:23:27.96063 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in `exec'
2017-09-06_12:23:27.96065 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
2017-09-06_12:23:27.96068 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
2017-09-06_12:23:27.96070 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
2017-09-06_12:23:27.96072 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in `dispatch'
2017-09-06_12:23:27.96078 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
2017-09-06_12:23:27.96080 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in `start'
2017-09-06_12:23:27.96082 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:34:in `block in <top (required)>'
2017-09-06_12:23:27.96085 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
2017-09-06_12:23:27.96087 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:26:in `<top (required)>'
2017-09-06_12:23:27.96089 /opt/gitlab/embedded/bin/bundle:22:in `load'
2017-09-06_12:23:27.96091 /opt/gitlab/embedded/bin/bundle:22:in `<main>'
Faulty client? Sidekiq just basically reads a JSON of a que, something put a faulty JSON inside, and it probably wasn't sidekiq, but something that interacts with it.
Check out if something in your code inserts the Sidekiq jobs "manually" - there were instructions once upon a time how to push sidekiq jobs from other frameworks: https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/client.rb#L69
The invalid JSON was saved in Redis in <gitlab_data>/redis/dump.rdb. Deleting the file solved the jammed Sidekiq.
But how it got there is a mystery.

Can't rake db:migrate ArgumentError: comparison of Fixnum with String failed

This is the oddest error I've ever seen.
I'm trying to deploy rails with a app server and a remote db server.
I can run rails dbconsole and login to the the database just fine from the app server.
I can also run rake db:drop && rake db:create just fine as well but when I run rake db:migrate all hell breaks lose with errors I've never seen before dealing with migrating a db. I bet it's a simple fix that i'm not seeing but please have a look and tell me what I can to fix this. Thank you all who try!
I can run db:migrate on my local machine and it works just fine but when I deploy I get:
rake aborted!
ArgumentError: comparison of Fixnum with String failed
ArgumentError: comparison of Fixnum with String failed
ArgumentError: comparison of String with 0 failed
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
So then I run it with trace and it still doesn't give me any want to fix it
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
rake aborted!
ArgumentError: comparison of Fixnum with String failed
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/logger.rb:366:in `<'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/logger.rb:366:in `add'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/logger.rb:452:in `error'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:428:in `rescue in log'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:425:in `log'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:286:in `execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/mysql2_adapter.rb:220:in `execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:300:in `execute_and_free'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:414:in `tables'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:421:in `table_exists?'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/schema_migration.rb:17:in `create_table'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:878:in `initialize'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:764:in `new'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:764:in `up'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:742:in `migrate'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:42:in `block (2 levels) in <top (required)>'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:240:in `call'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:240:in `block in execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:235:in `each'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:235:in `execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:165:in `invoke'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:150:in `invoke_task'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `each'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `block in top_level'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:115:in `run_with_threads'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:100:in `top_level'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:78:in `block in run'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:75:in `run'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/bin/rake:33:in `<top (required)>'
/home/apps/.rbenv/versions/2.1.0/bin/rake:23:in `load'
/home/apps/.rbenv/versions/2.1.0/bin/rake:23:in `<main>'
ArgumentError: comparison of Fixnum with String failed
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/logger.rb:366:in `<'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/logger.rb:366:in `add'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/logger.rb:452:in `error'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/log_subscriber.rb:85:in `rescue in finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/log_subscriber.rb:83:in `finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:96:in `finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `block in finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `each'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:36:in `finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `instrument'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:286:in `execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/mysql2_adapter.rb:220:in `execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:300:in `execute_and_free'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:414:in `tables'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:421:in `table_exists?'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/schema_migration.rb:17:in `create_table'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:878:in `initialize'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:764:in `new'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:764:in `up'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:742:in `migrate'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:42:in `block (2 levels) in <top (required)>'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:240:in `call'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:240:in `block in execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:235:in `each'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:235:in `execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:165:in `invoke'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:150:in `invoke_task'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `each'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `block in top_level'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:115:in `run_with_threads'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:100:in `top_level'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:78:in `block in run'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:75:in `run'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/bin/rake:33:in `<top (required)>'
/home/apps/.rbenv/versions/2.1.0/bin/rake:23:in `load'
/home/apps/.rbenv/versions/2.1.0/bin/rake:23:in `<main>'
ArgumentError: comparison of String with 0 failed
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/logger.rb:273:in `<='
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/logger.rb:273:in `debug?'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/log_subscriber.rb:37:in `sql'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/subscriber.rb:68:in `finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/log_subscriber.rb:83:in `finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:96:in `finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `block in finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `each'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb:40:in `finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:36:in `finish'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:25:in `instrument'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:286:in `execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/mysql2_adapter.rb:220:in `execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:300:in `execute_and_free'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:414:in `tables'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:421:in `table_exists?'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/schema_migration.rb:17:in `create_table'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:878:in `initialize'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:764:in `new'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:764:in `up'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/migration.rb:742:in `migrate'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:42:in `block (2 levels) in <top (required)>'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:240:in `call'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:240:in `block in execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:235:in `each'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:235:in `execute'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:165:in `invoke'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:150:in `invoke_task'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `each'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `block in top_level'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:115:in `run_with_threads'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:100:in `top_level'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:78:in `block in run'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:75:in `run'
/home/apps/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/bin/rake:33:in `<top (required)>'
/home/apps/.rbenv/versions/2.1.0/bin/rake:23:in `load'
/home/apps/.rbenv/versions/2.1.0/bin/rake:23:in `<main>'
Tasks: TOP => db:migrate
Face Palm.
I had this in my environment file and it was causing the issue:
config.logger = Logger.new(STDOUT)
config.logger.level = 'DEBUG'
Changed config.logger.level = 'DEBUG' to config.log_level = 'DEBUG'
All is well now.

Rails, Template error

I have some problem on my production server.
On my local everything work great. Error in production.log:
Started GET "/" for 127.0.0.2 at 2012-11-27 21:30:39 +0100
Processing by HomeController#index as HTML
Rendered home/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_heads-main.html.erb (1.8ms)
Completed 500 Internal Server Error in 6ms
ActionView::Template::Error (modern.css isn't precompiled):
1: <meta name="viewport" content="width=device-width, initial-scale=1.0">
2: <title><%= content_for?(:title) ? yield(:title) : "Zapust.pl - życie granicy, przejścia graniczne, kamery, chat" %></title>
3: <meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Zapust.pl - życie granicy, przejści$
4: <%= stylesheet_link_tag("modern") %>
5: <%= stylesheet_link_tag("front") %>
6: <%= stylesheet_link_tag("modern-responsive") %>
7: <%= stylesheet_link_tag("popup") %>
app/views/layouts/_heads-main.html.erb:4:in `_app_views_layouts__heads_main_html_erb__3671184199177623191_17240242720'
app/views/layouts/application.html.erb:4:in `_app_views_layouts_application_html_erb__829205250877960417_17238366080'
I have compile option set to true in my config. On the screen in webbrowser:
We're sorry, but something went wrong.
I have even deleted application layout file and I am still getting this error.
tmp/cache is empty. Where is the cache ? What is wrong ?
Error with command bundle exec rake assets:precompile --trace:
rake aborted!
/usr/home/mitchpolska/domains/zapust.pl/public_ror/app/assets/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js has a invalid UTF-8 byte sequence
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/utils.rb:18:in `block in read_unicode'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/utils.rb:12:in `tap'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/utils.rb:12:in `read_unicode'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/context.rb:171:in `evaluate'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/processed_asset.rb:12:in `initialize'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:241:in `new'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:241:in `block in build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:262:in `circular_call_protection'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:240:in `build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/index.rb:89:in `block in build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/caching.rb:19:in `cache_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/index.rb:88:in `build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:163:in `find_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/index.rb:56:in `find_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/processed_asset.rb:106:in `block in build_required_assets'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/processed_asset.rb:100:in `each'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/processed_asset.rb:100:in `build_required_assets'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/processed_asset.rb:16:in `initialize'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:241:in `new'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:241:in `block in build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:262:in `circular_call_protection'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:240:in `build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/index.rb:89:in `block in build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/caching.rb:19:in `cache_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/index.rb:88:in `build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:163:in `find_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/index.rb:56:in `find_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/bundled_asset.rb:16:in `initialize'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:244:in `new'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:244:in `build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/index.rb:89:in `block in build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/caching.rb:19:in `cache_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/index.rb:88:in `build_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:163:in `find_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/index.rb:56:in `find_asset'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/actionpack-3.2.8/lib/sprockets/static_compiler.rb:23:in `block in compile'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:212:in `block in each_logical_path'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:200:in `block (2 levels) in each_file'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:190:in `each'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:190:in `each_entry'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:198:in `block in each_file'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:197:in `each'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:197:in `each_file'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/sprockets-2.1.3/lib/sprockets/base.rb:210:in `each_logical_path'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/actionpack-3.2.8/lib/sprockets/static_compiler.rb:18:in `compile'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/actionpack-3.2.8/lib/sprockets/assets.rake:56:in `internal_precompile'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/actionpack-3.2.8/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/mydevil/ruby19/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/actionpack-3.2.8/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/mydevil/ruby19/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/usr/local/mydevil/ruby19/bin/rake:23:in `load'
/usr/local/mydevil/ruby19/bin/rake:23:in `<main>'
Tasks: TOP => assets:precompile:primary
rake aborted!
Command failed with status (1): [/usr/local/mydevil/ruby19/bin/ruby19 /usr/...]
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/actionpack-3.2.8/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/actionpack-3.2.8/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/actionpack-3.2.8/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/mydevil/ruby19/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/home/mitchpolska/domains/zapust.pl/public_ror/vendor/bundle/ruby/1.9/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/usr/local/mydevil/ruby19/bin/rake:23:in `load'
/usr/local/mydevil/ruby19/bin/rake:23:in `<main>'
Tasks: TOP => assets:precompile
Your version of tiny mce has an invalid character somewhere that makes the asset precompilation crash.
Use the tiny mce gem as suggested here : Rails assets pipeline causing problems
Or, try to find a version of tiny mce that works with the asset pipeline

rake error when load production db schema

Here is the error running rake for loading production db schema (mysql 5.1.45):
$ rake db:schema:load RAILS_ENV=production --trace
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
No such middleware to insert before: ActionDispatch::Static
c:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/stack.rb:119:in `assert_index'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/stack.rb:83:in `insert'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/configuration.rb:38:in `block in merge_into'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/configuration.rb:37:in `each'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/configuration.rb:37:in `merge_into'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/engine.rb:445:in `app'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/application/finisher.rb:37:in `block in <module:Finisher>'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `instance_exec'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `run'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/initializable.rb:50:in `block in run_initializers'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `each'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `run_initializers'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/application.rb:92:in `initialize!'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
D:/rails_proj/emclab-failed/config/environment.rb:5:in `<top (required)>'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/application.rb:78:in `require'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/application.rb:78:in `require_environment!'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/application.rb:189:in `block (2 levels) in initialize_tasks'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:205:in `block in execute'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
c:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:174:in `each'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:174:in `invoke_prerequisites'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
c:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in `block (2 levels) in top_level'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in `block in top_level'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:62:in `block in run'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
c:/Ruby192/bin/rake:19:in `load'
c:/Ruby192/bin/rake:19:in `<main>'
Tasks: TOP => db:schema:load => environment
Please disregard the following: stackoverflow requires more words than the error message to explain the situation. Error message is better than any words!
Any suggestion to fix the problem? Thanks.
You don't have to specify another piece of middleware to insert into the front of the middleware stack. Instead, you can specify just an index number. For example:
config.middleware.insert_before(0, ::API::Throttle)
According to someone who had a similar problem, you may need to go into config/application.rb and replace:
config.middleware.insert_after('ActionDispatch::Static', '::API::Throttle')
with this line instead:
config.middleware.insert_before('Rack::Lock', '::API::Throttle')
Hope this helps!