Mysql error when starting delayed job in production #25

Closed
ramza1 opened this Issue Nov 20, 2012 · 1 comment

Comments

Projects
None yet
3 participants

ramza1 commented Nov 20, 2012

when stating delayed job in my production environment on a vps platform, the following errors occur

/home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in connect': Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) (Mysql2::Error) from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:ininitialize'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in new' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/mysql2_adapter.rb:16:inmysql2_connection'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in new_connection' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:incheckout_new_connection'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in block (2 levels) in checkout' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:inloop'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in block in checkout' from /home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:inmon_synchronize'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in checkout' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:inblock in connection'
from /home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:inconnection'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in retrieve_connection' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:inretrieve_connection'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in connection' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/model_schema.rb:308:inclear_cache!'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/railtie.rb:97:in block (2 levels) in <class:Railtie>' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:418:in_run__918681977__prepare__203223673__callbacks'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in __run_callback' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in_run_prepare_callbacks'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in run_callbacks' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/reloader.rb:74:inprepare!'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/reloader.rb:48:in prepare!' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/application/finisher.rb:47:inblock in module:Finisher'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:in instance_exec' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:inrun'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:55:in block in run_initializers' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:ineach'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:in run_initializers' from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/application.rb:136:ininitialize!'
from /home/deployer/apps/gutrees/shared/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:30:in method_missing' from /home/deployer/apps/gutrees/releases/20121120075205/config/environment.rb:5:in<top (required)>'
from /home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from script/delayed_job:3:in `

'

Collaborator

sferik commented Apr 2, 2013

This looks like a general error connecting to MySQL. What makes you think it has something to do with this library?

albus522 closed this Sep 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment