[Box Backup] Boxbackup user

Timothy Wilson boxbackup at fluffy.co.uk
Thu Feb 21 22:58:02 GMT 2008


Whoops, bbstored starts, but I can't run bbackupquery on the clients!
I'm getting this error message:

root at userver:/backups# bbstoreaccounts -c
/etc/boxbackup/server/bbstored.conf check 2
WARNING: Failed to open lockfile: /backups/boxbackup/backup/00000002/write.lock
WARNING: Exception thrown: CommonException(OSFileError) at NamedLock.cpp(136)
Exception: Common OSFileError (Error accessing a file. Check permissions.) (1/9)

But the permissions seem to be correct?

root at userver:/backups# ls -l boxbackup/backup/00000002 | grep write
-rw-r--r-- 1 bbstored root      0 2008-02-22 09:46 write.lock


Initially bbstored was complaining about permission errors, so I ran
it as root because I didn't get it...it had the correct permissions!,
or so I thought. It couldn't get from / to the backup dir. So once I
worked this out, I did a chown, and it can get to the write directory:
I gave bbstored user a working shell, and cd'd one by one to make
sure. It can even touch files, so I can't see what the problem is.

But because I ran it as root, and now want to switch back to bbstored
user, have I totally messed things up?

Kind regards,
Timothy.



On 22/02/2008, Timothy Wilson <timothy.wilson87 at gmail.com> wrote:
> Hello Chris,
>
>  It was complaining about a lock file. I removed it, restarted the
>  daemon and it all worked. But the file name wasn't appearing on the
>  console, it was only after I got your message that I thought to look
>  in the logs..
>
>  Sorry for such a silly problem. I'm still getting used to box.
>
>  Kind regards,
>
> Timothy.
>
>
>  On 21/02/2008, Chris Wilson <chris at qwirx.com> wrote:
>  > Hi Timothy,
>  >
>  >
>  >  On Thu, 21 Feb 2008, Timothy Wilson wrote:
>  >
>  >  > I was wondering, is boxbackup hardcoded to use the _bbstored user? I've
>  >  > searched on the wiki, but can't find anything about this. I know that
>  >  > the port is hard coded, so maybe the user is too. The reason is my
>  >  > distribution doesn't seem to like the _ at the beginning. I could force
>  >  > it, but I don't want to break anything else.
>  >  >
>  >  > I'm asking this because I'm getting the raidfile 8/2 error, which is
>  >  > permissions error. But if I su to my bbstored user, I can touch files
>  >  > and make dirs, in the directory specified in my raidfile, so I'm sure
>  >  > it's not a permissions error. Unless it needs access to other things
>  >  > too?
>  >  >
>  >  > Changing the User option to root works, but I would prefer not to run
>  >  > with these permissions.
>  >
>  >
>  > The user is not hardcoded. It's stored in the User option in
>  >  bbstored.conf, as you saw.
>  >
>  >  What file do you get the raidfile 8/2 error on?
>  >
>  >  Cheers, Chris.
>  >  --
>  >
>  > _____ __     _
>  >  \  __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
>  >  / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
>  >  \__/_/_/_//_/___/ | We are GNU : free your mind & your software |
>  >  _______________________________________________
>  >  boxbackup mailing list
>  >  boxbackup at fluffy.co.uk
>  >  http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>  >
>



More information about the Boxbackup mailing list