[Box Backup] Reboot server.... "unknown error (backup-error)"

Jack Warkentin jwark at eastlink.ca
Wed Mar 30 19:30:31 BST 2011


Hi Steve

I had exactly this problem with my Debian system (from which Ubuntu is derived) and solved it 
in the following way. This must be done as root.

# cd /etc
# ls -d rc*
rc0.d/	rc1.d/	rc2.d/	rc3.d/	rc4.d/	rc5.d/	rc6.d/	rc.local*  rcS.d/

The rc* directories control the starting and stopping of various services at each of the 
various runlevels. In general, rc?.d does this for runlevel ?. This is done by creating 
symbolic links to the scripts in /etc/init.d. Here are the names of the symbolic links for 
boxbackup after fixing them.

# find rc* -type l -iname '*boxbackup*'
rc0.d/K21boxbackup-server
rc0.d/K20boxbackup-client
rc1.d/K21boxbackup-server
rc1.d/K20boxbackup-client
rc2.d/S21boxbackup-client
rc2.d/S20boxbackup-server
rc3.d/S21boxbackup-client
rc3.d/S20boxbackup-server
rc4.d/S21boxbackup-client
rc4.d/S20boxbackup-server
rc5.d/S21boxbackup-client
rc5.d/S20boxbackup-server
rc6.d/K21boxbackup-server
rc6.d/K20boxbackup-client

Here is what they actually look like.

# find rc* -type l -iname '*boxbackup*' -exec ls -al \{\} \;
lrwxrwxrwx 1 root root 26 Nov 26 15:54 rc0.d/K21boxbackup-server -> ../init.d/boxbackup-server
lrwxrwxrwx 1 root root 26 Nov 26 16:40 rc0.d/K20boxbackup-client -> ../init.d/boxbackup-client
lrwxrwxrwx 1 root root 26 Nov 26 15:54 rc1.d/K21boxbackup-server -> ../init.d/boxbackup-server
lrwxrwxrwx 1 root root 26 Nov 26 16:40 rc1.d/K20boxbackup-client -> ../init.d/boxbackup-client
lrwxrwxrwx 1 root root 26 Nov 26 16:40 rc2.d/S21boxbackup-client -> ../init.d/boxbackup-client
lrwxrwxrwx 1 root root 26 Nov 26 15:54 rc2.d/S20boxbackup-server -> ../init.d/boxbackup-server
lrwxrwxrwx 1 root root 26 Nov 26 16:40 rc3.d/S21boxbackup-client -> ../init.d/boxbackup-client
lrwxrwxrwx 1 root root 26 Nov 26 15:54 rc3.d/S20boxbackup-server -> ../init.d/boxbackup-server
lrwxrwxrwx 1 root root 26 Nov 26 16:40 rc4.d/S21boxbackup-client -> ../init.d/boxbackup-client
lrwxrwxrwx 1 root root 26 Nov 26 15:54 rc4.d/S20boxbackup-server -> ../init.d/boxbackup-server
lrwxrwxrwx 1 root root 26 Nov 26 16:40 rc5.d/S21boxbackup-client -> ../init.d/boxbackup-client
lrwxrwxrwx 1 root root 26 Nov 26 15:54 rc5.d/S20boxbackup-server -> ../init.d/boxbackup-server
lrwxrwxrwx 1 root root 26 Nov 26 15:54 rc6.d/K21boxbackup-server -> ../init.d/boxbackup-server
lrwxrwxrwx 1 root root 26 Nov 26 16:40 rc6.d/K20boxbackup-client -> ../init.d/boxbackup-client

Before fixing, the two-digit numbers after the "K" and "S" were the same. This meant that the 
client was started before the server, since S20boxbackup-client alphanumerically precedes 
S20boxbackup-server. By changing the digits as I have done, the server gets started first, as 
it now precedes the client alphanumerically. Also, the client gets killed before the server.

The links can easily be changed using the mv command. For example,

#cd rc0.d
#mv K20boxbackup-server K21boxbackup-server

The Debian Reference manual has a pretty complete chapter on runlevels and their management. To 
obtain these you would need the packages

debian-reference-common
debian-reference
debian-reference-en

These are distribution independent and can be obtained from the debian web site at 
www.debian.org if Ubuntu does not have then in their repositories.

Hope this helps.

Jack

Steve wrote:
> I'm using the default scripts to run boxbackup client and server from
> Ubuntu Server 10.10, and - as far as I can tell - the client is starting
> before the server... and is failing to connect - hence generating an
> error message.
>
> Is the client intended to delay startup until the server has started
> where both are installed on the same host?  If not, would it be easy to
> implement it as a feature (the fewer errors in log files that need to be
> manually verified, the better.)
> _______________________________________________
> Boxbackup mailing list
> Boxbackup at boxbackup.org
> http://lists.boxbackup.org/cgi-bin/mailman/listinfo/boxbackup
>

-- 
Jack Warkentin, phone 902-404-0457, email jwark at eastlink.ca
39 Inverness Avenue, Halifax, Nova Scotia, Canada, B3P 1X6



More information about the Boxbackup mailing list