helper is sometimes unloaded after MacOS upgrades
The naisdevice helper is sometimes unloaded from the launch daemon after MacOS upgrades.
This results in being unable to connect with naisdevice. The agent log contains the following lines:
time="2024-01-25T10:12:32+01:00" level=error msg="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /var/run/naisdevice/helper.sock: connect: no such file or directory\"" component=main
time="2024-01-25T10:12:33+01:00" level=error msg="sending notification: exit status 1" component=main
Usually fixable by exiting naisdevice, running
sudo launchctl load /Library/LaunchDaemons/io.nais.device.helper.plist
and restarting naisdevice.
We should look into why this happens and remediate the issue.
I have the same issue. Happens every MacOS update
Nothing has happened here for a while (60 days), marking as stale. Add preserve label to avoid deletion
https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/
Looks like load/unload was deprecated 8 years ago, or something like that :sweat_smile:
Maybe we should try with bootstrap|enable