ruby - Unicorn error adding listener -
i having issues getting unicorn server , running. try run unicorn using:
bundle exec unicorn -c /var/www/docninja/unicorn.rb -e development -d -p 8080
i following error:
i, [2015-04-14t23:54:52.117609 #123] info -- : listening on addr=/var/www/docninja/tmp/sockets/unicorn.docninja.sock fd=10 i, [2015-04-14t23:54:52.118624 #123] info -- : listening on addr=0.0.0.0:8080 fd=11 i, [2015-04-14t23:54:52.119553 #123] info -- : worker=0 spawning... i, [2015-04-14t23:54:52.127642 #123] info -- : master process ready i, [2015-04-14t23:54:52.129109 #126] info -- : worker=0 spawned pid=126 i, [2015-04-14t23:54:52.129559 #126] info -- : refreshing gem list f, [2015-04-14t23:59:07.536943 #130] fatal -- : error adding listener addr=/var/www/docninja/tmp/sockets/unicorn.docninja.sock /usr/local/rvm/gems/ruby-2.1.2/gems/unicorn-4.8.3/lib/unicorn/socket_helper.rb:152:in `bind_listen': socket=/var/www/docninja/tmp/sockets/unicorn.docninja.sock specified not socket! (argument$ /usr/local/rvm/gems/ruby-2.1.2/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:242:in `listen' /usr/local/rvm/gems/ruby-2.1.2/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:809:in `block in bind_new_listeners!' /usr/local/rvm/gems/ruby-2.1.2/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:809:in `each' /usr/local/rvm/gems/ruby-2.1.2/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:809:in `bind_new_listeners!' /usr/local/rvm/gems/ruby-2.1.2/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:138:in `start' /usr/local/rvm/gems/ruby-2.1.2/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>' /usr/local/rvm/gems/ruby-2.1.2/bin/unicorn:23:in `load' /usr/local/rvm/gems/ruby-2.1.2/bin/unicorn:23:in `<main>' /usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval' /usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
here unicorn.rb file located in main app directory (/var/www/docninja):
app_dir = "/var/www/docninja" # set working application directory working_directory app_dir # unicorn pid file location pid "#{app_dir}/tmp/pids/unicorn.pid" # path logs stderr_path "#{app_dir}/log/unicorn.stderr.log" stdout_path "#{app_dir}/log/unicorn.stdout.log" # path socket file nginx listen "#{app_dir}/tmp/sockets/unicorn.docninja.sock", :backlog => 64 worker_processes 1 timeout 30
all paths here seem correct because finds sockets directory , logs should be; however, not able add listener on that?
i'm not sure if helps setting in docker container using dockerfile.
would appreciate help!
Comments
Post a Comment