tableflip / guvnor

A node process manager that isn't spanners all the way down
MIT License
430 stars 37 forks source link

Can't stop process from guv-web :: Not authorised warning #79

Open JohnKimDev opened 8 years ago

JohnKimDev commented 8 years ago

When I try to to stop by pressing "Stop" button in the web gui, I can this error message in red box saying "STOP ERROR xxxx on xxxxx has failed to stop - Not authorised"

I am thinking it might be something to do with the process is running as root:root but I am not sure. And even if that is the problem, I am not sure how I can change it.

BTW, found the minor typo bug: in the error message "Not authorised" should be "Not authorized"

Thanks

achingbrain commented 8 years ago

If your process runs as root and you're not logged in to guv-web as root, you won't be able to stop the process. You can only interact with processes that you can access via the Unix permissions model.

To fix this, either:

  1. Change which user you connect to your monitored server as to connect as root (don't forget to use root's secret and not your users' secret)
  2. Use guv start's -u flag as root to start the process as a different user
  3. Run guv start as the user you want the process to run as

Re. Authorised vs Authorized - the s is English, the z is American