Menu

#10 Kbackup dies early on backup

Complete_Failures
open
nobody
7
2001-04-17
2000-12-01
No

I have recently installed Kbackup and I am trying to use it to backup my
linux system onto a zip drive. I worked out how to configure it all (I think)
but when I try to actually perform a backup, it dies before it has actually
started backing up any files. To make matters worse, the only error
messages it leaves are unintelligible.

The best description I can give is as follows. After telling KBackup to start
a backup, it first tells me that it is generating a file list, and certainly I can hear lots of disk accessing. Then it ext2 formats the zip drive. (Incidentally
it seems like KBackup can't handle screen positional output from mkfs, ie
when it is checking the disk for bad blocks, none of this information is
shown when run from KBackup, whereas running mkfs from a shell does
give a running update on how much of the disk has been checked.) After
the format has completed is around when I think the problems start to
occur, though it's hard to be sure precisely when because any error
messages are quickly errased by KBackup's windowing stuff.

I briefly see an error message or two flash before my eyes. I can't see
what it says, but I do register the word "killed". There also seems to be
a couple of countdowns "5.. 4.. 3.. 2.. 1..". Then it comes up with a
box full of what are supposed to be error messages. But these are
fairly useless as they contain mostly junk. Most of it looks like formatting
characters, and any useful information is pushed off to the right too far.
In any case, it seems like it has missed the real error message about
something being killed.

It would be nice if all the output could be logged to a file or something,
but there doesn't seem to be any option to do this. There is an option to
give a report, but Kbackup doesn't get far enough to produce this it
seems. There should be an option to log all errors, along with all output
from "third-party" programs, to some file for later viewing.

P.S. I am using Debian linux (kernel 2.4.0-test11, mostly potato Debian,
but a few Woody packages.)
P.P.S. My configuration is:
ConfigVersion=1.2.11
ConfigNumVersion=10211
configname="Jib_Backup"
parent="/"
local="NO"
directoriesonly="NO"
findxpertmode="NO"
findxpertflags="-print"
specifiedfilesonly="NO"
compression="GZIP"
compress_options=""
verify_archive="NO"
archive_format="AFIO"
pgpkey="root"
incremental="NO"
ddbufsize="10"
double_buffering="NO"
device="/dev/hdd1"
floppy_format="1440/1440"
device_type="BLOCKDEV"
blockdev_fs_type="ext2"
blockdev_mkfs="mkfs -t ext2 -c /dev/hdd1"
datestamp="12/02/00 13:00:52"
resetdevice="/dev/tape-reset"
manualedit="NO"
followtarops="YES"
scheduled_only_once="YES"
use_multibuf="YES"
multibuf_nblocks="100"
multibuf_blksize="1024"
multibuf_seq_info="YES"
multibuf_cmd1="DEFAULT"
multibuf_cmd2="DEFAULT"
use_patterns="NO"
manual_command="dialog --textbox /usr/doc/KBackup/manual.asc 24 77"
restore_write_log="YES"
remote_mode="NO"
remote_host="localhost"
remote_uid="adm"
CreateReport="YES"
ReportCommand="cat > /root/kbackup_report"
AutoRewind="YES"
protect_newer="YES"
afio_user_opts="-T 3k"
tar_user_opts=""
arch_filename="KBackup-Arc"
syncto="10240"
waittime="5"
TMP="/tmp"
if [ "$EDITOR" = "" ]
then
EDITOR="emacs"
fi

Discussion

  • Mark Phillips

    Mark Phillips - 2000-12-02

    I have since discovered there is a log file (of sorts). I will
    include it below.

    I'd like to comment however, that this log file appears not to
    contain all the errors received. As I said before, there are
    error messages which flash up briefly saying something about
    "killed" and this doesn't seem to appear in the log. The log
    file doesn't appear to give all that useful information.

    Anyway, for what it's worth, here it is:

    Generating logfile...
    ESC(BESC)0ESC7ESC[?47hESC[1;24rESC[m^OESC[4lESC[2JESC[?47lESC8ESC[HESC[2JESC=ESC[39;49mESC=ESC[HESC[2JESC[18dESC[36mESC[44mESC[1mESC[JESC[H KBackup Version 1.2.11 Copyright (C) 1995
    -1997 by Karsten Ball<FC>der ESC[2;1H ^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq^O ESC[3;1HESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[37mESC[47m^Nlqqqqqqqqqqqqqqqqqq^OESC[34mESC[47m Program Execution Error ESC[37mESC[47m^NqqqqqqqqqqqqqqqqqqESC[m^OESC[30mESC[47m^Nk^OESC[36mESC[44mESC[1mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m The last command returned a non-zero result (127). ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m This indicates an error during its execution. The ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m error message generated was: ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m No Error message generated! ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^NtqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqESC[m^OESC[30mESC[47m^Nu^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ESC[37mESC[44mESC[1m<ESC[33mESC[44m ESC[37mESC[44mOESC[33mESC[44mK ESC[37mESC[44m>ESC[m^OESC[30mESC[47m
    ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^NmESC[m^OESC[30mESC[47m^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[30mESC[40m ESC[36mESC[44mESC[KESC[15;38HESC[39;49mESC[m^Oetc/init.d/atd -- okay
    etc/init.d/keymaps.sh -- okay
    etc/init.d/modutils -- okay
    etc/init.d/kerneld -- okay

    ESC[74GESC[24;1HESC[2JESC[?47lESC8^MESC>ESC(BESC)0ESC7ESC[?47hESC[1;24rESC[m^OESC[4lESC[2JESC[?47lESC8ESC[HESC[2JESC=ESC[39;49mESC=ESC[HESC[2JESC[16dESC[36mESC[44mESC[1mESC[JESC[H KBackup Versi
    on 1.2.11 Copyright (C) 1995-1997 by Karsten Ball<FC>der ESC[2;1H ^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq^O ESC[3;1HESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[37mESC[47m^Nlqqqqqqqqqqqqqq^OESC[34mESC[47m Status ESC[37mESC[47m^NqqqqqqqqqqqqqqESC[m^OESC[30mESC[47m^Nk^OESC[36mESC[44mESC[1mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m Waiting: 5... ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^NmESC[m^OESC[30mESC[47m^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[30mESC[40m ESC[36mESC[44mESC[KESC[12;35HESC[39;49mESC[m^OESC[15;62HESC[24;1HESC[2JESC[?47lESC8^MESC>ESC(BESC)0ESC7ESC[?47hESC[1;2
    4rESC[m^OESC[4lESC[2JESC[?47lESC8ESC[HESC[2JESC=ESC[39;49mESC=ESC[HESC[2JESC[16dESC[36mESC[44mESC[1mESC[JESC[H KBackup Version 1.2.11 Copyright (C) 1995-1997 by Karsten Ball<FC>der
    ESC[2;1H ^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq^O ESC[3;1HESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K ESC[37mESC[47m^Nlqqqqqqqqqqqqqq^OESC[34mESC[47m Status ESC[37mESC[47m^NqqqqqqqqqqqqqqESC[m^OESC[30mESC[47m^Nk^OESC[36mESC[44mESC[1mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m Waiting: 4... ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^NmESC[m^OESC[30mESC[47m^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[30mESC[40m ESC[36mESC[44mESC[KESC[12;35HESC[39;49mESC[m^OESC[15;62HESC[24;1HESC[2JESC[?47lESC8^MESC>ESC(BESC)0ESC7ESC[?47hESC[1;2
    4rESC[m^OESC[4lESC[2JESC[?47lESC8ESC[HESC[2JESC=ESC[39;49mESC=ESC[HESC[2JESC[16dESC[36mESC[44mESC[1mESC[JESC[H KBackup Version 1.2.11 Copyright (C) 1995-1997 by Karsten Ball<FC>der
    ESC[2;1H ^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq^O ESC[3;1HESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[37mESC[47m^Nlqqqqqqqqqqqqqq^OESC[34mESC[47m Status ESC[37mESC[47m^NqqqqqqqqqqqqqqESC[m^OESC[30mESC[47m^Nk^OESC[36mESC[44mESC[1mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m Waiting: 3... ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^NmESC[m^OESC[30mESC[47m^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[30mESC[40m ESC[36mESC[44mESC[KESC[12;35HESC[39;49mESC[m^OESC[15;62HESC[24;1HESC[2JESC[?47lESC8^MESC>ESC(BESC)0ESC7ESC[?47hESC[1;2
    4rESC[m^OESC[4lESC[2JESC[?47lESC8ESC[HESC[2JESC=ESC[39;49mESC=ESC[HESC[2JESC[16dESC[36mESC[44mESC[1mESC[JESC[H KBackup Version 1.2.11 Copyright (C) 1995-1997 by Karsten Ball<FC>der
    ESC[2;1H ^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq^O ESC[3;1HESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[37mESC[47m^Nlqqqqqqqqqqqqqq^OESC[34mESC[47m Status ESC[37mESC[47m^NqqqqqqqqqqqqqqESC[m^OESC[30mESC[47m^Nk^OESC[36mESC[44mESC[1mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m Waiting: 2... ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^NmESC[m^OESC[30mESC[47m^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[30mESC[40m ESC[36mESC[44mESC[KESC[12;35HESC[39;49mESC[m^OESC[15;62HESC[24;1HESC[2JESC[?47lESC8^MESC>ESC(BESC)0ESC7ESC[?47hESC[1;2
    4rESC[m^OESC[4lESC[2JESC[?47lESC8ESC[HESC[2JESC=ESC[39;49mESC=ESC[HESC[2JESC[16dESC[36mESC[44mESC[1mESC[JESC[H KBackup Version 1.2.11 Copyright (C) 1995-1997 by Karsten Ball<FC>der
    ESC[2;1H ^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq^O ESC[3;1HESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[37mESC[47m^Nlqqqqqqqqqqqqqq^OESC[34mESC[47m Status ESC[37mESC[47m^NqqqqqqqqqqqqqqESC[m^OESC[30mESC[47m^Nk^OESC[36mESC[44mESC[1mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m Waiting: 1... ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^NmESC[m^OESC[30mESC[47m^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[30mESC[40m ESC[36mESC[44mESC[KESC[12;35HESC[39;49mESC[m^OESC[15;62HESC[24;1HESC[2JESC[?47lESC8^MESC>ESC(BESC)0ESC7ESC[?47hESC[1;2
    4rESC[m^OESC[4lESC[2JESC[?47lESC8ESC[HESC[2JESC=ESC[39;49mESC=ESC[HESC[2JESC[16dESC[36mESC[44mESC[1mESC[JESC[H KBackup Version 1.2.11 Copyright (C) 1995-1997 by Karsten Ball<FC>der
    ESC[2;1H ^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq^O ESC[3;1HESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[K
    ESC[37mESC[47m^Nlqqqqqqqqqqqqqq^OESC[34mESC[47m Status ESC[37mESC[47m^NqqqqqqqqqqqqqqESC[m^OESC[30mESC[47m^Nk^OESC[36mESC[44mESC[1mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m Waiting: finished. ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^Nx^OESC[m^OESC[30mESC[47m ^Nx^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[37mESC[47m^NmESC[m^OESC[30mESC[47m^Nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj^OESC[30mESC[40mESC[1m ESC[36mESC[44mESC[K
    ESC[30mESC[40m ESC[36mESC[44mESC[KESC[12;40HESC[39;49mESC[m^OESC[15;62HESC[24;1HESC[2JESC[?47lESC8^MESC>afio: "-": Broken pipe

     
  • Mark Phillips

    Mark Phillips - 2000-12-02

    I've narrowed down much more finely where the error
    occurs. It occurs on the lines 159-161 of the file
    backup_src. Ie, in the lines:

    if [ $followtarops = YES ]
    then
    echo "( cat $TMP/$TARLISTFILE | \
    $AFIO -o -v $afio_user_opts $afioopt - | write_data $writeto )" >$TMP/$TMPFILE
    . $TMP/$TMPFILE 2>&1 | tee $TMP/$TARLOGFILE

    It appears that the actual backing up does start to take place,
    but it doesn't get far before it dies.

    Can anyone tell me how I can test things from here in order
    to find out what the error is?

     
  • Mark Phillips

    Mark Phillips - 2000-12-02

    I found out what was causing it to fail. For some reason I had
    accidently turned multibuffering on. Turning it off fixed things.

    But there is still the fact that in order to find this problem out
    I had to debug the code in minute detail --- putting trace
    statements in various scripts etc. There must be a better
    way of dealing with the errors so that it gives you a better
    idea of why things didn't work.

     
  • David Frascone

    David Frascone - 2001-04-17
    • priority: 5 --> 7
     

Log in to post a comment.

MongoDB Logo MongoDB