Skip to content
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

helper is sometimes unloaded after MacOS upgrades #363

Open
tronghn opened this issue Jan 25, 2024 · 3 comments
Open

helper is sometimes unloaded after MacOS upgrades #363

tronghn opened this issue Jan 25, 2024 · 3 comments
Labels

Comments

@tronghn
Copy link
Contributor

tronghn commented Jan 25, 2024

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
Copy link
Contributor

jhrv commented Jan 25, 2024

I have the same issue. Happens every MacOS update

Copy link

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

@github-actions github-actions bot added the stale No activity on this issue label Mar 25, 2024
@tronghn tronghn added preserve and removed stale No activity on this issue labels Mar 25, 2024
@sechmann
Copy link
Contributor

https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/
Looks like load/unload was deprecated 8 years ago, or something like that 😅
Maybe we should try with bootstrap|enable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants