[Box Backup] error fixing account after server crash

Baltasar Cevc boxbackup@fluffy.co.uk
Fri, 8 Jun 2007 11:37:17 +0200


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-7--1022708806
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi,

I've got an boxbackup server which crashed a few days ago; now I'm  
trying to resume backups. As the link is quite slow I'd rather reuse  
the data that's already on the server. However, I'm unable to fix one  
of the accounts with bbstoreaccounts. It's the second time I run into  
this error, so I thought it would be worth asking...
Permissions seem correct to mee (everything owned by bbstored:bbstored).

Do you have any hints? I've tried to compile a debug version and find  
the error using it, but I've got an "assertation failed" error there.

Thanx a lot,
Baltasar


root@bak:~# bbstoreaccounts check 3
Check store account ID 00000003
Phase 1, check objects...
Phase 2, check directories...
Phase 3, check root...
Root directory doesn't exist
Phase 4, fix unattached objects...
Phase 5, fix unrecovered inconsistencies...
Phase 6, regenerate store info...
Load of existing store info failed, regenerating.
NOTE: Soft limit for account changed to ensure housekeeping doesn't  
delete files on next run
NOTE: Hard limit for account changed to ensure housekeeping doesn't  
delete files on next run
2 errors found
NOTE: No changes to the store account have been made.
Run again with fix option to fix these errors
You should now use bbackupquery on the client machine to examine the  
store.
root@bak:~#

-----------------------
root@bak:~# bbstoreaccounts check 3 fix
NOTE: Will fix errors encountered during checking.
Check store account ID 00000003
Phase 1, check objects...
Phase 2, check directories...
Phase 3, check root...
Root directory doesn't exist
Exception: RaidFile CannotOverwriteExistingFile (2/4)


----------------------- debug version output
root@bak:~# bbstoreaccounts-debug check 3 fix
NOTE: Will fix errors encountered during checking.
Check store account ID 00000003
Phase 1, check objects...
Max dir starting ID is 0
Phase 2, check directories...
Phase 3, check root...
ASSERT FAILED: [pblock != 0] at BackupStoreCheckData.cpp(182)
Obtained 8 stack frames.
bbstoreaccounts-debug [0x8080c6d]
bbstoreaccounts-debug [0x805f458]
bbstoreaccounts-debug [0x8056e7b]
bbstoreaccounts-debug [0x8050a69]
bbstoreaccounts-debug [0x804b4b4]
bbstoreaccounts-debug [0x804d19e]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8) [0xb7ae9ea8]
bbstoreaccounts-debug(__gxx_personality_v0+0xf9) [0x804afd1]
Exception thrown: CommonException(AssertFailed) at  
BackupStoreCheckData.cpp(182)
Exception: Common AssertFailed (1/1)

----------------------- strace output (left out the first lines, as  
the output's quite long)
...
write(1, "Check store account ID 00000003\n"..., 58Check store  
account ID 00000003
Phase 1, check objects...
) = 58
open("/backup/int-2/box//backup/00000003/", O_RDONLY|O_NONBLOCK| 
O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
getdents64(4, /* 128 entries */, 4096)  = 4072
getdents64(4, /* 128 entries */, 4096)  = 4088
getdents64(4, /* 169 entries */, 4096)  = 4096
getdents64(4, /* 90 entries */, 4096)   = 2160
getdents64(4, /* 0 entries */, 4096)    = 0
close(4)                                = 0
stat64("/backup/int-2/box//backup/00000003", {st_mode=S_IFDIR|0755,  
st_size=12288, ...}) = 0
open("/backup/int-2/box//backup/00000003", O_RDONLY|O_NONBLOCK| 
O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
getdents64(4, /* 128 entries */, 4096)  = 4072
getdents64(4, /* 128 entries */, 4096)  = 4088
getdents64(4, /* 169 entries */, 4096)  = 4096
getdents64(4, /* 90 entries */, 4096)   = 2160
getdents64(4, /* 0 entries */, 4096)    = 0
close(4)                                = 0
write(1, "Phase 2, check directories...\n", 30Phase 2, check  
directories...
) = 30
write(1, "Phase 3, check root...\n", 23Phase 3, check root...
) = 23
write(1, "Root directory doesn\'t exist\n", 29Root directory doesn't  
exist
) = 29
stat64("/backup/int-2/box//backup/00000003/", {st_mode=S_IFDIR|0755,  
st_size=12288, ...}) = 0
stat64("/backup/int-2/box//backup/00000003/o01.rfw", {st_mode=S_IFREG| 
0644, st_size=96, ...}) = 0
close(3)                                = 0
getgid32()                              = 106
setresgid32(-1, 106, -1)                = 0
getuid32()                              = 104
setresuid32(-1, 104, -1)                = 0
write(1, "Exception: RaidFile CannotOverwr"..., 54Exception: RaidFile  
CannotOverwriteExistingFile (2/4)
) = 54
munmap(0xb7fbe000, 4096)                = 0
exit_group(1)                           = ?
Process 7217 detached


((( Baltasar Cevc


) World wide web:
   # http://www.openairkino.net/ (a project for the local youth;  
German only)
   # http://technik.juz-kirchheim.de/ (programming and admin projects)
   # http://baltasar.cevc-topp.de/ (private homepage)
) Phone:
   +49 176 23 22 08 22
)



--Apple-Mail-7--1022708806
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGaSNNp2YsmzTbIwYRApDAAKCVKUolUhuo+Su5ObVlXOZhGcoN1QCffZ4x
rDVubBC5cB3Ve2iPOMcMcYM=
=aAI0
-----END PGP SIGNATURE-----

--Apple-Mail-7--1022708806--