[Box Backup] new disk -> error 1/9 Error accessing a file. Check permissions.

Ben Summers boxbackup@fluffy.co.uk
Fri, 16 Dec 2005 10:01:58 +0000


On 16 Dec 2005, at 00:12, Andreas Schrafl wrote:

> sudo bbstoreaccounts info 3e8
> Exception: RaidFile RaidFileDoesntExist (2/11)
>
> so somehow the raidfile doen't seem to be there but it is as you  
> can see form the listing. Somehow it doesn't recognize it. are  
> there any 'hidden' files or something?

What's the contents of /etc/box/bbstored/accounts.txt ?

Output of ls -la /backup/bbstore/000003e8 ?

Ben




>
>
> Andreas Schrafl wrote:
>> Ben Summers wrote:
>>>
>>> On 15 Dec 2005, at 21:43, Andreas Schrafl wrote:
>>>
>>>> Hi
>>>>
>>>> I changed my server by putting the disk into a new machine (same  
>>>> network cards) and added a disk. now everything went well except  
>>>> box.
>>>>
>>>> I move to the files to the new disk with cp -R -p and changed  
>>>> raidfile.conf to the new path (I don't have a raid so 3 times  
>>>> the same path).
>>>> Now when I start box it runs but can't access the accounts.
>>>>
>>>> I get this in the log:
>>>>
>>>> bbstored[21972]: Starting daemon (config: /etc/box/ 
>>>> bbstored.conf) (version 0.09)
>>>> bbstored/hk[30903]: Housekeeping process started
>>>> bbstored/hk[30903]: Starting housekeeping
>>>> bbstored/hk[30903]: while housekeeping account 000003E8,  
>>>> exception Common OSFileError (Error accessing a file. Check  
>>>> permissions.) (1/9) -- aborting housekeeping run for this account
>>>> bbstored/hk[30903]: while housekeeping account 000007D0,  
>>>> exception Common OSFileError (Error accessing a file. Check  
>>>> permissions.) (1/9) -- aborting housekeeping run for this account
>>>> bbstored/hk[30903]: while housekeeping account 00000BB8,  
>>>> exception Common OSFileError (Error accessing a file. Check  
>>>> permissions.) (1/9) -- aborting housekeeping run for this account
>>>> bbstored/hk[30903]: while housekeeping account 00000FA0,  
>>>> exception Common OSFileError (Error accessing a file. Check  
>>>> permissions.) (1/9) -- aborting housekeeping run for this account
>>>> bbstored/hk[30903]: Finished housekeeping
>>>>
>>>> So I checked the config files and the data files and all have  
>>>> permission for _bbstored (since I copied it with -p).
>>>>
>>>> Now I know I should have tested everything with just the new  
>>>> disk or just the new computer but I made both and if I undo the  
>>>> disk change (change back the raidfile.conf) I get exactly the  
>>>> same error.
>>>>
>>>> Could it be something with the encryption?
>>>
>>> Only relevant for the client.
>>>
>>>> I thougt I didn't change anything there since I just took out  
>>>> the disk of one machine and pluged it into the other (you can do  
>>>> this with OpenBSD).
>>>
>>> No reason this shouldn't work.
>>>
>>> Can you post your raidfile.conf, bbstored.conf, and an ls -la of  
>>> the directory the raidfile.conf points to?
>>>
>> here are the requested things:
>> more /etc/box/raidfile.conf
>> disc0
>> {
>>         SetNumber = 0
>>         BlockSize = 2048
>>         Dir0 = /backup/bbstore
>>         Dir1 = /backup/bbstore
>>         Dir2 = /backup/bbstore
>> }
>> more /etc/box/bbstored.conf
>> RaidFileConf = /etc/box/raidfile.conf
>> AccountDatabase = /etc/box/bbstored/accounts.txt
>> # Uncomment this line to see exactly what commands are being  
>> received from clients.
>> ExtendedLogging = yes
>> # scan all accounts for files which need deleting every 15 minutes.
>> TimeBetweenHousekeeping = 900
>> Server
>> {
>>         PidFile = /var/run/bbstored.pid
>>         User = _bbstored
>>         ListenAddresses = inet:IPMASKED
>>         CertificateFile = /etc/box/bbstored/DOMAINNAME-cert.pem
>>         PrivateKeyFile = /etc/box/bbstored/DOMAINNAME-key.pem
>>         TrustedCAsFile = /etc/box/bbstored/clientCA.pem
>> }
>> ls -la /backup/bbstore/
>> total 60
>> drwxr-xr-x    6 _bbstored  wheel   512 Dec 15 21:48 .
>> drwxr-xr-x    4 root       wheel   512 Dec 15 21:14 ..
>> drwxr-xr-x  258 _bbstored  wheel  6656 Dec 15 21:09 000003e8
>> drwxr-xr-x  258 _bbstored  wheel  3584 Dec 15 21:09 000007d0
>> drwxr-xr-x  239 _bbstored  wheel  7168 Dec 15 21:09 00000bb8
>> drwxr-xr-x  102 _bbstored  wheel  5632 Dec 15 21:09 00000fa0
>>> Ben
>>>
>>>
>>> _______________________________________________
>>> boxbackup mailing list
>>> boxbackup@fluffy.co.uk
>>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>> _______________________________________________
>> boxbackup mailing list
>> boxbackup@fluffy.co.uk
>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
> _______________________________________________
> boxbackup mailing list
> boxbackup@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup