AttributeError: 'module' object has not attribute 'packages'
I'm running duplicity 0.7.19 on Centos 7, backing up to a Backblaze B2 account. I periodically get an error:
Attempt [x] failed. AttributeError: 'module' object has no attribute 'packages'
When I do, the progress information becomes nonsense. Here's an excerpt from my logs:
Jan 23 01:00:05 fafnir backups: Local and Remote metadata are synchronized, no sync needed.
Jan 23 01:00:05 fafnir backups: Last full backup date: none
Jan 23 01:00:05 fafnir backups: No signatures found, switching to full backup.
Jan 23 03:00:10 fafnir backups: 1.0GB 02:00:00 [43.2KB/s] [> ] 0% ETA 8d 6h 33min
Jan 23 05:00:11 fafnir backups: 2.0GB 04:00:00 [73.7KB/s] [> ] 2% ETA 8d 3h 58min
Jan 23 07:00:11 fafnir backups: 3.0GB 06:00:00 [94.6KB/s] [=> ] 2% ETA 8d 2h 26min
Jan 23 09:00:11 fafnir backups: 4.0GB 08:00:00 [109.6KB/s] [=> ] 3% ETA 8d 16min
Jan 23 11:00:11 fafnir backups: 4.9GB 10:00:00 [119.0KB/s] [=> ] 4% ETA 7d 23h 7min
Jan 23 13:00:11 fafnir backups: 5.9GB 12:00:00 [126.1KB/s] [==> ] 5% ETA 7d 21h 21min
Jan 23 15:00:11 fafnir backups: 6.9GB 14:00:00 [131.1KB/s] [==> ] 6% ETA 7d 19h 28min
Jan 23 17:00:11 fafnir backups: 7.9GB 16:00:00 [134.7KB/s] [===> ] 7% ETA 7d 17h 30min
Jan 23 17:14:59 fafnir backups: Attempt 1 failed. AttributeError: 'module' object has no attribute 'packages'
Jan 23 17:30:43 fafnir backups: Attempt 2 failed. AttributeError: 'module' object has no attribute 'packages'
Jan 23 17:46:23 fafnir backups: Attempt 3 failed. AttributeError: 'module' object has no attribute 'packages'
Jan 23 19:00:11 fafnir backups: 285.6GB 18:00:00 [11.9MB/s] [======
Jan 23 20:48:50 fafnir backups: Attempt 1 failed. AttributeError: 'module' object has no attribute 'packages'
Jan 23 21:00:11 fafnir backups: 286.6GB 20:00:00 [8.4MB/s] [======
Jan 23 23:00:11 fafnir backups: 287.6GB 22:00:00 [5.9MB/s] [======
Any ideas on what is happening and how to prevent it?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Duplicity Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2020-01-29
- Last reply:
- 2020-01-29
What command line?
Please run with -v9 and attach the log to this question.
Andy Hairston (whairst) said : | #2 |
I have this command line in a script:
PASSPHRASE=
It's called from cron like this:
[script name] | logger -t backups
I (re)ran with -v9. I'm guessing you don't want or need the full 10,000+ lines, but probably this excerpt:
Jan 29 14:18:14 fafnir backups: Getting delta of (duplicati-
Jan 29 14:18:14 fafnir backups: A duplicati-
Jan 29 14:18:22 fafnir backups: AsyncScheduler: running task synchronously (asynchronicity disabled)
Jan 29 14:18:22 fafnir backups: Writing duplicity-
Jan 29 14:18:22 fafnir backups: Put: /tmp/duplicity-
Jan 29 14:18:25 fafnir backups: Backtrace of previous error: Traceback (innermost last):
Jan 29 14:18:25 fafnir backups: File "/usr/lib64/
Jan 29 14:18:25 fafnir backups: return fn(self, *args)
Jan 29 14:18:25 fafnir backups: File "/usr/lib64/
Jan 29 14:18:25 fafnir backups: self.__
Jan 29 14:18:25 fafnir backups: File "/usr/lib64/
Jan 29 14:18:25 fafnir backups: self.backend.
Jan 29 14:18:25 fafnir backups: File "/usr/lib64/
Jan 29 14:18:25 fafnir backups: progress_
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: return function(
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: progress_
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: return function(
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: upload_source, file_name, content_type, file_info, progress_listener
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: part_sha1_array = [interruptible_
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: return future.
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: return self.__get_result()
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: result = self.fn(*self.args, **self.kwargs)
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: HEX_DIGITS_AT_END, hashing_stream
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: return self.b2_
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: response = _translate_
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: return _translate_
Jan 29 14:18:25 fafnir backups: File "/usr/lib/
Jan 29 14:18:25 fafnir backups: if isinstance(e1, requests.
Jan 29 14:18:25 fafnir backups: AttributeError: 'module' object has no attribute 'packages'
Jan 29 14:18:55 fafnir backups: Writing duplicity-
Jan 29 14:18:55 fafnir backups: Put: /tmp/duplicity-
Turns out the problem is coming from the b2sdk package, but not causing any
real problems.
If you want, you can report the bug to the b2sdk folks and maybe they can
fix it. You can do that here:
https:/
...Ken
On Wed, Jan 29, 2020 at 1:43 PM Andy Hairston <
<email address hidden>> wrote:
> Question #688226 on Duplicity changed:
> https:/
>
> Status: Needs information => Open
>
> Andy Hairston gave more information on the question:
> I have this command line in a script:
> PASSPHRASE=
> 7200 /home/[folder redacted] b2://[key redacted]@[bucket and folder
> redacted]
>
> It's called from cron like this:
> [script name] | logger -t backups
>
> I (re)ran with -v9. I'm guessing you don't want or need the full 10,000+
> lines, but probably this excerpt:
>
> Jan 29 14:18:14 fafnir backups: Getting delta of
> (duplicati-
>
>
> Jan 29 14:18:14 fafnir backups: A
> duplicati-
>
>
> Jan 29 14:18:22 fafnir backups: AsyncScheduler: running task synchronously
> (asynchronicity disabled)
>
> Jan 29 14:18:22 fafnir backups: Writing
> duplicity-
>
>
> Jan 29 14:18:22 fafnir backups: Put:
> /tmp/duplicity-
> redacted]
>
> Jan 29 14:18:25 fafnir backups: Backtrace of previous error: Traceback
> (innermost last):
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib64/
> inner_retry
>
> Jan 29 14:18:25 fafnir backups: return fn(self, *args)
>
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib64/
> put
>
> Jan 29 14:18:25 fafnir backups: self.__
> remote_filename)
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib64/
> __do_put
>
> Jan 29 14:18:25 fafnir backups: self.backend.
> remote_filename)
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib64/
> 121, in _put
>
> Jan 29 14:18:25 fafnir backups:
> progress_
>
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> wrapper
>
> Jan 29 14:18:25 fafnir backups: return function(
> **wrapee_kwargs)
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> upload_local_file
>
> Jan 29 14:18:25 fafnir backups: progress_
>
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> wrapper
>
> Jan 29 14:18:25 fafnir backups: return function(
> **wrapee_kwargs)
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
>
>
> Jan 29 14:18:25 fafnir backups: upload_source, file_name, content_type,
> file_info, progress_listener
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> _upload_large_file
>
> Jan 29 14:18:25 fafnir backups: part_sha1_array =
> [interruptible_
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> interruptible_
>
> Jan 29 14:18:25 fafnir backups: return future.
>
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> in result
>
> Jan 29 14:18:25 fafnir backups: return self.__get_result()
>
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> in run
>
> Jan 29 14:18:25 fafnir backups: result = self.fn(*self.args,
> **self.kwargs)
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> _upload_part
>
> Jan 29 14:18:25 fafnir backups: HEX_DIGITS_AT_END, hashing_stream
>
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> upload_part
>
> Jan 29 14:18:25 fafnir backups: return
> self.b2_
>
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> post_content_
>
> Jan 29 14:18:25 fafnir backups: response =
> _translate_
>
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> _translate_
>
> Jan 29 14:18:25 fafnir backups: return _translate_
> post_params)
>
> Jan 29 14:18:25 fafnir backups: File
> "/usr/lib/
> _translate_errors
>
> Jan 29 14:18:25 fafnir backups: if isinstance(e1,
> requests.
>
> Jan 29 14:18:25 fafnir backups: AttributeError: 'module' object has no
> attribute 'packages'
>
> Jan 29 14:18:55 fafnir backups: Writing
> duplicity-
>
>
> Jan 29 14:18:55 fafnir backups: Put:
> /tmp/duplicity-
> redacted]
>
> --
> You received this question notification because your team duplicity-team
> is an answer contact for Duplicity.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Can you help with this problem?
Provide an answer of your own, or ask Andy Hairston for more information if necessary.