phpmon: Cannot determine services status

Hi!

I just installed PHPMon and this error message appears. I checked the installation of Brew, Valet, PHP etc and also tested the JSON (see screenshot) as well as Brew’s working_dir.

PHP Monitor usually queries brew using the following command to test if the services can be retrieved: sudo brew services info nginx --json.

PHP Monitor could not interpret this response.

To Reproduce Juste start the app from Alfred

Screenshots Capture d’écran 2022-03-09 à 11 13 57

Capture d’écran 2022-03-09 à 11 16 11

Required information

  • Did you consult the FAQ in the README? yes
  • Did you try “Fix My Valet”? no
  • OS: macOS Monterey 12.2.1
  • PHP Monitor version: 5.1

Thanks in advance!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 32 (15 by maintainers)

Commits related to this issue

Most upvoted comments

@niladam

As you noted, PHP Monitor cannot invoke brew and valet commands if the password prompts are present. It is for this reason that I require you to run valet trust.

Make sure that you can run sudo brew and sudo valet commands in your terminal without password entry, and this should work. I recommend running:

valet trust --off
valet trust

and trying again. If you’re still seeing password prompts, something’s wrong (and maybe with Valet?). In that case, please let me know the following information:

  • The output of: cat /private/etc/sudoers.d/valet
  • The output of cat /private/etc/sudoers.d/brew
  • If you are on an M1 Mac or an Intel Mac

Maybe with that info I can help you further! Thanks! (Please tag me in future responses as well, thanks!)