[Box Backup] BoxBackup (chris/merge) - Store Error
Matt Brown
boxbackup@fluffy.co.uk
Sat, 1 Sep 2007 12:47:46 +0100
Hi Ben,
> It's possible that there are renmants of a previous attempt to over
> write the root directory, so there's enough there to stop it being
> rewritten and not enough to allow it to be read.
>
> BackupStoreCheck::CreateBlankDirectory() in lib/backupstore/
> BackupStoreCheck2.cpp could be modified to force overwriting of the
> root. If it couldn't be found in earlier checks, I reckon
> overwriting anything left is fine.
>
> Change
>
> obj.Open(false /* don't allow overwriting */);
> to
> obj.Open(true /* allow overwriting */);
>
> and it should be fine. Check that the other callers will be fine too.
Well I made the change, recompiled and installed. I then ran:
root@pegasus:/# bbstoreaccounts check 1
Checking store account ID 0x000001...
Phase 1, check objects...
Phase 2, check directories...
Phase 3, check root...
WARNING: Root directory doesn't exist
Phase 4, fix unattached objects...
Phase 5, fix unrecovered inconsistencies...
Phase 6, regenerate store info...
WARNING: Finished checking store account ID 0x000001: 0x1 errors found
WARNING: No changes to the store account have been made.
WARNING: Run again with fix option to fix these errors
so I then ran...
root@pegasus:/# bbstoreaccounts check 1 fix
NOTICE: Will fix errors encountered during checking.
Checking store account ID 0x000001...
Phase 1, check objects...
Phase 2, check directories...
Phase 3, check root...
WARNING: Root directory doesn't exist
Phase 4, fix unattached objects...
Phase 5, fix unrecovered inconsistencies...
Phase 6, regenerate store info...
NOTICE: New store info file written successfully.
WARNING: Finished checking store account ID 0x000001: 0x1 errors found
WARNING: You should now use bbackupquery on the client machine to
examine the store.
I then logged into the client (local server on network -Orion-) and
ran...
root@orion:/# bbackupquery
NOTICE: Box Backup Query Tool vchris_merge_1792, (c) Ben Summers and
contributors 2003-2007
Login complete.
Type "help" for a list of commands.
query > list
I now have no files :(
However when I check the filestore Dir (/data/backup/0000001 on
bbstore server) - I have all the files in there ??
If I try and kick off a new sync I get the following errors now;
Sep 1 12:40:56 orion Box Backup[13495]: NOTICE: Using configuration
file /etc/box/bbackupd.conf
Sep 1 12:40:56 orion Box Backup[13495]: Daemon configuration
summary: AutomaticBackup = false UpdateStoreInterval = 0
seconds MinimumFileAge = 0 seconds MaxUploadWait = 0 seconds
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: NOTICE: Beginning
scan of local files
Sep 1 12:40:56 orion Box Backup[13495]: Succeeded.
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Send Version(0x1)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Receive Version(0x1)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Send Login(0x1,0x0)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Receive
LoginConfirmed(0x0,0x1,0x100000,0x119900)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Send ListDirectory
(0x1,0x2,0xc,false)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Receive Success(0x1)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Receiving stream,
size 40
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Send
CreateDirectory(0x1,0x43887f79f5f40,"home")
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Sending stream,
size 49
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: WARNING:
Exception thrown: ConnectionException(Conn_TLSReadFailed) at
SocketStreamTLS.cpp(338)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: ERROR: Failed to
create remote directory '/*
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Send
CreateDirectory(0x1,0x43908109ba500,"etc")
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Sending stream,
size 49
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: WARNING:
Exception thrown: ConnectionException(Conn_TLSReadFailed) at
SocketStreamTLS.cpp(338)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: ERROR: Failed to
create remote directory '/*
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Send
CreateDirectory(0x1,0x43826ca40ce00,"var")
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: WARNING:
Exception thrown: ConnectionException(Conn_TLSWriteFailed) at
SocketStreamTLS.cpp(403)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: ERROR: Failed to
create remote directory '/*
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: Send
SetClientStoreMarker(0x4391169a3b4ff)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: ERROR: SSL error
during Write: error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad
write retry
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: WARNING:
Exception thrown: ConnectionException(Conn_TLSWriteFailed) at
SocketStreamTLS.cpp(403)
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: NOTICE: Finished
scan of local files
Sep 1 12:40:56 orion Box Backup (bbackupd)[13407]: NOTICE: File
statistics: total file size uploaded 0, bytes already on server 0,
encoded size 0
Any suggestions ?
Regards
Matt Brown