App remains stuck in "Preparing..." for hours

Bug #2016832 reported by Leo Wandersleb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Déjà Dup
Invalid
Undecided
Unassigned

Bug Description

After changing the backup target location to a local network drive (sftp), when starting a backup via "windows-key -> "backup" -> enter -> backup now", the app gets stuck at the "Preparing..." stage for at least two hours during which network performance was terrible.

When starting the app from the console, I get the error found in attached log file

additional info:

```
$ lsb_release -d
Description: Debian GNU/Linux 11 (bullseye)
$ deja-dup --version
deja-dup 42.7
$ dconf dump /org/gnome/deja-dup/
[/]
backend='remote'
delete-after=182
exclude-list=['/home/leo/VirtualBox VMs', '/home/leo/.android', '/home/leo/.local/share/Steam', '/home/leo/.gradle', '/home/leo/.cache', '/home/leo/.bitcoin/blocks', '/home/leo/.bitcoin/chainstate', '/home/leo/.AndroidStudio3.5', '/media/leo/unencrypted_data/Downloads/android-sdk-linux', '/home/leo/.local/share/containers/storage']
include-list=['/home/leo', '/media/leo/unencrypted_data/Downloads', '/media/leo/unencrypted_data/Documents']
last-backup='2023-04-13T13:27:45.822943Z'
last-restore='2017-05-25T17:15:14.717524Z'
last-run='2023-04-18T03:09:48.787598Z'
nag-check='2023-03-14T20:03:18.413939Z'
periodic=true
periodic-period=7
prompt-check='2016-12-28T21:45:34.515641Z'

[drive]
folder='backups/Pavilion'
icon='. GEmblemedIcon .%20GThemedIcon%20drive-harddisk-usb%20drive-harddisk%20drive%20drive-harddisk-usb-symbolic%20drive-harddisk-symbolic%20drive-symbolic .%20GEmblem%20changes-allow%201'
name='backup8tb'
uuid='4dffc196-9926-43d9-a7c8-38898681f402'

[file]
icon='. GEmblemedIcon .%20GThemedIcon%20drive-harddisk-usb%20drive-harddisk%20drive .%20GEmblem%20changes-allow%201'
migrated=true
name='WD Elements 10B8: 2,0 TB Volume'
path='file:///media/leo/edcb37f6-df83-4634-a709-6c7dc9ab6287/backup'
relpath=b'backup'
short-name='2,0 TB Volume'
type='volume'
uuid='20d36200-3bea-4b88-ab94-c25350520b88'

[gcs]
folder='codex'

[gdrive]
folder='/deja-dup/codex'

[goa]
folder='codex'

[google]
folder='codex'

[local]
folder='sftp://192.168.0.18/mnt/bigDrive/backups/Pavilion'

[openstack]
container='codex'

[rackspace]
container='codex'

[remote]
folder='/mnt/backup/backups/Pavilion'
uri='sftp://leo:password@192.168.0.22'

[s3]
folder='codex'
```

I have no idea what the "192.168.0.18" line is doing there. Other lines also look like stale config. The 8TB drive moved to remote IP ...22 and the 2TB drive? I don't have it configured.

"password" is obviously not my password.

Revision history for this message
Leo Wandersleb (leo-wandersleb) wrote :
Revision history for this message
Michael Terry (mterry) wrote :

Hello! Thank you for your report. This looks like the relevant bit from the crash log:

DUPLICITY: ERROR 30 FileNotFoundError
DUPLICITY: . Traceback (innermost last):
DUPLICITY: . File "/usr/bin/duplicity", line 122, in <module>
DUPLICITY: . with_tempdir(main)
DUPLICITY: . File "/usr/bin/duplicity", line 108, in with_tempdir
DUPLICITY: . fn()
DUPLICITY: . File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1522, in main
DUPLICITY: . action = commandline.ProcessCommandLine(sys.argv[1:])
DUPLICITY: . File "/usr/lib/python3/dist-packages/duplicity/commandline.py", line 1187, in ProcessCommandLine
DUPLICITY: . config.backend = backend.get_backend(args[0])
DUPLICITY: . File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 223, in get_backend
DUPLICITY: . obj = get_backend_object(url_string)
DUPLICITY: . File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 209, in get_backend_object
DUPLICITY: . return factory(pu)
DUPLICITY: . File "/usr/lib/python3/dist-packages/duplicity/backends/giobackend.py", line 53, in __init__
DUPLICITY: . from gi.repository import Gio # pylint: disable=import-error
DUPLICITY: . File "/usr/lib/python3/dist-packages/gi/__init__.py", line 23, in <module>
DUPLICITY: . __path__ = extend_path(__path__, __name__)
DUPLICITY: . File "/usr/lib/python3.9/pkgutil.py", line 561, in extend_path
DUPLICITY: . finder = get_importer(dir)
DUPLICITY: . File "/usr/lib/python3.9/pkgutil.py", line 420, in get_importer
DUPLICITY: . importer = path_hook(path_item)
DUPLICITY: . File "<frozen importlib._bootstrap_external>", line 1529, in path_hook_for_FileFinder
DUPLICITY: . File "<frozen importlib._bootstrap_external>", line 107, in _path_isdir
DUPLICITY: . FileNotFoundError: [Errno 2] No such file or directory

That looks like a problem with importing Gio. If you run the following in a terminal, do you get a similar error?

python3 -c "from gi.repository import Gio"

(the fact that this error seems to have stalled Deja Dup is another issue... but let's work on this for now)

Michael Terry (mterry)
Changed in deja-dup:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.