0

Periodically in production we get these ruby processes that hang up. I just discovered

passenger-status  --show=requests

Which gives me exactly what I want. I want to write some code to build out a super admin panel that will let me click on processes and see what the request is, however, when I run this command I get

ERROR: You are not authorized to query the status for this Phusion Passenger instance. Please try again with 'sudo'

Is there a way to authorize my user (deploy) to run this, rather than force sudo?

user1130176
  • 173
  • 1
  • 10

1 Answers1

0

Apparently passenger's admin API is over UNIX sockets. You would need to become a user who can access that socket file.

root obviously can do it. Maybe you can change the socket to be readable by your user. Regarding security, the documented example requests JSON does not appear to have sensitive data, (although you should evaluate this yourself).

John Mahowald
  • 32,050
  • 2
  • 19
  • 34