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
{{ message }}
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
After switching to fullstaq ruby (on Ubuntu 18.04), I found that a deploy did not restart unicorn, despite reporting success in the chef log.
This may be because on the command line,sudo /srv/www/appname/shared/scripts/unicorn.service restart no longer works, instead giving:
/usr/bin/env: ‘ruby’: No such file or directory
which occurs because /etc/sudoers includes a secure_path declaration that overrides pam_env i.e. the contents of /etc/environment is ignored.
Fix
I do not recommend modifying /etc/sudoers. Even seeing a modification to a PAM config made me uneasy, since it's shipped in a finely tuned balance with other critical security and operational parameters.
in my own setup.rb. Perhaps something with a similar outcome can sneak into opsworks_ruby.
Not sure why Fullstaq skips invoking update-alternatives(1) after package install, which is the commonly accepted behaviour for debian-style systems. Perhaps for multiple versions support.
The text was updated successfully, but these errors were encountered:
After switching to fullstaq ruby (on Ubuntu 18.04), I found that a deploy did not restart unicorn, despite reporting success in the chef log.
This may be because on the command line,
sudo /srv/www/appname/shared/scripts/unicorn.service restart
no longer works, instead giving:which occurs because
/etc/sudoers
includes asecure_path
declaration that overrides pam_env i.e. the contents of/etc/environment
is ignored.Fix
I do not recommend modifying
/etc/sudoers
. Even seeing a modification to a PAM config made me uneasy, since it's shipped in a finely tuned balance with other critical security and operational parameters.I have instead included
in my own
setup.rb
. Perhaps something with a similar outcome can sneak into opsworks_ruby.Not sure why Fullstaq skips invoking
update-alternatives(1)
after package install, which is the commonly accepted behaviour for debian-style systems. Perhaps for multiple versions support.The text was updated successfully, but these errors were encountered: