-
Notifications
You must be signed in to change notification settings - Fork 221
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
Missing support for multiple users on the same host / same lock-file used by user and root #1122
Comments
Can you provide an |
Current one for me:
|
Hello, BIT version: 1.2.1 (running on Kubuntu 21.04) If a regular user "reguser" runs a backup job (or their job is automatically started by cron), the following lock file is created when the backup job starts (i.e. not already at (manual) program startup).
The problem then is - this lock file is not deleted on completion of the backup job. So if some time later root runs a backup job (again possibly their job is automatically started by cron, same behaviour) it will fail and I get the above mentioned error: So this seems to be exactly this problematic multi-user setting. For me it would be fine if the second user can't start their job before the first user's job is finished (as selected under "settings-options-run only one snapshot at a time", which is activated in my case for both reguser and root). However, if this first job is finished, the lock file should be removed, shouldn't it? Thanks for looking into this... |
some more information about starting and running backups as reguser and root, details see attached file tl;dr:
|
There is a new forming maintaining team and we do review all issues. Is this problem still relevant for you or did you find a solution? @gitraphha Thanks for your summary about the problem. Tag: Feedback, Bug, Scheduling, Medium |
@buhtzz Glad a new team is coming ! Thanks so much for this ! |
Okay, so the cause of the bug seems to be that in certain situations, More generally, it's worth a look at why that logfile exists in the first place, and if it could be changed to a per-user lock. |
I'm seeing the same thing. I've got two backup's scheduled ... one for my home directory that runs hourly (running as me), and one for the entire system (running as root). The root backup frequently doesn't run because that lock file exists owned by my own profile. |
wonderful, thank you for your efforts! I didn't check again lately, because I have this workaround running which solves the problem (still just a workaround) this is part of my ~/config/backintime/user-callback #!/bin/bash script
the most confusing thing about this bug(?) is that the reguser can cope with root's leftover lockfile but not the other way round Have a nice day everybody! |
Accidentally discovered this "old" issue here. |
I opened PR #1697. Would be glad if you could give it a try and test it in your environment. Let me know if you have further questions or if I can be of assistance. |
Hello
I had an issue where snapshots were not taken.
I decided to run in CLI with
/usr/bin/backintime backup --debug
and got:Actually, the lock belongs to the other user, which also has a @reboot job, but starts before me.
Flock should hold user & BIT profile name, IMO.
The text was updated successfully, but these errors were encountered: