Closed tauseefsshah closed 4 months ago
Hey, Sonama is not officially supported at the moment and due to the lack of testing capabilities, we can't do support for it.
We'll work on compatibility soon and make sure everything will be ready before Sonoma rolls out to everyone.
I guess I messed that up, the new one is Sequoia š it's early here
The latest version of Herd installs a privileged helper tool to manage services that require root access.
Could you check if you have the following file on your system?
/Library/PrivilegedHelperTools/de.beyondco.herd.helper
Do you get a prompt mentioning the helper tool?
Hello @mpociot
Yes I do get a prompt mentioning the helper tool.
The /Library/PrivilegedHelperTools/de.beyondco.herd.helper
file also exists.
@tauseefsshah Could you please quit Herd and then run it like this from the command line:
/Applications/Herd.app/Contents/MacOS/Herd --enable-logfile
This writes a Herd_Debug.log
file to ~/Library/Application Support/Herd/Log
. Please share the contents of that file
@mpociot Here's the content of the Herd_Debug.log
Logging setup complete.
Helper tool is installed and running. Version: 1.0.40 (1.0.40)
Helper tool is installed and running. Version: 1.0.40 (1.0.40)
Starting initialize method
Copying Nginx config
Copying base Nginx config
Copying DnsMasq config
Copying Fpm config
Copying debug Fpm config
Copying Valet config
Copying PHP config for version 8.3
Installing Nvm
NVM is already installed.
Ensuring helper tool is installed
Helper tool is installed and running. Version: 1.0.40 (1.0.40)
Found existing PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/nginx.pid
Found existing PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/dnsmasq.pid
Wrote PID (3860 to /Users/tauseefsshah/Library/Application Support/Herd/.pid/fpm-8_3.pid
Successfully killed process with pid 1751: AllowedCommandReply(terminationStatus: 0, standardOutput: Optional(""), standardError: Optional(""))
Delete PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/nginx.pid
Successfully killed process with pid 1752: AllowedCommandReply(terminationStatus: 0, standardOutput: Optional(""), standardError: Optional(""))
Delete PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/dnsmasq.pid
Wrote PID (3863 to /Users/tauseefsshah/Library/Application Support/Herd/.pid/nginx.pid
Wrote PID (3864 to /Users/tauseefsshah/Library/Application Support/Herd/.pid/dnsmasq.pid
Error Domain=NSCocoaErrorDomain Code=260 "The file āservices.plistā couldnāt be opened because there is no such file." UserInfo={NSFilePath=/Users/tauseefsshah/Library/Application Support/Herd/config/services.plist, NSUnderlyingError=0x600002491cb0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Process FPM-8.3 started
Process FPM-8.3 error: [22-Jun-2024 12:33:52] NOTICE: [pool herd] 'user' directive is ignored when FPM is not running as root
[22-Jun-2024 12:33:52] NOTICE: [pool herd] 'group' directive is ignored when FPM is not running as root
Process FPM-8.3 error: [22-Jun-2024 12:33:52] NOTICE: fpm is running, pid 3860
Process FPM-8.3 error: [22-Jun-2024 12:33:52] NOTICE: ready to handle connections
Result 8.3: false
Found update!
Stopping Nginx
Stopping DNSMasq
Process is not running - won't stop
Successfully killed process with pid 3860: AllowedCommandReply(terminationStatus: 0, standardOutput: Optional(""), standardError: Optional(""))
Process FPM-8.3 failed with exit code: 9
Process FPM-8.3 stopped
Delete PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/fpm-8_3.pid
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
Window count settings: 0
Additional information - It only shows the welcome to herd installation after system shutdown or restarts.
Oh, interesting! Because the log file looks good.
Was that taken after a restart?
Yes it was taken after a restart
Do you have Herd in your auto-start? I wonder if this is some kind of race-condition between the Helper starting up and Herd starting up.
If that's the case, could you try and remove Herd from the autostart and start it manually to see if this fixes the issue?
@mpociot Turned off auto-start and still the same
Okay. Then I'll need to send you a new build that adds some additional logging š¤
So just to clarify: when you install the helper, you can quit and restart Herd without any problems. But as soon as you restart you need to install the helper again via the onboarding?
Sure, sounds good. Yes it has something to do with the helper only. As soon as the helper is installed after a restart then herd works normally and can quit and restart it. And thank you for being available and helping on a weekend š Appreciated Man!
@mpociot Same problem with me. After each restart of the mac, i receive the Welcome window and i need to follow the steps if i want to continue use Herd. This happen before few days after i have received notification for new php version available. Here are the screenshots what happen after each restart:
@kirilkirkov could you also share the debug logs with me?
@mpociot
Helper tool is installed and running. Version: 1.0.40 (1.0.40)
Starting initialize method
Copying Nginx config
Copying base Nginx config
Copying DnsMasq config
Copying Fpm config
Copying debug Fpm config
Copying Valet config
Copying PHP config for version 8.3
Installing Nvm
NVM is already installed.
Ensuring helper tool is installed
Helper tool is installed and running. Version: 1.0.40 (1.0.40)
Found existing PID file /Users/user91828/Library/Application Support/Herd/.pid/nginx.pid
Found existing PID file /Users/user91828/Library/Application Support/Herd/.pid/dnsmasq.pid
Wrote PID (8396 to /Users/user91828/Library/Application Support/Herd/.pid/fpm-8_3.pid
Error Domain=NSCocoaErrorDomain Code=260 "The file āservices.plistā couldnāt be opened because there is no such file." UserInfo={NSFilePath=/Users/user91828/Library/Application Support/Herd/config/services.plist, NSUnderlyingError=0x600002bee4c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Successfully killed process with pid 7370: AllowedCommandReply(terminationStatus: 0, standardOutput: Optional(""), standardError: Optional(""))
Delete PID file /Users/user91828/Library/Application Support/Herd/.pid/nginx.pid
Successfully killed process with pid 7371: AllowedCommandReply(terminationStatus: 0, standardOutput: Optional(""), standardError: Optional(""))
Delete PID file /Users/user91828/Library/Application Support/Herd/.pid/dnsmasq.pid
Wrote PID (8399 to /Users/user91828/Library/Application Support/Herd/.pid/nginx.pid
Wrote PID (8400 to /Users/user91828/Library/Application Support/Herd/.pid/dnsmasq.pid
Process FPM-8.3 started
Process FPM-8.3 failed with exit code: 78
Process FPM-8.3 stopped
Delete PID file /Users/user91828/Library/Application Support/Herd/.pid/fpm-8_3.pid
Process FPM-8.3 error: [23-Jun-2024 10:53:10] NOTICE: [pool herd] 'user' directive is ignored when FPM is not running as root
[23-Jun-2024 10:53:10] NOTICE: [pool herd] 'group' directive is ignored when FPM is not running as root
Process FPM-8.3 error: [23-Jun-2024 10:53:10] ERROR: Another FPM instance seems to already listen on /Users/user91828/Library/Application Support/Herd/herd83.sock
[23-Jun-2024 10:53:10] ERROR: FPM initialization failed
Stopping Nginx
Stopping DNSMasq
Process is not running - won't stop
Process is not running - won't stop
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
Window count settings: 0```
Could you try this version with the log flag? This should write some more log statements.
@mpociot With this version it didn't log anything. The Herd_Debug.log
is empty š
Same issue on my end. I'm not a paying customer. Every time I start the software, it shows the get started screen, the the password, and then it re-downloads all versions of php every time.
This started happening after I allowed it to download the install helper the first time.
I might have denied it some permissions initially.
Also, I followed the un-installation guide for MacOS, but it didn't fix the issue.
@tauseefsshah works fine for me. Can you try deleting the existing Herd_Debug.log in case that helps?
@mauriciomateus Could you also try the DMG file I mentioned here https://github.com/beyondcode/herd-community/issues/832#issuecomment-2185035121 and start it with debug logging enabled:
/Applications/Herd.app/Contents/MacOS/Herd --enable-logfile
@mpociot Deleting the existing log file worked, here's the log dump
Logging setup complete.
Checking if helper tool is installed
Helper tool is registered with launchd: false
Helper tool registration property list exists: true
Checking if helper tool is installed
Helper tool is registered with launchd: false
Helper tool registration property list exists: true
Error Domain=NSCocoaErrorDomain Code=260 "The file āservices.plistā couldnāt be opened because there is no such file." UserInfo={NSFilePath=/Users/tauseefsshah/Library/Application Support/Herd/config/services.plist, NSUnderlyingError=0x60000360a3d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Result 8.3: false
Found update!
Starting initialize method
Copying Nginx config
Copying base Nginx config
Copying DnsMasq config
Copying Fpm config
Copying debug Fpm config
Copying Valet config
Copying PHP config for version 8.3
Installing Nvm
NVM is already installed.
Ensuring helper tool is installed
Checking if helper tool is installed
Helper tool is registered with launchd: false
Helper tool registration property list exists: true
Helper tool is not installed or outdated. Installing.
Result 8.3: false
Found update!
Process is not running - won't stop
Wrote PID (968 to /Users/tauseefsshah/Library/Application Support/Herd/.pid/fpm-8_3.pid
Could not find service FPM-8.2
Could not find service FPM-8.2 (Debug)
Could not find service FPM-8.1
Could not find service FPM-8.1 (Debug)
Could not find service FPM-8.0
Could not find service FPM-8.0 (Debug)
Could not find service FPM-7.4
Could not find service FPM-7.4 (Debug)
Found existing PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/nginx.pid
Process FPM-8.3 started
Found existing PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/dnsmasq.pid
Found existing PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/fpm-8_3.pid
Process FPM-8.3 error: [23-Jun-2024 23:36:45] NOTICE: [pool herd] 'user' directive is ignored when FPM is not running as root
[23-Jun-2024 23:36:45] NOTICE: [pool herd] 'group' directive is ignored when FPM is not running as root
Process FPM-8.3 error: [23-Jun-2024 23:36:45] NOTICE: fpm is running, pid 968
Process FPM-8.3 error: [23-Jun-2024 23:36:45] NOTICE: ready to handle connections
Successfully killed process with pid 1254: AllowedCommandReply(terminationStatus: 0, standardOutput: Optional(""), standardError: Optional(""))
Delete PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/dnsmasq.pid
Successfully killed process with pid 1257: AllowedCommandReply(terminationStatus: 0, standardOutput: Optional(""), standardError: Optional(""))
Delete PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/nginx.pid
Successfully killed process with pid 968: AllowedCommandReply(terminationStatus: 0, standardOutput: Optional(""), standardError: Optional(""))
Delete PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/fpm-8_3.pid
Process FPM-8.3 started
Wrote PID (980 to /Users/tauseefsshah/Library/Application Support/Herd/.pid/fpm-8_3.pid
Process FPM-8.3 failed with exit code: 9
Process FPM-8.3 stopped
Delete PID file /Users/tauseefsshah/Library/Application Support/Herd/.pid/fpm-8_3.pid
Wrote PID (981 to /Users/tauseefsshah/Library/Application Support/Herd/.pid/dnsmasq.pid
Wrote PID (982 to /Users/tauseefsshah/Library/Application Support/Herd/.pid/nginx.pid
Process FPM-8.3 error: [23-Jun-2024 23:36:46] NOTICE: [pool herd] 'user' directive is ignored when FPM is not running as root
[23-Jun-2024 23:36:46] NOTICE: [pool herd] 'group' directive is ignored when FPM is not running as root
Process FPM-8.3 error: [23-Jun-2024 23:36:46] NOTICE: fpm is running, pid 980
Process FPM-8.3 error: [23-Jun-2024 23:36:46] NOTICE: ready to handle connections
Stopping Nginx
Stopping DNSMasq
Process is not running - won't stop
Successfully killed process with pid 980: AllowedCommandReply(terminationStatus: 0, standardOutput: Optional(""), standardError: Optional(""))
Process FPM-8.3 failed with exit code: 9
Process FPM-8.3 stopped
Unable to delete PID file
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
--- Terminate observer called for process
Window count settings: 0
@tauseefsshah awesome, thank you!
So it seems like the launchd check is the problem.
Could you please try the following:
When the onboarding shows up after a restart, instead of doing anything in the Herd UI, open up a terminal and type:
/bin/launchctl print system/de.beyondco.herd.helper
This should give you information about the helper service.
@mpociot This was the output
Bad request.
Could not find service "de.beyondco.herd.helper" in domain for system
Okay, I found a way to reproduce this!
Please check your system settings.
Under General -> Login Items, make sure that "Beyond Code GmbH" is allowed to run in the background:
Otherwise the helper will only be installed temporarily, which results in exactly the issue you're describing.
Previous versions of Herd (prior to 1.7.0) didn't need this, which might be why some of you have this disabled.
@mpociot Thank you, allowing Beyond Code GmbH
to run in background fixed it
Awesome! I'll close this issue then, as I'm sure this will fix it for the others too!
Thank you so much for helping me debug this š
Thank you, the problem is fixed
Platform
macOS
Operating system version
Sonama 14.5 (23F79)
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.7.1 (Build 28)
PHP Version
No response
Bug description
Hi, this issue is similar to #690. Every time I open Herd it shows me the Welcome screen saying "Let's get started" etc. I click to begin and it reinstalls PHP all over again. This only started happening after I updated herd to version 1.7.1. I have tried reinstalling but no luck. The
/etc/sudoers.d/herd
file exists and I am not using any user/access right management on my mac.Steps to reproduce
No response
Relevant log output
No response