Skip to content

ThreadError can't create Thread: Resource temporarily unavailable #4353

@dbelloGitHub

Description

@dbelloGitHub

Same problem as Issue 3217 while creating a new site with Jekyll.
To fix, I was intent to clear all Ruby Apps from CPanel and Setup new App from scratch, entering to virtual environment from Terminal

[myuser@host ~]$ source /h/myuser/rubyvenv/rubyApps/2.6/bin/activate
(rubyApps:2.6)[myuser@host rubyApps]$ 

then

$ gem install bundler jekyll

no problem

gem install racc
gem install bootstrap -v 4.6.0
gem install jquery-rails
gem install bootstrap-sass
cd ~/rubyApps

Then, this command not run completely:

jekyll new myproject

nor

jekyll new myproject --force

Then create a site, but with this error:

ThreadError: can't create Thread: Resource temporarily unavailable

--- ERROR REPORT TEMPLATE -------------------------------------------------------

Error Report

Questions

Please fill out answers to these questions, it'll help us figure out
why things are going wrong.

  • What did you do?

I ran the command /h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/exe/bundle install

  • What did you expect to happen?

I expected Bundler to...

  • What happened instead?

Instead, what happened was...

  • Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?

I tried...

...

Backtrace

ThreadError: can't create Thread: Resource temporarily unavailable
/opt/alt/ruby26/lib64/ruby/2.6.0/timeout.rb:83:in `start'
/opt/alt/ruby26/lib64/ruby/2.6.0/timeout.rb:83:in `block in timeout'
/opt/alt/ruby26/lib64/ruby/2.6.0/timeout.rb:103:in `timeout'
/opt/alt/ruby26/lib64/ruby/2.6.0/net/http.rb:945:in `connect'
/opt/alt/ruby26/lib64/ruby/2.6.0/net/http.rb:930:in `do_start'
/opt/alt/ruby26/lib64/ruby/2.6.0/net/http.rb:925:in `start'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb:657:in `start'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb:597:in `connection_for'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/vendored_persistent.rb:16:in `connection_for'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb:870:in `request'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/fetcher/downloader.rb:59:in `request'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/fetcher/downloader.rb:17:in `fetch'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/fetcher/compact_index.rb:131:in `call'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/compact_index_client/updater.rb:48:in `block in update'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/vendor/tmpdir/lib/tmpdir.rb:96:in `mktmpdir'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/compact_index_client/updater.rb:29:in `update'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/compact_index_client.rb:98:in `update'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/compact_index_client.rb:114:in `update_info'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/compact_index_client.rb:71:in `block in dependencies'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/fetcher/compact_index.rb:97:in `block (2 levels) in parallel_compact_index_client'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/worker.rb:62:in `apply_func'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/worker.rb:57:in `block in process_queue'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/worker.rb:54:in `loop'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/worker.rb:54:in `process_queue'
/h/myuser/rubyvenv/rubyApps/2.6/gems/bundler-2.2.8/lib/bundler/worker.rb:88:in `block (2 levels) in create_threads'

Environment

Bundler 2.2.8
Platforms ruby, x86_64-linux
Ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
Full Path /opt/alt/ruby26/bin/ruby
Config Dir /etc
RubyGems 3.0.3
Gem Home /h/myuser/rubyvenv/rubyApps/2.6
Gem Path /h/myuser/rubyvenv/rubyApps/2.6:/opt/alt/ruby26/lib64/ruby/gems/2.6.0
User Home /h/myuser
User Path /h/myuser/.gem/ruby/2.6.0
Bin Dir /h/myuser/rubyvenv/rubyApps/2.6/bin
OpenSSL
Compiled OpenSSL 1.0.2k 26 Jan 2017
Loaded OpenSSL 1.0.2k-fips 26 Jan 2017
Cert File /etc/pki/tls/cert.pem
Cert Dir /etc/pki/tls/certs
Tools
Git 2.28.0
RVM not installed
rbenv not installed
chruby not installed

Bundler Build Metadata

Built At 2021-02-02
Git SHA 4015e550dc
Released Version true

Gemfile

Gemfile

source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.2.0"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

Gemfile.lock

<No /h/myuser/rubyApps/slides/Gemfile.lock found>

--- TEMPLATE END ----------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions