I get an error after deploying my app to Heroku. Locally it works fine. I'm using Sinatra and the Wordnik API.
Here's the code:
require 'rubygems'
require 'sinatra'
require 'haml'
require 'json'
require 'wordnik'
Wordnik.configure do |config|
config.api_key = '6bdddbf6a24e7dbdf400407f4670ff071b7d92089d30451b1'
end
get '/word' do
resp = Wordnik.words.get_random_word(:hasDictionaryDef => 'true', :maxCorpusCount => 20, :minLength => 10)
result = JSON.parse(resp.to_json)
word = result["word"]
return word.to_s
end
heroku logs output:
2011-12-14T20:21:17+00:00 app[web.1]: c:0003 p:0127 s:0007 b:0007 l:0003c8 d:0025e0 EVAL /usr/ruby1.9.2/bin/thin:19
2011-12-14T20:21:17+00:00 app[web.1]: c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :load
2011-12-14T20:21:17+00:00 app[web.1]: c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
2011-12-14T20:21:17+00:00 app[web.1]: ---------------------------
2011-12-14T20:21:17+00:00 app[web.1]: c:0001 p:0000 s:0002 b:0002 l:0003c8 d:0003c8 TOP
2011-12-14T20:21:17+00:00 app[web.1]: -- Ruby level backtrace information ----------------------------------------
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/thin:19:in `<main>'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/thin:19:in `load'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:80:in `start'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/server.rb:156:in `start'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/backends/base.rb:57:in `start'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:42:in `receive_data'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:57:in `process'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:74:in `pre_process'
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:74:in `catch'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:134:in `call'
2011-12-14T20:21:17+00:00 app[web.1]: /home/heroku_rack/lib/date_header.rb:14:in `call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/urlmap.rb:46:in `call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/urlmap.rb:52:in `block in call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:1403:in `synchronize'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `block in call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/methodoverride.rb:24:in `call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/commonlogger.rb:20:in `call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `catch'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `block in invoke'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `route!'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `each'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in `block in route!'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `process_route'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `catch'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in `route_eval'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:1212:in `block in compile!'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/wordnik-4.06.12/lib/wordnik/resource_modules/words.rb:291:in `get_random_word'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/multi.rb:21:in `perform'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/easy.rb:362:in `call'
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/easy.rb:397:in `get_info_string'
2011-12-14T20:21:17+00:00 app[web.1]:
2011-12-14T20:21:17+00:00 app[web.1]: -- C level backtrace information -------------------------------------------
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby(rb_vm_bugreport+0x4f) [0x4fc29f]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x5324ae]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby(rb_bug+0xb1) [0x532611]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x49dcff]
2011-12-14T20:21:17+00:00 app[web.1]: /lib/libpthread.so.0 [0x7fa0d5aa2a80]
2011-12-14T20:21:17+00:00 app[web.1]: /lib/libc.so.6(strlen+0x30) [0x7fa0d4ef40b0]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby(rb_str_new_cstr+0xe) [0x4ac82e]
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/ext/typhoeus/native.so [0x7fa0d19591f2]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f4fc3]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4ecc33]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f2865]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby(rb_vm_invoke_proc+0x309) [0x4f4a19]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x41dfdb]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f4fc3]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4ecc33]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f2865]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f569e]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby(rb_funcall+0x23d) [0x4ea8ed]
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/ext/typhoeus/native.so [0x7fa0d1958255]
2011-12-14T20:21:17+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/ext/typhoeus/native.so [0x7fa0d1958713]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f4fc3]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4ecc33]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f2865]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby(rb_vm_invoke_proc+0x309) [0x4f4a19]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f5427]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby(rb_method_call+0x16f) [0x41e51f]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f4fc3]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4ecc33]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f2865]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby(rb_vm_invoke_proc+0x309) [0x4f4a19]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x41dfdb]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f4fc3]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4ecc33]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f2865]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f67d9]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f4fc3]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4ecc33]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f2865]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4e881a]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f4fc3]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4ecc33]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4e881a]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/rubyeventmachine.so(_ZN14EventMachine_t13_RunEpollOnceEv+0x359) [0x7fa0d34fe379]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/rubyeventmachine.so(_ZN14EventMachine_t3RunEv+0x4c) [0x7fa0d350171c]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x533c2f]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4ecc33]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby [0x4f2865]
2011-12-14T20:21:17+00:00 app[web.1]: /usr/ruby1.9.2/bin/ruby(ruby_run_node+0x1e) [0x41ca7e]
2011-12-14T20:21:17+00:00 app[web.1]: [NOTE]
2011-12-14T20:21:17+00:00 app[web.1]: You may have encountered a bug in the Ruby interpreter or extension libraries.
2011-12-14T20:21:17+00:00 heroku[router]: Error H13 (Connection closed without response) -> GET radiant-planet-1594.heroku.com/word dyno=web.1 queue= wait= service= status=503 bytes=
2011-12-14T20:21:17+00:00 heroku[web.1]: Process exited
2011-12-14T20:21:18+00:00 heroku[web.1]: State changed from up to crashed
Let me know if you need any more info.
Related
I have a Rails API that has Redis as an adapter of ActionCable.
I only use ActionCable for a simple chat as a part of the whole system.
Everything works perfect, I can subscribe, send messages, receive messages. The problem comes after 5 minutes the server has started, I get an ECONNRESET error in redis gem: Connection lost (ECONNRESET) (Redis::ConnectionError)
It's been 3 days since i've started trying to solve this issue, i've tried changing redis-server configuration, i've tried changing the way redis initializes on the rails app, i've tried changing the cable.yml configuration, i've tried changing actioncable config and nothing seems to solve this issue, i'm running out of ideas.
I also can't rescue this exception, it just breaks the whole rails app, thats another thing I couldn't solve that's so frustrating.
Btw I am testing in development environment.
This is my cable config:
production:
adapter: redis
url: redis://192.168.1.6:6379
development:
adapter: redis
url: redis://192.168.1.5:6379
channel_prefix: ChatChannel
timeout: 30
max_conns: 8000
max_persistent_conns: 8000
test:
adapter: async
This is my redis initializer:
require 'redis'
## Added rescue condition if Redis connection is failed
begin
puts "CREATING NEW INSTANCE OF REDIS"
$redis = Redis.new(
:host => "192.168.1.5",
:port => 6379,
:reconnect_attempts => 10,
:reconnect_delay => 1.5,
:reconnect_delay_max => 10.0
)
$redis.ping
rescue Errno::ECONNRESET => e
puts "THERE WAS AN ERROR"
puts e
end
This is the output of the rails app:
web_1 | Exiting
web_1 | #<Thread:0x0000559ee244b1d8 /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:151 run> terminated with exception (report_on_exception is true):
web_1 | /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:275:in `rescue in io': Connection lost (ECONNRESET) (Redis::ConnectionError)
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:267:in `io'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:279:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:147:in `block (3 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `block (2 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:248:in `block (2 levels) in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:389:in `ensure_connected'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:238:in `block in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:325:in `logging'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:237:in `process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:145:in `block in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:300:in `with_socket_timeout'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:144:in `call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:44:in `subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:14:in `subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:3507:in `_subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2326:in `block in subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2325:in `subscribe'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:84:in `block in listen'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:313:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:75:in `block in with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:74:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:81:in `without_reconnect'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:81:in `listen'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:155:in `block in ensure_listener_running'
web_1 | /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:63:in `block in _read_from_socket': Connection reset by peer (Errno::ECONNRESET)
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:52:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:52:in `_read_from_socket'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:45:in `gets'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:378:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:280:in `block in read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:268:in `io'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:279:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:147:in `block (3 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `block (2 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:248:in `block (2 levels) in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:389:in `ensure_connected'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:238:in `block in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:325:in `logging'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:237:in `process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:145:in `block in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:300:in `with_socket_timeout'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:144:in `call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:44:in `subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:14:in `subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:3507:in `_subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2326:in `block in subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2325:in `subscribe'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:84:in `block in listen'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:313:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:75:in `block in with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:74:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:81:in `without_reconnect'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:81:in `listen'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:155:in `block in ensure_listener_running'
web_1 | /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:275:in `rescue in io': Connection lost (ECONNRESET) (Redis::ConnectionError)
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:267:in `io'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:279:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:147:in `block (3 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `block (2 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:248:in `block (2 levels) in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:389:in `ensure_connected'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:238:in `block in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:325:in `logging'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:237:in `process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:145:in `block in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:300:in `with_socket_timeout'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:144:in `call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:44:in `subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:14:in `subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:3507:in `_subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2326:in `block in subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2325:in `subscribe'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:84:in `block in listen'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:313:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:75:in `block in with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:74:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:81:in `without_reconnect'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:81:in `listen'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:155:in `block in ensure_listener_running'
web_1 | /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:63:in `block in _read_from_socket': Connection reset by peer (Errno::ECONNRESET)
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:52:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:52:in `_read_from_socket'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:45:in `gets'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/connection/ruby.rb:378:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:280:in `block in read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:268:in `io'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:279:in `read'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:147:in `block (3 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:146:in `block (2 levels) in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:248:in `block (2 levels) in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:389:in `ensure_connected'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:238:in `block in process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:325:in `logging'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:237:in `process'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:145:in `block in call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:300:in `with_socket_timeout'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:144:in `call_loop'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:44:in `subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/subscribe.rb:14:in `subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:3507:in `_subscription'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2326:in `block in subscribe'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:2325:in `subscribe'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:84:in `block in listen'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis/client.rb:313:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:75:in `block in with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `block in synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
web_1 | from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:69:in `synchronize'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:74:in `with_reconnect'
web_1 | from /usr/local/bundle/gems/redis-4.2.5/lib/redis.rb:81:in `without_reconnect'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:81:in `listen'
web_1 | from /usr/local/bundle/gems/actioncable-6.0.3.1/lib/action_cable/subscription_adapter/redis.rb:155:in `block in ensure_listener_running'
nulimit-web_web_1 exited with code 1
This is the output of the redis-server:
1:M 08 Dec 2020 20:03:00.438 - Client closed connection
Even After trying sudo gem install cocoapods -n /usr/local/bin
Only single Gem is installed and after using command pod --version The output is following :
Traceback (most recent call last):
37: from /usr/local/bin/pod:23:in <main>' 36: from /usr/local/bin/pod:23:in load'
35: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/bin/pod:36:in <top (required)>' 34: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
33: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 32: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods.rb:17:in <top (required)>'
31: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods.rb:77:in <module:Pod>' 30: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
29: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 28: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/core_overrides.rb:1:in <top (required)>'
27: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 26: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
25: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/sources_manager.rb:7:in <top (required)>' 24: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/sources_manager.rb:185:in module:Pod'
23: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 22: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
21: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0/lib/cocoapods-core/trunk_source.rb:1:in <top (required)>' 20: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0/lib/cocoapods-core/trunk_source.rb:2:in module:Pod'
19: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 18: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
17: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0/lib/cocoapods-core/cdn_source.rb:3:in <top (required)>' 16: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
15: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 14: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.7/lib/concurrent-ruby/concurrent.rb:7:in <top (required)>'
13: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 12: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
11: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.7/lib/concurrent-ruby/concurrent/executors.rb:20:in <top (required)>' 10: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
9: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 8: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.7/lib/concurrent-ruby/concurrent/executor/timer_set.rb:1:in <top (required)>'
7: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 6: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
5: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.7/lib/concurrent-ruby/concurrent/scheduled_task.rb:4:in <top (required)>' 4: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
3: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' 2: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.7/lib/concurrent-ruby/concurrent/ivar.rb:3:in <top (required)>'
1: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require': cannot load such file -- concurrent/collection/copy_on_write_observer_set (LoadError)
Traceback (most recent call last):
35: from /usr/local/bin/pod:23:in `<main>'
34: from /usr/local/bin/pod:23:in `load'
33: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/bin/pod:36:in `<top (required)>'
32: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
31: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
30: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods.rb:8:in `<top (required)>'
29: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
28: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
27: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/core_ext/string/inflections.rb:1:in `<top (required)>'
26: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
25: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
24: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/inflector/methods.rb:3:in `<top (required)>'
23: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
22: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
21: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/inflections.rb:1:in `<top (required)>'
20: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
19: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
18: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/inflector/inflections.rb:3:in `<top (required)>'
17: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
16: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
15: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/i18n.rb:5:in `<top (required)>'
14: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
13: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
12: from /Library/Ruby/Gems/2.6.0/gems/i18n-0.9.5/lib/i18n.rb:1:in `<top (required)>'
11: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
10: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
9: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/map.rb:3:in `<top (required)>'
8: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
7: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
6: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization.rb:5:in `<top (required)>'
5: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:30:in `load_native_extensions'
4: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:30:in `each'
3: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:30:in `block in load_native_extensions'
2: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:62:in `try_load_c_extension'
1: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- concurrent/concurrent_ruby_ext (LoadError)
46: from /usr/local/bin/pod:23:in `<main>'
45: from /usr/local/bin/pod:23:in `load'
44: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/bin/pod:36:in `<top (required)>'
43: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
42: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
41: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods.rb:8:in `<top (required)>'
40: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
39: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
38: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/core_ext/string/inflections.rb:1:in `<top (required)>'
37: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
36: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
35: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/inflector/methods.rb:3:in `<top (required)>'
34: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
33: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
32: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/inflections.rb:1:in `<top (required)>'
31: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
30: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
29: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/inflector/inflections.rb:3:in `<top (required)>'
28: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
27: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
26: from /Library/Ruby/Gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/i18n.rb:5:in `<top (required)>'
25: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
24: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
23: from /Library/Ruby/Gems/2.6.0/gems/i18n-0.9.5/lib/i18n.rb:1:in `<top (required)>'
22: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
21: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
20: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/map.rb:3:in `<top (required)>'
19: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
18: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
17: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization.rb:5:in `<top (required)>'
16: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:30:in `load_native_extensions'
15: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:30:in `each'
14: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:30:in `block in load_native_extensions'
13: from /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:62:in `try_load_c_extension'
12: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:156:in `require'
11: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:161:in `rescue in require'
10: from /Library/Ruby/Site/2.6.0/rubygems.rb:204:in `try_activate'
9: from /Library/Ruby/Site/2.6.0/rubygems/specification.rb:996:in `find_by_path'
8: from /Library/Ruby/Site/2.6.0/rubygems/specification.rb:996:in `find'
7: from /Library/Ruby/Site/2.6.0/rubygems/specification.rb:996:in `each'
6: from /Library/Ruby/Site/2.6.0/rubygems/specification.rb:997:in `block in find_by_path'
5: from /Library/Ruby/Site/2.6.0/rubygems/bundler_version_finder.rb:39:in `compatible?'
4: from /Library/Ruby/Site/2.6.0/rubygems/bundler_version_finder.rb:7:in `bundler_version'
3: from /Library/Ruby/Site/2.6.0/rubygems/bundler_version_finder.rb:22:in `bundler_version_with_reason'
2: from /Library/Ruby/Site/2.6.0/rubygems/bundler_version_finder.rb:73:in `lockfile_version'
1: from /Library/Ruby/Site/2.6.0/rubygems/bundler_version_finder.rb:85:in `lockfile_contents'
/Library/Ruby/Site/2.6.0/rubygems/bundler_version_finder.rb:85:in `pwd': Operation not permitted - getcwd (Errno::EPERM)
bundle install is giving Bundler::Dsl::DSLError error
bundle install
/usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/shared_helpers.rb:120:in `rescue in filesystem_access': Bundler::Dsl::DSLError
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/shared_helpers.rb:118:in `filesystem_access'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler.rb:430:in `read_file'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/dsl.rb:46:in `eval_gemfile'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/plugin.rb:60:in `gemfile_install'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli/install.rb:60:in `run'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli.rb:235:in `block in install'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/settings.rb:143:in `temporary'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli.rb:234:in `install'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli.rb:27:in `dispatch'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/cli.rb:18:in `start'
from /usr/share/rvm/rubies/ruby-2.2.10/bin/bundle:30:in `block in <main>'
from /usr/share/rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler/friendly_errors.rb:124:in `with_friendly_errors'
from /usr/share/rvm/rubies/ruby-2.2.10/bin/bundle:22:in `<main>'
from /home/kiprosh/.rvm/gems/ruby-2.2.10/bin/ruby_executable_hooks:24:in `eval'
from /home/kiprosh/.rvm/gems/ruby-2.2.10/bin/ruby_executable_hooks:24:in `<main>'
I am using Windows 10 machine with Ubuntu 18.04 LTS app
Any idea how to fix?
I am using Ubuntu 18.04 with WSL on windows. Sometimes I open the application directory with an editor on Windows. When doing so, the permissions are changing on the ubuntu side.
Traceback (most recent call last):
21: from /home/omfaer/.rbenv/versions/2.5.3/bin/bundle:23:in `<main>'
20: from /home/omfaer/.rbenv/versions/2.5.3/bin/bundle:23:in `load'
19: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
18: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
17: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
16: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
15: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
14: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch'
13: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
12: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
11: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
10: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli.rb:255:in `install'
9: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/settings.rb:124:in `temporary'
8: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli.rb:256:in `block in install'
7: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/cli/install.rb:61:in `run'
6: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/plugin.rb:76:in `gemfile_install'
5: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/settings.rb:124:in `temporary'
4: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/plugin.rb:81:in `block in gemfile_install'
3: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/dsl.rb:46:in `eval_gemfile'
2: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler.rb:534:in `read_file'
1: from /home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/shared_helpers.rb:102:in `filesystem_access'
/home/omfaer/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/shared_helpers.rb:105:in `rescue in filesystem_access': Bundler::Dsl::DSLError
The permissions of the Gemfile file have changed.
-rw-r--r-- 1 omfaer omfaer 691 May 28 2019 .gitignore
---------- 1 omfaer omfaer 1583 Feb 28 11:47 Gemfile
-rw-r--r-- 1 omfaer omfaer 185 May 28 2019 README.md
-rw-r--r-- 1 omfaer omfaer 227 May 28 2019 Rakefile
I fixed the permissions and the problem is resolved.
$ chmod 644 Gemfile
I hope this helps you.
When I run rails s, it throws me cannot load such file -- bindex error. I tried gem install bindex, it throws me the same error, tried bundle update - the same error, tried gem update - the same error. I have no idea how to fix this.
macos mojave 10.14.5
rails 6.0.o.rc1
ruby 2.6.1
result of rails s
app_7 ⮀ ⭠ master± ⮀ rails s
=> Booting Puma
=> Rails 6.0.0.rc1 application starting in development
=> Run `rails server --help` for more startup options
Exiting
Traceback (most recent call last):
bin/rails: Bootsnap::LoadPathCache::FallbackScan
77: from bin/rails:3:in `<main>'
76: from bin/rails:3:in `load'
75: from /Users/sujize/app_7/bin/spring:15:in `<top (required)>'
74: from /Users/sujize/app_7/bin/spring:15:in `require'
73: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
72: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
71: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
70: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
69: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
68: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
67: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
66: from /Users/sujize/app_7/bin/rails:9:in `<top (required)>'
65: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:302:in `require'
64: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:268:in `load_dependency'
63: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:302:in `block in require'
62: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
61: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
60: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
59: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
58: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
57: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/commands.rb:18:in `<main>'
56: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/command.rb:46:in `invoke'
55: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/command/base.rb:65:in `perform'
54: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
53: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
52: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
51: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/commands/server/server_command.rb:138:in `perform'
50: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/commands/server/server_command.rb:138:in `tap'
49: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/commands/server/server_command.rb:147:in `block in perform'
48: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/commands/server/server_command.rb:37:in `start'
47: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'
46: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app'
45: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/server.rb:219:in `app'
44: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config'
43: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file'
42: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string'
41: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval'
40: from config.ru:in `<main>'
39: from config.ru:in `new'
38: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize'
37: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval'
36: from config.ru:3:in `block in <main>'
35: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative'
34: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:302:in `require'
33: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:268:in `load_dependency'
32: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:302:in `block in require'
31: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/zeitwerk-2.1.8/lib/zeitwerk/kernel.rb:23:in `require'
30: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
29: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
28: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
27: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
26: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
25: from /Users/sujize/app_7/config/environment.rb:5:in `<main>'
24: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/application.rb:362:in `initialize!'
23: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/initializable.rb:60:in `run_initializers'
22: from /Users/sujize/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
21: from /Users/sujize/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
20: from /Users/sujize/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
19: from /Users/sujize/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:347:in `call'
18: from /Users/sujize/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:347:in `each'
17: from /Users/sujize/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
16: from /Users/sujize/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
15: from /Users/sujize/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
14: from /Users/sujize/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
13: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/initializable.rb:61:in `block in run_initializers'
12: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/initializable.rb:32:in `run'
11: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/railties-6.0.0.rc1/lib/rails/initializable.rb:32:in `instance_exec'
10: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/web-console-4.0.0/lib/web_console/railtie.rb:11:in `block in <class:Railtie>'
9: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:302:in `require'
8: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:268:in `load_dependency'
7: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:302:in `block in require'
6: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/zeitwerk-2.1.8/lib/zeitwerk/kernel.rb:23:in `require'
5: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:26:in `require'
4: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:40:in `rescue in require'
3: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:89:in `register'
1: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require': **cannot load such file -- bindex (LoadError)**
The error:
1: from /Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/Users/sujize/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require': **cannot load such file -- bindex (LoadError)**
Here is my repo on Github