librelist archives

« back to archive

Remote backup fails

Remote backup fails

From:
David Zuckerman
Date:
2015-04-20 @ 05:35
Hello,

I've been trying to set up Attic as a remote backup solution.  My primary
system is running FreeBSD 10.1-RELEASE (32-bit) and my remote system is a
Raspberry Pi running FreeBSD 10.1-STABLE.  Both are running Attic 0.15 with
Python 3.4.3, and I'm using Attic to start the ssh connection instead of
using sshfs.

I can initialize the remote repository and start the backup without any
problems, but the backup will always fail at different points each time I
start it.  Any hints as to why this is happening?  Thanks in advance.

Here is the traceback:

Traceback (most recent call last):
  File "/usr/local/bin/attic", line 3, in <module>
    main()
  File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 728,
in main
    exit_code = archiver.run(sys.argv[1:])
  File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 718,
in run
    return args.func(args)
  File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 129,
in do_create
    self._process(archive, cache, args.excludes, args.exclude_caches,
skip_inodes, path, restrict_dev)
  File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
in _process
    os.path.join(path, filename), restrict_dev)
  File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
in _process
    os.path.join(path, filename), restrict_dev)
  File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
in _process
    os.path.join(path, filename), restrict_dev)
  File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
in _process
    os.path.join(path, filename), restrict_dev)
  File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
in _process
    os.path.join(path, filename), restrict_dev)
  File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 164,
in _process
    archive.process_file(path, st, cache)
  File "/usr/local/lib/python3.4/site-packages/attic/archive.py", line 416,
in process_file
    self.add_item(item)
  File "/usr/local/lib/python3.4/site-packages/attic/archive.py", line 179,
in add_item
    self.write_checkpoint()
  File "/usr/local/lib/python3.4/site-packages/attic/archive.py", line 183,
in write_checkpoint
    self.save(self.checkpoint_name)
  File "/usr/local/lib/python3.4/site-packages/attic/archive.py", line 206,
in save
    self.repository.commit()
  File "/usr/local/lib/python3.4/site-packages/attic/remote.py", line 217,
in commit
    return self.call('commit')
  File "/usr/local/lib/python3.4/site-packages/attic/remote.py", line 128,
in call
    for resp in self.call_many(cmd, [args], **kw):
  File "/usr/local/lib/python3.4/site-packages/attic/remote.py", line 161,
in call_many
    raise self.RPCError(error)
attic.remote.RPCError: b'AssertionError'

Re: [attic] Remote backup fails

From:
Jonas Borgström
Date:
2015-04-20 @ 11:52
On 20/04/15 07:35, David Zuckerman wrote:
> Hello,
>
> I've been trying to set up Attic as a remote backup solution.  My primary
> system is running FreeBSD 10.1-RELEASE (32-bit) and my remote system is a
> Raspberry Pi running FreeBSD 10.1-STABLE.  Both are running Attic 0.15 with
> Python 3.4.3, and I'm using Attic to start the ssh connection instead of
> using sshfs.
>
> I can initialize the remote repository and start the backup without any
> problems, but the backup will always fail at different points each time I
> start it.  Any hints as to why this is happening?  Thanks in advance.

Hi David,

unfortunately there's a bit too many variable here to be able to tell 
for sure what is going wrong. And as you see by the relatively unhelpful 
traceback, remote repositories also makes debugging more difficult.

Could you try a few of these things to see if we're able to identity the 
problem source.

* Does local (non-remote) backups work on the primary system?
* Does local (non-remote) backups work on the remote system?
* Does remote backups work against other remote systems (preferably 
non-raspberries)?

/ Jonas


> Here is the traceback:
>
> Traceback (most recent call last):
>    File "/usr/local/bin/attic", line 3, in <module>
>      main()
>    File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 728,
> in main
>      exit_code = archiver.run(sys.argv[1:])
>    File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 718,
> in run
>      return args.func(args)
>    File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 129,
> in do_create
>      self._process(archive, cache, args.excludes, args.exclude_caches,
> skip_inodes, path, restrict_dev)
>    File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
> in _process
>      os.path.join(path, filename), restrict_dev)
>    File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
> in _process
>      os.path.join(path, filename), restrict_dev)
>    File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
> in _process
>      os.path.join(path, filename), restrict_dev)
>    File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
> in _process
>      os.path.join(path, filename), restrict_dev)
>    File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 178,
> in _process
>      os.path.join(path, filename), restrict_dev)
>    File "/usr/local/lib/python3.4/site-packages/attic/archiver.py", line 164,
> in _process
>      archive.process_file(path, st, cache)
>    File "/usr/local/lib/python3.4/site-packages/attic/archive.py", line 416,
> in process_file
>      self.add_item(item)
>    File "/usr/local/lib/python3.4/site-packages/attic/archive.py", line 179,
> in add_item
>      self.write_checkpoint()
>    File "/usr/local/lib/python3.4/site-packages/attic/archive.py", line 183,
> in write_checkpoint
>      self.save(self.checkpoint_name)
>    File "/usr/local/lib/python3.4/site-packages/attic/archive.py", line 206,
> in save
>      self.repository.commit()
>    File "/usr/local/lib/python3.4/site-packages/attic/remote.py", line 217,
> in commit
>      return self.call('commit')
>    File "/usr/local/lib/python3.4/site-packages/attic/remote.py", line 128,
> in call
>      for resp in self.call_many(cmd, [args], **kw):
>    File "/usr/local/lib/python3.4/site-packages/attic/remote.py", line 161,
> in call_many
>      raise self.RPCError(error)
> attic.remote.RPCError: b'AssertionError'
>

Re: [attic] Remote backup fails

From:
David Zuckerman
Date:
2015-04-20 @ 15:59
On 4/20/2015 4:52 AM, Jonas Borgström wrote:
> On 20/04/15 07:35, David Zuckerman wrote:
>> Hello,
>>
>> I've been trying to set up Attic as a remote backup solution.  My primary
>> system is running FreeBSD 10.1-RELEASE (32-bit) and my remote system is a
>> Raspberry Pi running FreeBSD 10.1-STABLE.  Both are running Attic 0.15 with
>> Python 3.4.3, and I'm using Attic to start the ssh connection instead of
>> using sshfs.
>>
>> I can initialize the remote repository and start the backup without any
>> problems, but the backup will always fail at different points each time I
>> start it.  Any hints as to why this is happening?  Thanks in advance.
> 
> Hi David,
> 
> unfortunately there's a bit too many variable here to be able to tell 
> for sure what is going wrong. And as you see by the relatively unhelpful 
> traceback, remote repositories also makes debugging more difficult.
> 
> Could you try a few of these things to see if we're able to identity the 
> problem source.
> 
> * Does local (non-remote) backups work on the primary system?
> * Does local (non-remote) backups work on the remote system?
> * Does remote backups work against other remote systems (preferably 
> non-raspberries)?
> 
> / Jonas

Thanks, Jonas.  I'll do some more testing and let you know what happens.

-David