[Box Backup] Error messages at execution
Pascal Lalonde
boxbackup@fluffy.co.uk
Wed, 28 Jan 2004 00:30:55 -0500
First of all, I didn't succeed in running bbstored on an OpenBSD 3.3
box. I keep getting an 'Exception: RaidFile (2/8)' when trying to create
an account.
So I decided to try on a 3.4 box, although I'm not root on this one. So
I modified all the paths in the .h files from /etc/box to
/home/plalonde/etc/box. I compiled everything, and the installation went
all fine. But when I execute bbstored, I get: 'bbstored: exception Common
(1/2)'.
My setups are all with RAID disabled, since I don't have many hard discs
to do my tests.
The thing is, the exception messages are not quite "revealing" ;-)
I tried to gdb bbstored, but I couldn't get it to match the executable
with the source files. So I'm quite stuck.
And I generated my certificates by hand, like this:
openssl req -newkey rsa:2048 -nodes -keyout domain.com-key.pem -keyform
PEM -out domain.com-csr.pem -outform PEM
and I signed it with my already-existing test CA key:
openssl ca -in domain.com-csr.pem
and copied the resulting certificate as clientCA.pem
How do you usually debug boxbackup? And, do you know what these
exceptions mean?
Here is my raidfile.conf:
----
disc0
{
SetNumber = 0
BlockSize = 2048
Dir0 = /home/plalonde/bbackup
Dir1 = /home/plalonde/bbackup
Dir2 = /home/plalonde/bbackup
}
----
And my bbstored.conf:
----
RaidFileConf = /home/plalonde/etc/box/raidfile.conf
AccountDatabase = /home/plalonde/etc/box/bbstored/accounts.txt
TimeBetweenHousekeeping = 900
Server
{
PidFile = /var/run/bbstored.pid
User = plalonde
ListenAddresses = inet:domain.com
CertificateFile = /home/plalonde/etc/box/bbstored/domain.com-cert.pem
PrivateKeyFile = /home/plalonde/etc/box/bbstored/domain.com-key.pem
TrustedCAsFile = /home/plalonde/etc/box/bbstored/clientCA.pem
}
----
Output of 'bbstoreaccounts info 1':
----
Account ID: 00000001
Last object ID: 1
Blocks used: 2
Blocks used by old files: 0
Blocks used by deleted files: 0
Blocks used by directories: 2
Block soft limit: 841061
Block hard limit: 1041061
Client store marker: 0
----
I know I don't have what could be called "standard setups"...
:)
Thanks,
Pascal Lalonde