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

ERROR: No valid lockfile found when running --monitor in cronjob #958

Open
neilbags opened this issue Oct 24, 2024 · 0 comments
Open

ERROR: No valid lockfile found when running --monitor in cronjob #958

neilbags opened this issue Oct 24, 2024 · 0 comments

Comments

@neilbags
Copy link

I''ve got a cronjob that looks like this:
@hourly /usr/sbin/sanoid --monitor-snapshots | grep -vE '^OK'
@hourly /usr/sbin/sanoid --monitor-health | grep -vE '^OK'

I'm occasionally seeing it error out:

Use of uninitialized value $checkmutex in scalar chomp at /usr/sbin/sanoid line 1488.
Use of uninitialized value $checkmutex in string eq at /usr/sbin/sanoid line 1490.
ERROR: No valid lockfile found - Did a rogue process or user update or delete it?

This is a laptop system that isn't always on. This seems to correspond to reboots or suspend maybe?. Maybe its clashing with the sanoid systemd timer? Or the two cron jobs are are trying to run simultaneously?

Is there a preferred way to do this that won't cause this error? Apologies if I've missed something obvious, I'm a brand new sanoid user (3 days) and loving the ergonomics of it so far. Well done devs!

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

No branches or pull requests

1 participant