我要接管这个旧版Rails应用程序,并且在我打开任何页面后启动服务器并运行之后,redis出现分段错误。
它还在连接,断开连接,然后在服务器启动时连接到Redis。
Connecting to database specified by database.yml
Resque connected to Redis
I18n connected to Redis
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in PlatformIntegrationConcern instead. (called from include at app/models/platform.rb:6)
I, [2019-01-10T15:46:17.965896 #13228] INFO -- : listening on addr=/var/folders/v6/_jsrt5g95_s8ryb2q_q75wmc0000gn/T/unicorn-20190110-13226-nce95l.sock fd=16
Disconnected from ActiveRecord
Resque disconnected from Redis
I, [2019-01-10T15:46:18.973457 #13228] INFO -- : master process ready
Connected to ActiveRecord
I18n connected to Redis
Resque connected to Redis
I18n connected to Redis
I, [2019-01-10T15:46:18.985243 #13231] INFO -- : worker=0 ready
.rvm/gems/ruby-2.1.6@crowdengine/gems/redis-3.1.0/lib/redis/connection/ruby.rb:152: [BUG] Segmentation fault at 0x0000010224da3a
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-darwin18.0]
发生这种情况后,独角兽会得到一个(signal 6)
E, [2019-01-10T15:46:23.032663 #13228] ERROR -- : reaped #<Process::Status: pid 13231 SIGABRT (signal 6)> worker=0
redis.yml
development:
login:
password:
host: localhost
port: 6379
0_redis.rb
conf = YAML::load(File.open(File.join(Rails.root, 'config/server/redis.yml')))[Rails.env]
$redis_config = if ENV['REDISTOGO_URL'].present?
{ url: ENV['REDISTOGO_URL'] }
else
{ host: conf['host'], port: conf['port'], login: conf['login'],
password: conf['password']}
end
任何帮助将不胜感激。让我知道是否需要更多信息。