You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to find a way to stop and start unicorn from the cli on the deployed rails-app servers.
Unfortunately, each time I do so, nginx loose access to the socket (/srv/www//shared/sockets/unicorn.sock).
Apparently SeLinux is preventing nginx to access the socket. But running restorecon doesn't fix the issue. Each time I have to remove the "sockets" directory and run once again the deploy cookbook.
ls -Z display the following result :
Before Stop Unicorn : srwxrwxrwx. deploy nginx system_u:object_r:httpd_var_run_t:s0 unicorn.sock
After Stop and Start : srwxrwxrwx. deploy nginx unconfined_u:object_r:httpd_var_run_t:s0 unicorn.sock
After Restorecon -rv : srwxrwxrwx. deploy nginx unconfined_u:object_r:httpd_var_run_t:s0 unicorn.sock
After Restorecon -F -rv : srwxrwxrwx. deploy nginx system_u:object_r:httpd_var_run_t:s0 unicorn.sock
To start/stop unicorn I use the following command : "cd /srv/www//current && ../../shared/scripts/unicorn clean-restart" as user deploy.
Is there a proper way to stop and then restart unicorn that I'm missing ?
Thanks for your feedback.
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to find a way to stop and start unicorn from the cli on the deployed rails-app servers.
Unfortunately, each time I do so, nginx loose access to the socket (/srv/www//shared/sockets/unicorn.sock).
Apparently SeLinux is preventing nginx to access the socket. But running restorecon doesn't fix the issue. Each time I have to remove the "sockets" directory and run once again the deploy cookbook.
ls -Z display the following result :
Before Stop Unicorn : srwxrwxrwx. deploy nginx system_u:object_r:httpd_var_run_t:s0 unicorn.sock
After Stop and Start : srwxrwxrwx. deploy nginx unconfined_u:object_r:httpd_var_run_t:s0 unicorn.sock
After Restorecon -rv : srwxrwxrwx. deploy nginx unconfined_u:object_r:httpd_var_run_t:s0 unicorn.sock
After Restorecon -F -rv : srwxrwxrwx. deploy nginx system_u:object_r:httpd_var_run_t:s0 unicorn.sock
To start/stop unicorn I use the following command : "cd /srv/www//current && ../../shared/scripts/unicorn clean-restart" as user deploy.
Is there a proper way to stop and then restart unicorn that I'm missing ?
Thanks for your feedback.
The text was updated successfully, but these errors were encountered: