nginx と unicornを連携させたいと思っています。
unicornのログを見ると、エラーは起きていないようなのですが、warningが出てしまっています。
[2020-01-03T13:31:40.455617 #3258] INFO -- : Refreshing Gem list /home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/bullet-6.0.2/lib/bullet.rb:41: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activesupport-6.0.1/lib/active_support/core_ext/module/delegation.rb:171: warning: The called method `delegate' is defined here /home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/tzinfo-1.2.5/lib/tzinfo/ruby_core_support.rb:142: warning: Using the last argument as keyword parameters is deprecated /home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/tzinfo-1.2.5/lib/tzinfo/ruby_core_support.rb:142: warning: Using the last argument as keyword parameters is deprecated /home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/ssl.rb:59: warning: The called method `initialize' is defined here /home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.1/lib/active_record/store.rb:106: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.1/lib/active_record/store.rb:109: warning: The called method `store_accessor' is defined here I, [2020-01-03T13:31:41.609578 #3258] INFO -- : unlinking existing socket=/var/www/rails/sample_app/tmp/sockets/.unicorn.sock I, [2020-01-03T13:31:41.609778 #3258] INFO -- : listening on addr=/var/www/rails/sample_app/tmp/sockets/.unicorn.sock fd=9 I, [2020-01-03T13:31:41.617722 #3258] INFO -- : master process ready I, [2020-01-03T13:31:41.626525 #3263] INFO -- : worker=1 ready I, [2020-01-03T13:31:41.627220 #3262] INFO -- : worker=0 ready
unicornがうまく動作していないのか、しているのか分からなくて悩んでいます。
unicornの設定ファイル # set lets $worker = 2 $timeout = 30 $app_dir = "/var/www/rails/hoge_app" $listen = File.expand_path 'tmp/sockets/.unicorn.sock', $app_dir $pid = File.expand_path 'tmp/pids/unicorn.pid', $app_dir $std_log = File.expand_path 'log/unicorn.log', $app_dir # set config worker_processes $worker working_directory $app_dir stderr_path $std_log stdout_path $std_log timeout $timeout listen $listen pid $pid # loading booster preload_app true # before starting processes before_fork do |server, worker| defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.disconnect! old_pid = "#{server.config[:pid]}.oldbin" if old_pid != server.pid begin Process.kill "QUIT", File.read(old_pid).to_i rescue Errno::ENOENT, Errno::ESRCH end end end # after finishing processes after_fork do |server, worker| defined?(ActiveRecord::Base) and ActiveRecord::Base.establish_connection end
また、unlinking existing socket=/var/www/rails/sample_app/tmp/sockets/.unicorn.sock
となっているのが、謎で、ファイルはpath上に存在するのは確認しているので、pathは合っているのですが。。。
隠しファイルになっているから読み取れないのでしょうか。
他の記事の内容を丸パクリしているので、権限関係は一切触れていません。
原因が分かる方、いらっしゃいませんか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/04 07:46
2020/01/04 09:07
2020/01/04 11:02