Closed kinleyd closed 4 years ago
Hi, yes this happens when pacback reaches an internal fault that causes python to crash.
As with the pacman lock system, this can simply be remedied by running sudo rm /tmp/pacback_session.lck
.
If you could, can you please send the actual error that python threw? Pacback does gracefully exit and cleans its various lock files when receiving any SIGINT(CTRL-C) and only cannot when the python interpreter reaches some major error. That would be a quite serious bug and is something I would like to patch.
Thanks for getting back. I really look forward to pacback being an integral part of my setup!
Regarding the issue:
So I have created a restore point, 1, which shows up as follows:
Restore Points Snapshots │ 01 - Pkgs: 1271 Created: 2020/09/11 │ 00 - Pkgs: 1271 Created: 2020/09/09 │ │ │ 01 - Pkgs: 1270 Created: 2020/09/09 │
Before succeeding at this, I had to manually create the folder /home/lost+found/.cache.
Now I get these messages when I try:
$ sudo pacback -f -c 2
Building Full Restore Point 02...
Traceback (most recent call last):
File "/bin/pacback", line 113, in
After that, any calls to pacback leads to the error mentioned earlier: Critical Error! Pacback Already Has An Active Session Running.
sudo rm /tmp/pacback_session.lck resolves that, thank you.
Please let me know if I can provide you with any other information to help resolve this.
Thank you again!
Kinley
Kinley,
So someone pointed this out on Reddit, I made a mistake here by hardcoding and assuming all normal user home paths would exist in /home
. I also incorrectly assumed that every directory in /home
would be a user path, which in this case is completely wrong. You have a hidden directory in /home
called .Trash-0
which pacback is assuming is a user path.
Thankfully I have already written a patch for this by correctly using /etc/passwd
to retrieve each normal user's configured /home/user/
path. I hope to push this update today but if you continue to have issues that are creating serious issues for your machine, consider removing /home/.Trash-0
.
Thanks, Justin
Hey Justin,
Re /home/.Trash-0 I actually don't have such a folder - pacback was looking for that for some reason.
Great to hear that you've identified the problem. Yes, for Arch the user home directory is /home/username. I will look forward to the update. Will it take long to get to the AUR?
I currently use timeshift to manage my system snapshots, and really look forward to adding more granular package management/protection.
Kinley
The pacback-git package will most likely get updated within a few hours. Once I've done a quick bug test I'll bump versions on the main package.
So I just pushed a patch fixing these bugs. Both pacback and pacback-git have been bumped to a new release version. https://github.com/JustinTimperio/pacback/releases/tag/v2.0.2
Let me know if this update fixes your issue and I'll close this thread.
Thanks, Justin
Yes, the update fixes the issue for me. Thanks a lot Justin!
You're very welcome!
I had issues similar to that reported under issue titled: Can't create restore point #5
Creating a restore point failed as pacback expected a specific folder to already exist (.cache in my case), and triggered an error. So I manually created the expected folder, but upon re-running: $ sudo pacback -c 1
I continued to get this error: Critical Error! Pacback Already Has An Active Session Running. error: command failed to execute correctly
I tried to find a pacback process to kill but didn't find any, so I rebooted my system, after which the restore point was created.
After another error condition (I don't recall exactly what it was then), I starting getting that same error when I tried to update my system and the pre-upgrade pacback hook got triggered.
The issue seems to be that pacback isn't exiting gracefully under error conditions.
My distro: Arch Linux Kernel 5.8.7, python3 3.8.5, pacback 2.0.0-1