Вот логи error.
2015/10/02 14:57:51 [emerg] 26545#0: no path in the unix domain socket in upstream "unix:" in /etc/nginx/conf.d/lesson-web.conf:2
2015/10/02 14:57:55 [emerg] 26553#0: no path in the unix domain socket in upstream "unix:" in /etc/nginx/conf.d/lesson-web.conf:2
когда запускаю перезапуск nginx выдает:
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
смотрю информацию:
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Fri 2015-10-02 14:49:32 MSK; 12s ago
Process: 22989 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 26536 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Main PID: 22992 (code=exited, status=0/SUCCESS)
Oct 02 14:49:32 one systemd[1]: Starting The nginx HTTP and reverse proxy server...
Oct 02 14:49:32 one nginx[26536]: nginx: [emerg] no path in the unix domain socket in upstream "unix:" in /etc/nginx/conf.d/lesson-web.conf:2
Oct 02 14:49:32 one nginx[26536]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 02 14:49:32 one systemd[1]: nginx.service: control process exited, code=exited status=1
Oct 02 14:49:32 one systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Oct 02 14:49:32 one systemd[1]: Unit nginx.service entered failed state.
I, [2015-10-02T13:54:52.229561 #26133] INFO -- : Refreshing Gem list
E, [2015-10-02T13:54:53.450491 #26133] ERROR -- : adding listener failed addr=/home/petrov/lessonweb/tmp/sockets/unicorn.sock (in use)
E, [2015-10-02T13:54:53.450552 #26133] ERROR -- : retrying in 0.5 seconds (4 tries left)
E, [2015-10-02T13:54:53.951118 #26133] ERROR -- : adding listener failed addr=/home/petrov/lessonweb/tmp/sockets/unicorn.sock (in use)
E, [2015-10-02T13:54:53.951301 #26133] ERROR -- : retrying in 0.5 seconds (3 tries left)
E, [2015-10-02T13:54:54.451970 #26133] ERROR -- : adding listener failed addr=/home/petrov/lessonweb/tmp/sockets/unicorn.sock (in use)
E, [2015-10-02T13:54:54.452135 #26133] ERROR -- : retrying in 0.5 seconds (2 tries left)
E, [2015-10-02T13:54:54.952592 #26133] ERROR -- : adding listener failed addr=/home/petrov/lessonweb/tmp/sockets/unicorn.sock (in use)
E, [2015-10-02T13:54:54.952726 #26133] ERROR -- : retrying in 0.5 seconds (1 tries left)
E, [2015-10-02T13:54:55.453409 #26133] ERROR -- : adding listener failed addr=/home/petrov/lessonweb/tmp/sockets/unicorn.sock (in use)
E, [2015-10-02T13:54:55.453552 #26133] ERROR -- : retrying in 0.5 seconds (0 tries left)
E, [2015-10-02T13:54:55.954006 #26133] ERROR -- : adding listener failed addr=/home/petrov/lessonweb/tmp/sockets/unicorn.sock (in use)
/usr/local/rvm/gems/ruby-2.2.2/gems/unicorn-4.9.0/lib/unicorn/socket_helper.rb:158:in `initialize': Address already in use - connect(2) for /home/petrov/lessonweb/tmp/sockets/unicorn.sock (Errno::EADDRINUSE)
from /usr/local/rvm/gems/ruby-2.2.2/gems/unicorn-4.9.0/lib/unicorn/socket_helper.rb:158:in `new'
from /usr/local/rvm/gems/ruby-2.2.2/gems/unicorn-4.9.0/lib/unicorn/socket_helper.rb:158:in `bind_listen'
from /usr/local/rvm/gems/ruby-2.2.2/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:242:in `listen'
from /usr/local/rvm/gems/ruby-2.2.2/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:813:in `block in bind_new_listeners!'
from /usr/local/rvm/gems/ruby-2.2.2/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:813:in `each'
from /usr/local/rvm/gems/ruby-2.2.2/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:813:in `bind_new_listeners!'
from /usr/local/rvm/gems/ruby-2.2.2/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:138:in `start'
from /usr/local/rvm/gems/ruby-2.2.2/gems/unicorn-4.9.0/bin/unicorn_rails:209:in `'
from /usr/local/rvm/gems/ruby-2.2.2/bin/unicorn_rails:23:in `load'
from /usr/local/rvm/gems/ruby-2.2.2/bin/unicorn_rails:23:in `'
from /usr/local/rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `'
вот что выдает после этой команды.
Может надо поменять значение в файлу unicorn.pid?
сейчас там написано: 26133