Open ronohara opened 5 months ago
I am having this error message when list snapshots or trying to restore. Note I am new to timeshift and I am confortable with cli. My machine is an intel atom with 2G ram, 500G HDD. Os: debian 12 Filesystem: btrfs
I have created a snapshot some days ago, when I tried to restore it I get this error message.
Describe the bug timeshift-gtk reports E: Failed to remove directory when the program exit
To Reproduce Very difficult to reproduce. Triggered by some other part of the application leaving the 'run directory' busy. Once that has occurred, simply starting the application and then exiting will show the message - until the next reboot. See the rest of this bug for ramifications.
Expected behavior Did not expect an error message - and the message could be more informative.
Screenshots If applicable, add screenshots to help explain your problem.
System:
MORE:
If you run this from the command line : sudo timeshit-gtk sometimes you get an error message when you exit the app.
E: Failed to removed directory ....
If so, there is probably a directory under /run/timeshift which Linux thinks is busy .... and you can't delete it. I don't know what triggers this situation, but if you reboot that directory goes away and then (for me) all my snapshots appear properly.
Diagnosed this by building from source and adding a debug line to src/Core/Main.vala Line 4407 ... log_error(cmd3)
You now get a better error message .... for me the debug showed that the directory was /run/timeshift/3420 When I tried to remove it manually Linux reported it as 'device busy'
A side effect is that when this situation exists, new snapshots work but do not seem to appear in the display.
I suggest that the error messages be reviewed and when a command fails, the actual command is also logged with the error message.