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

Diff doesn't always work #613

Closed
harmlessdrudge opened this issue Sep 3, 2020 · 7 comments
Closed

Diff doesn't always work #613

harmlessdrudge opened this issue Sep 3, 2020 · 7 comments
Labels
type:bug Something doesn't work as intended

Comments

@harmlessdrudge
Copy link

Describe the bug

Diff function works sometimes, but often does nothing.

To Reproduce

Click on Archives, then DIff, select last two backups and then click diff

vorta-diff

Result is nothing shown here, despite hundreds of Mb of additional files.

Desktop (please complete the following information):

Linux Mint 19.3 w Cinnamon desktop

Additional context
If appropriate include logs. Can be found in Main Window > Misc Tab > Log.
vorta.log

@samuel-w
Copy link
Contributor

samuel-w commented Sep 4, 2020

I've had this happen too, even after just opening, but it goes away with a restart of Vorta. It might be related to #553, since I haven't experienced it since it was merged.

@samuel-w samuel-w added the type:bug Something doesn't work as intended label Sep 4, 2020
@ktosiek
Copy link
Contributor

ktosiek commented Sep 4, 2020

Do you see an entry for borg-run diff in Schedule -> Log? If so, what's the Returncode?

@harmlessdrudge
Copy link
Author

Yes, Returncode seems to be 0 regardless of whether or not any differences are displayed (every diff Returncode is 0).

@ThomasWaldmann
Copy link
Collaborator

@harmlessdrudge can you reproduce an issue when just using borg directly? if so, please file a bug on the borg issue tracker.

@harmlessdrudge
Copy link
Author

harmlessdrudge commented Sep 4, 2020

Maybe this will help

`
2020-09-04 17:27:23,639 - vorta.i18n - DEBUG - Loading translation failed for ['en-IE', 'en-Latn-IE'].
2020-09-04 17:27:23,663 - apscheduler.scheduler - INFO - Scheduler started
2020-09-04 17:27:23,665 - apscheduler.scheduler - INFO - Added job "VortaScheduler.create_backup" to job store "default"
2020-09-04 17:27:23,665 - vorta.scheduler - DEBUG - New job for profile Default was added.
2020-09-04 17:27:23,715 - vorta.borg.borg_thread - INFO - Running command /usr/bin/borg --version
2020-09-04 17:28:06,454 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords.
2020-09-04 17:28:06,455 - asyncio - DEBUG - Using selector: EpollSelector
2020-09-04 17:28:06,460 - root - DEBUG - Found 1 passwords matching repo URL.
2020-09-04 17:28:06,521 - vorta.borg.borg_thread - INFO - Running command /usr/bin/borg diff --info --log-json /mnt/linuxbackup/T440Mint/borg::T440-default-2020-09-02T13:00:00 T440-default-2020-09-03T13:00:00
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/vorta/views/archive_tab.py", line 460, in list_diff_result
window = DiffResult(result['data'], archive_newer, archive_older)
File "/usr/local/lib/python3.6/dist-packages/vorta/views/diff_result.py", line 72, in init
files_with_attributes.append(parse_line(line))
File "/usr/local/lib/python3.6/dist-packages/vorta/views/diff_result.py", line 60, in parse_line
full_path = line[full_path_index:]
UnboundLocalError: local variable 'full_path_index' referenced before assignment

`

@samuel-w
Copy link
Contributor

samuel-w commented Sep 4, 2020

It is indeed related to #553. Try running Vorta from master.
Note: You will not be able to return back to running the released version of Vorta until it updates. Backup your profile (usually in ~.local/share/Vorta/) and restore it later.

@samuel-w
Copy link
Contributor

samuel-w commented Sep 4, 2020

Actually, it is the exact same line with the exact same trace as #553's issue. This is fixed by #553. Closed.

Note: We should push an update to fix this bug, since someone else #589 has this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something doesn't work as intended
Projects
None yet
Development

No branches or pull requests

4 participants