Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidekiq crashes with can't create thread #695

Closed
ghost opened this issue Feb 9, 2013 · 2 comments
Closed

Sidekiq crashes with can't create thread #695

ghost opened this issue Feb 9, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 9, 2013

I am running sidekiq with gitlab 4.2 and Sidekiq crashes just after starting.

Log shows the following:

2013-02-09T00:06:52Z 16566 TID-156fb2 INFO: Booting Sidekiq 2.6.4 with Redis at redis://localhost:6379/0

2013-02-09T00:06:52Z 16566 TID-156fb2 INFO: Running in ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]

2013-02-09T00:06:52Z 16566 TID-156fb2 INFO: See LICENSE and the LGPL-3.0 for licensing details.

can't create Thread (11)

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/internal_pool.rb:45:in `initialize'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/internal_pool.rb:45:in `new'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/internal_pool.rb:45:in `create'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/internal_pool.rb:20:in `block in get'

<internal:prelude>:10:in `synchronize'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/internal_pool.rb:17:in `get'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/thread_handle.rb:15:in `initialize'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:181:in `new'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:181:in `initialize'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid.rb:110:in `new'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid.rb:110:in `new_link'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.6.4/lib/sidekiq/manager.rb:29:in `block in initialize'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.6.4/lib/sidekiq/manager.rb:29:in `times'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.6.4/lib/sidekiq/manager.rb:29:in `each'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.6.4/lib/sidekiq/manager.rb:29:in `map'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.6.4/lib/sidekiq/manager.rb:29:in `initialize'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `public_send'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `dispatch'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:327:in `block in handle_message'

/home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:24:in `block in initialize'

/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:59:in `start': can't create Thread (11) (ThreadError)

from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:59:in `timeout'

from /home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid.rb:56:in `shutdown'

from /home/admin/public_html/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid.rb:89:in `block in <module:Celluloid>'

Here is the server config

CentOS 5.9 / Kernel 2.6.18-238.9.1.el5xen #1 SMP Tue Apr 12 19:32:47 EDT 2011 i686 i686 i386 GNU/Linux

cPanel
MySQL 5.1.67-cll
GitLab 4.1 / Gitolite 3
Redis server version 2.4.17 (00000000:0)
Ruby 1.9.3-p327

[~/public_html/gitlab]# bundle show
Gems included by the bundle:

  • actionmailer (3.2.11)
  • actionpack (3.2.11)
  • activemodel (3.2.11)
  • activerecord (3.2.11)
  • activeresource (3.2.11)
  • activesupport (3.2.11)
  • acts-as-taggable-on (2.3.3)
  • arel (3.0.2)
  • backports (2.6.5)
  • bcrypt-ruby (3.0.1)
  • blankslate (3.1.2)
  • bootstrap-sass (2.2.1.1)
  • builder (3.0.4)
  • bundler (1.2.3)
  • carrierwave (0.7.1)
  • celluloid (0.12.4)
  • charlock_holmes (0.6.9)
  • chosen-rails (0.9.8)
  • coffee-rails (3.2.2)
  • coffee-script (2.2.0)
  • coffee-script-source (1.4.0)
  • colored (1.2)
  • connection_pool (1.0.0)
  • devise (2.1.2)
  • diff-lcs (1.1.3)
  • draper (0.18.0)
  • erubis (2.7.0)
  • escape_utils (0.2.4)
  • execjs (1.4.0)
  • facter (1.6.17)
  • faraday (0.8.4)
  • ffaker (1.15.0)
  • font-awesome-sass-rails (3.0.0.1)
  • foreman (0.60.2)
  • gemoji (1.2.1)
  • git (1.2.5)
  • github-linguist (2.3.4)
  • github-markup (0.7.4)
  • gitlab_meta (4.0)
  • gitlab_omniauth-ldap (1.0.2)
  • gitlab_yaml_db (1.0.0)
  • gitolite (1.1.0)
  • grack (1.0.0 ba46f3b)
  • grape (0.2.2)
  • gratr19 (0.4.4.1)
  • grit (2.5.0 7f35cb9)
  • grit_ext (0.6.1 8e6afc2)
  • haml (3.1.7)
  • haml-rails (0.3.5)
  • hashery (1.5.0)
  • hashie (1.2.0)
  • hike (1.2.1)
  • httparty (0.9.0)
  • httpauth (0.2.0)
  • i18n (0.6.1)
  • journey (1.0.4)
  • jquery-atwho-rails (0.1.7)
  • jquery-rails (2.1.3)
  • jquery-ui-rails (2.0.2)
  • json (1.7.6)
  • jwt (0.1.5)
  • kaminari (0.14.1)
  • kgio (2.7.4)
  • libv8 (3.3.10.4)
  • mail (2.4.4)
  • mime-types (1.19)
  • modernizr (2.6.2)
  • multi_json (1.5.0)
  • multi_xml (0.5.1)
  • multipart-post (1.1.5)
  • mysql2 (0.3.11)
  • net-ldap (0.2.2)
  • oauth (0.4.7)
  • oauth2 (0.8.0)
  • omniauth (1.1.1)
  • omniauth-github (1.0.3)
  • omniauth-google-oauth2 (0.1.13)
  • omniauth-oauth (1.0.1)
  • omniauth-oauth2 (1.1.1)
  • omniauth-twitter (0.0.14)
  • orm_adapter (0.4.0)
  • polyglot (0.3.3)
  • posix-spawn (0.3.6)
  • pygments.rb (0.3.2 db1da03)
  • pyu-ruby-sasl (0.0.3.3)
  • rack (1.4.3)
  • rack-accept (0.4.5)
  • rack-cache (1.2)
  • rack-mount (0.8.3)
  • rack-protection (1.3.2)
  • rack-ssl (1.3.2)
  • rack-test (0.6.2)
  • rails (3.2.11)
  • railties (3.2.11)
  • raindrops (0.10.0)
  • rake (10.0.3)
  • raphael-rails (2.1.0 cb2c92a)
  • rdoc (3.12)
  • redcarpet (2.2.2)
  • redis (3.0.2)
  • redis-namespace (1.2.1)
  • rubyntlm (0.1.1)
  • sass (3.2.5)
  • sass-rails (3.2.5)
  • seed-fu (2.2.0)
  • settingslogic (2.0.8)
  • sidekiq (2.6.4)
  • sinatra (1.3.3)
  • six (0.2.0)
  • slim (1.3.6)
  • sprockets (2.2.2)
  • stamp (0.3.0)
  • temple (0.5.5)
  • therubyracer (0.10.2)
  • thor (0.16.0)
  • tilt (1.3.3)
  • timers (1.0.2)
  • treetop (1.4.12)
  • tzinfo (0.3.35)
  • uglifier (1.3.0)
  • unicorn (4.4.0)
  • virtus (0.5.2)
  • warden (1.2.1)
  • yajl-ruby (1.1.0)

Thanks for any help you could provide.
Bruno

@mperham
Copy link
Collaborator

mperham commented Feb 9, 2013

You're running into some memory or open file limit on your machine. Unfortunately that's not a very helpful error message and there's nothing Sidekiq can do to help. Read for more detail:

http://bugs.mysql.com/bug.php?id=5656
http://www.jigsawboys.com/2006/04/13/mysql-error-1135-cant-create-a-new-thread-errno-11/

@mperham mperham closed this as completed Feb 9, 2013
@ghost
Copy link
Author

ghost commented Feb 9, 2013

Thanks for the answer, but I am quite confuse, what is the relation between SideKiq that can not create Thread ad MySQL ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant