-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS 14.2.1 agent not automatically starting on boot / reboot. #5653
Comments
the fix has been merged, but we need to release new agents FIRST also you say the fix doesnt work, but is this because you have customised the agent by any chance? |
It was a default install I did using Apple macOS agent from the server. According to Launchcontrol (the app) the programs to run are:
Working directory for both are: I can manually start them after rebooting but that would become a pain if more than a few machines. |
what is the content of running this command? EDIT: you might also have to reload the daemon, then try restarting as per #4822 (comment) OR #4822 (comment) |
|
try changing the file so its identical to #4822 (comment) |
I can see this issue has been going for over a year now, starting with Ventura, and as of yet still no fix. Fortunately I've not invested too much time in it yet so I'll abandon and check back in a few months time. Fingers crossed everything will work then. Back to SSH'ing! |
After installing on 2 Silicon macs and reading just about every GitHub issue and reddit post about installing mesh agent on mac I have these findings.
Linking to my reddit post: https://www.reddit.com/r/MeshCentral/comments/18tq4gm/macos_apple_silicon_mesh_agent/ |
You mention needing one of each device to test before release. are you saying a intel and silicon mac or one of each mac with each version of OS. Technically you only need 2 macs, an intel and a silicon. once you have both macs just partition the drive and install multiple versions of the macOS. I have not tested this on silicon so you might need multiple USB drives or something strange but know it works on intel. If getting hardware isn't helping with the release of the agents then I might suggest a beta style approach where you release a beta of the agent, tell the beta user to drop the files on the server in the right place and run thru the install process like normal to see if it works as expected. the more successful deployments under the beta and the new agent can go to the production branch |
sadly ideally we need hardware of each kind, |
If the dev's have an Apple machine with M-class processor then you can use UTM and create VM's for all of those processors listed. Windows ARM - supported (virtualised) Use CrystalFetch to get the various Windows & Linux OS ISO's (x86/64 and ARM) That should help to speed up the process of fixing the agents. |
I think thats part of the issue is that I dont think the devs have macs with M Class processors, I am sure they would be happy to take a donation, I am sure @si458 would happily give you a UK shipping address :) |
@dinger1986 that's perfectly correct! I'm happy to accept any donations to purchase even a second hand one, https://www.si458.co.uk/2024/01/05/donation/, or leave a comment/email me and I'll send u postal address hehe |
macOS 14.2.1 sonoma - meshagent_osx64 not automatically starting on boot / reboot
|
just an update for people. ive found the issue, from launchd.info EDIT: the issue/fix was actually here just didnt spot it! Ylianst/MeshAgent#161 |
This should now be fixed for the pkg install, (the binary install still needs to be build, sorry) |
So I was setting up some new machines yesterday, all Apple Silicon and ran into this exact problem. None of the .plist edits were helping to resolve the on start up issue, but the 1.1.22 update did fix the agent. However, now a new issue has cropped up that only seems to happen on Apple Silicon machines with the latest macOS Sonoma 14.4.1. On first connection it will typically ask for permission to screen record, then for inputs on the second connection. Unfortunately neither permissions work anymore with this latest agent. So we solved one problem but introduced another. I managed to circumvent the issue following: #5067 (comment) - However it is quite a messy solution and creates two login items instead of just one. Doing this #5067 (comment) seems to remove the second entry and still starts. It appears the launch agent .plist is unnecessary. |
@DarkxPunk yes the issue you have is because for some reason apple silicon doesn't like the universal binary files? I already noticed this and don't know what's wrong or how to fix it? Edit. This is why I added to the webui the ability to now just download the arm binary or intel binary or universal! Edit2: I'm also not sure IF we need the launchagent or not? |
LaunchAgent is required:
|
Okay good to know, it works for my needs (basic desktop remote control) by removing the agent, preventing the weird double entry. But if we fix/streamline the issue I can always update the systems. I have only had to do this on Apple Silicon systems, Intel based (regardless of OS) seems to behave correctly. |
Describe the bug
Fresh install of meshcentral server and client. macOS agent installed on macOS Sonoma.
Reboot Mac and agent doesn't start.
/Library/LaunchAgent/meshagent_osx64_LaunchAgent.plist
/Library/LaunchDaemon/meshagent_osx64_LaunchDaemon.plist
The fix listed here doesn't match my agent names nor does it work.
According to this a fix has been merged so this issue should be solved when 1.1.17 is released?
The text was updated successfully, but these errors were encountered: