[Box Backup] how to properly use snapshot backups?

Chris Wilson chris at qwirx.com
Sat Apr 26 21:06:54 BST 2014


Hi Brendon,

On Mon, 21 Apr 2014, Chris Wilson wrote:

>> Apr 20 22:11:21 hosting bbackupd[21890]: WARNING: Failed to read attributes 
>> of directory, cannot check for rename, assuming new: 
>> '/home/peter/public_html/betterbeerblog.com/wp-content/cache/object/000000/c51'
>
> This is the third part of the problem: I'm assuming that I can create a 
> directory with no attributes, because I can't read them. I don't think that's 
> valid, and I don't know what the client will do if it finds a directory with 
> no attributes on the server. I might have to skip the directory completely if 
> we can't read it's attributes.

I think this is the real problem. I've modified bbackupd to hopefully 
prevent it from happening. Please could you update this client and see if 
the Protocol_BadUsage error happens again?

>> Apr 20 22:11:21 hosting bbackupd[21890]: WARNING: Exception thrown: 
>> ServerException(Protocol_BadUsage) (Sending a stream with a definite 
>> size of zero is not allowed in the protocol) at Protocol.cpp:703
>
> This is the fourth part of the problem. Because there are no attributes, 
> we try to upload an empty stream. This is disallowed by the protocol 
> since the beginning. I don't know exactly why, and I could remove the 
> assertion that prevents it from happening, but I don't know whether 
> anything else would break as a result. I've never seen this before apart 
> from bugs in my code, so I think that for now, I should assume that this 
> is a side effect of the bug above, and not change it.

I'm erring on the side of caution and not modifying this assertion for the 
time being. I'm hoping that the change to BackupClientFileAttributes will 
prevent the only known trigger of this assertion from happening.

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <chris+sig at qwirx.com> Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\__/_/_/_//_/___/ | We are GNU : free your mind & your software |



More information about the Boxbackup mailing list