device icon indicating copy to clipboard operation
device copied to clipboard

helper is sometimes unloaded after MacOS upgrades

Open tronghn opened this issue 1 year ago • 3 comments

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.

tronghn avatar Jan 25 '24 09:01 tronghn

I have the same issue. Happens every MacOS update

jhrv avatar Jan 25 '24 10:01 jhrv

Nothing has happened here for a while (60 days), marking as stale. Add preserve label to avoid deletion

github-actions[bot] avatar Mar 25 '24 12:03 github-actions[bot]

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

sechmann avatar Jun 25 '24 10:06 sechmann