nais / device

naisdevice is a application suite that enables NAV developers to connect to internal resources in a secure and friendly manner.
https://doc.nais.io/device/install
MIT License
17 stars 6 forks source link

helper is sometimes unloaded after MacOS upgrades #363

Open tronghn opened 6 months ago

tronghn commented 6 months ago

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.

jhrv commented 6 months ago

I have the same issue. Happens every MacOS update

github-actions[bot] commented 4 months ago

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

sechmann commented 1 month ago

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