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

TKLBAM restore-rollback failure webmin #1717

Open
JedMeister opened this issue Apr 5, 2022 · 1 comment
Open

TKLBAM restore-rollback failure webmin #1717

JedMeister opened this issue Apr 5, 2022 · 1 comment
Milestone

Comments

@JedMeister
Copy link
Member

This failure occurred from webmin - during testing of the webmin-tklbam module update for v17.0

Despite the error message, the paths complained about actually exist.

It was reproducible within webmin (I reproduced it 3 restore/restore-rollback cycles in a row), but when I tried to reproduce it on the CLI, I couldn't?!

So either there is/was some race condition, or an edge case issue that somehow resolved itself cycling restore/restore-rollback.

It is worth noting though that the webmin module runs tklbam-restore-rollback --force whereas when I did it via CLI I omitted the force switch (I retried with --force later but worked ok.

Here's the stacktrace from webmin-tklbam logs:

> tklbam-restore-rollback --force
Traceback (most recent call last):
File "/usr/lib/tklbam/rollback.py", line 107, in rollback_files
local_rec = DirIndex.Record.frompath(change.path)
File "/usr/lib/tklbam/dirindex.py", line 35, in frompath
st = os.lstat(path)
OSError: [Errno 2] No such file or directory: '/etc/.git/objects/63'
Traceback (most recent call last):
File "/usr/lib/tklbam/rollback.py", line 107, in rollback_files
local_rec = DirIndex.Record.frompath(change.path)
File "/usr/lib/tklbam/dirindex.py", line 35, in frompath
st = os.lstat(path)
OSError: [Errno 2] No such file or directory: '/etc/.git/objects/92'
error: rollback_files raised an exception:
Traceback (most recent call last):
File "/usr/lib/tklbam/rollback.py", line 150, in rollback
method()
File "/usr/lib/tklbam/rollback.py", line 125, in rollback_files
raise Error("caught %d exceptions during rollback_files" % exceptions)
Error: caught 2 exceptions during rollback_files
Traceback (most recent call last):
File "/bin/tklbam-restore-rollback", line 76, in <module>
main()
File "/bin/tklbam-restore-rollback", line 73, in main
rollback.rollback()
File "/usr/lib/tklbam/rollback.py", line 158, in rollback
raise Error("caught %d exceptions during rollback" % exceptions)
rollback.Error: caught 1 exceptions during rollback
@JedMeister JedMeister added this to the 17.1 milestone Apr 5, 2022
@JedMeister JedMeister changed the title TKLBAM restore issue within webmin TKLBAM restore-rollback failure webmin Apr 5, 2022
@JedMeister
Copy link
Member Author

Not sure if this is still an issue or not? I'll move it to v18.0 just in case...

@JedMeister JedMeister modified the milestones: 17.1, 18.0 Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant