Amanda fails to backup to NFS share: MISSING line?

Raspberry Pi 4 4Gb
Openhabian 3.1.0
Hi, new installation here. Instead of migrating from RaspberryPi3 to 4 i decided to install everything from scratch, to increase my openhabian’s skills…

So, i’ve mounted on my raspberry a folder from my freenas server via NFS under /mnt/backup. The folder works, it mount automatically at boot and user openhabian@backup could write and delete files in it.

After installing amanda via openhabian-config i get no result for backup. The backup should not backup SD card, i would create an another job for that.
This is report i get:

[07:33:13] backup@openhabian:~$ amreport openhab-dir
Hostname: openhabian
Org     : openHABian openhab-dir
Config  : openhab-dir
Date    : ottobre 18, 2021

The next 10 tapes Amanda expects to use are: 10 new tapes.


FAILURE DUMP SUMMARY:
  openhabian /var/lib/openhab RESULTS MISSING
  openhabian /boot lev 0  FAILED [can't do degraded dump without holding disk]
  openhabian /etc lev 0  FAILED [can't do degraded dump without holding disk]


STATISTICS:
                          Total       Full      Incr.   Level:#
                        --------   --------   --------  --------
Estimate Time (hrs:min)     0:00
Run Time (hrs:min)          0:00
Dump Time (hrs:min)         0:00       0:00       0:00
Output Size (meg)            0.0        0.0        0.0
Original Size (meg)          0.0        0.0        0.0
Avg Compressed Size (%)      --         --         --
DLEs Dumped                    0          0          0
Avg Dump Rate (k/s)          --         --         --

Tape Time (hrs:min)         0:00       0:00       0:00
Tape Size (meg)              0.0        0.0        0.0
Tape Used (%)                0.0        0.0        0.0
DLEs Taped                     0          0          0
Parts Taped                    0          0          0
Avg Tp Write Rate (k/s)      --         --         --


NOTES:
  planner: Adding new disk openhabian:/boot.
  planner: Adding new disk openhabian:/etc.
  planner: Adding new disk openhabian:/var/lib/openhab.
  planner: WARNING: no history available for openhabian:/var/lib/openhab; guessing that size will be 500000                                                                                                                                  KB
  planner: WARNING: no history available for openhabian:/etc; guessing that size will be 500000 KB
  planner: WARNING: no history available for openhabian:/boot; guessing that size will be 500000 KB
  driver: Taper protocol error
  driver: going into degraded mode because of taper component error.
  taper: Slot 1 without label can be labeled


DUMP SUMMARY:
                                                        DUMPER STATS   TAPER STATS
HOSTNAME     DISK             L ORIG-KB  OUT-KB  COMP%  MMM:SS   KB/s MMM:SS   KB/s
------------------------------- ---------------------- -------------- -------------
openhabian   /boot                                         FAILED
openhabian   /etc                                          FAILED
openhabian   /var/lib/openhab   MISSING -------------------------------------------

(brought to you by Amanda version 3.5.1)

Backup size in 0 bytes and i get MISSING on /var/lib/openhab folder line.

This is the (big) log i get from var/log for this job:

openhabian@openhabian:~ $ sudo cat /var/log/amanda/openhab-dir/amdump.1
amdump: start at lun ott 18 07:43:58 CEST 2021
amdump: datestamp 20211018
amdump: starttime 20211018074358
amdump: starttime-locale-independent 2021-10-18 07:43:58 CEST
planner: pid 28737 executable /usr/lib/amanda/planner version 3.5.1
planner: build: VERSION="Amanda-3.5.1" BUILT_DATE="" BUILT_MACH=""
planner:        BUILT_REV="7557" BUILT_BRANCH="tags" CC="gcc"
planner: paths: bindir="/usr/sbin" sbindir="/usr/sbin"
planner:        libexecdir="/usr/lib/amanda"
planner:        amlibexecdir="/usr/lib/amanda" mandir="/usr/share/man"
planner:        AMANDA_TMPDIR="/tmp/amanda"
planner:        AMANDA_DBGDIR="/var/log/amanda" CONFIG_DIR="/etc/amanda"
planner:        DEV_PREFIX="/dev/" DUMP="/sbin/dump"
planner:        RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
planner:        XFSDUMP="/sbin/xfsdump" XFSRESTORE="/sbin/xfsrestore"
planner:        VXDUMP=UNDEF VXRESTORE=UNDEF
planner:        SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/bin/tar"
planner:        COMPRESS_PATH="/bin/gzip" UNCOMPRESS_PATH="/bin/gzip"
planner:        LPR="/usr/bin/lpr" MAILER="/usr/bin/Mail"
planner:        listed_incr_dir="/var/lib/amanda/gnutar-lists"
driver: pid 28738 executable /usr/lib/amanda/driver version 3.5.1
planner: defs:  DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
planner:        DEFAULT_TAPE_SERVER="localhost" DEFAULT_TAPE_DEVICE=""
planner:        NEED_STRSTR AMFLOCK_POSIX AMFLOCK_FLOCK AMFLOCK_LOCKF
planner:        AMFLOCK_LNLOCK SETPGRP_VOID AMANDA_DEBUG_DAYS=4 BSD_SECURITY
planner:        USE_AMANDAHOSTS CLIENT_LOGIN="backup" CHECK_USERID HAVE_GZIP
planner:        COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
planner:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
planner:        CONFIGURE_ARGS=" '--build=arm-linux-gnueabihf' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/arm-linux-gnueabihf' '--libexecdir=${prefix}/lib/arm-linux-gnueabihf' '--disable-maintainer-mode' '--disable-dependency-tracking' '--prefix=/usr' '--bindir=/usr/sbin' '--libexecdir=/usr/lib/amanda' '--without-amlibexecdir' '--without-amperldir' '--sysconfdir=/etc' '--sharedstatedir=/var/lib' '--localstatedir=/var/lib' '--with-user=backup' '--with-group=backup' '--with-tcpportrange=50000,50100' '--with-udpportrange=840,860' '--with-debugging=/var/log/amanda' '--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '--with-amandates=/var/lib/amanda/amandates' '--with-index-server=localhost' '--with-bsd-security' '--with-smbclient=/usr/bin/smbclient' '--with-amandahosts' '--with-ssh-security' '--with-bsdtcp-security' '--with-bsdudp-security' '--without-ipv6' '--enable-s3-device' 'build_alias=arm-linux-gnueabihf' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/amanda-Jk4Jds/amanda-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'LIBS=-lssl' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'"
READING CONF INFO...
planner: timestamp 20211018074358
planner: tape_length is set from tape length (6553600 KB) * runtapes (10) == 65536000 KB
planner: time 0.000: startup took 0.000 secs

SENDING FLUSHES...
ENDFLUSH

SETTING UP FOR ESTIMATES...
planner: time 0.001: setting up estimates for openhabian:/boot
openhabian:/boot overdue 18918 days for level 0
setup_estimate: openhabian:/boot: command 0, options: none    last_level -1 next_level0 -18918 level_days 0    getting estimates 0 (-3) -1 (-3) -1 (-3)
planner: time 0.001: setting up estimates for openhabian:/etc
reserving 0 out of 0 for degraded-mode dumps
openhabian:/etc overdue 18918 days for level 0
setup_estimate: openhabian:/etc: command 0, options: none    last_level -1 next_level0 -18918 level_days 0    getting estimates 0 (-3) -1 (-3) -1 (-3)
planner: time 0.001: setting up estimates for openhabian:/var/lib/openhab
openhabian:/var/lib/openhab overdue 18918 days for level 0
setup_estimate: openhabian:/var/lib/openhab: command 0, options: none    last_level -1 next_level0 -18918 level_days 0    getting estimates 0 (-3) -1 (-3) -1 (-3)
planner: time 0.001: setting up estimates took 0.000 secs

GETTING ESTIMATES...
driver: taper taper0 storage openhab-dir tape_size 6553600
driver: started dumper0 pid 28741
driver: send-cmd time 0.005 to dumper0: START 20211018074358
driver: started dumper1 pid 28742
driver: send-cmd time 0.006 to dumper1: START 20211018074358
driver: started dumper2 pid 28743
driver: send-cmd time 0.011 to dumper2: START 20211018074358
driver: started dumper3 pid 28744
driver: send-cmd time 0.013 to dumper3: START 20211018074358
driver: started dumper4 pid 28745
driver: send-cmd time 0.014 to dumper4: START 20211018074358
driver: started dumper5 pid 28746
driver: send-cmd time 0.016 to dumper5: START 20211018074358
driver: started dumper6 pid 28747
driver: send-cmd time 0.018 to dumper6: START 20211018074358
driver: started dumper7 pid 28748
driver: send-cmd time 0.020 to dumper7: START 20211018074358
driver: started dumper8 pid 28749
driver: send-cmd time 0.022 to dumper8: START 20211018074358
driver: started dumper9 pid 28750
driver: send-cmd time 0.024 to dumper9: START 20211018074358
driver: send-cmd time 0.024 to taper0: START-TAPER taper0 worker0-0 openhab-dir 20211018074358
driver: start time 0.024 inparallel 10 bandwidth 90000 diskspace 0  dir OBSOLETE datestamp 20211018074358 driver: drain-ends tapeq FIRST big-dumpers ttt
driver: state time 0.024 free kps: 90000 space: 0 taper: idle idle-dumpers: 10 qlen tapeq taper0: 0:0 runq: 0 directq: 0 roomq: 0 wakeup: 0 driver-idle: not-idle
driver: interface-state time 0.024 if default: free 90000
driver: hdisk-state time 0.024
dumper: pid 28741 executable dumper0 version 3.5.1
dumper: pid 28742 executable dumper1 version 3.5.1
dumper: pid 28749 executable dumper8 version 3.5.1
dumper: pid 28748 executable dumper7 version 3.5.1
dumper: pid 28746 executable dumper5 version 3.5.1
dumper: pid 28745 executable dumper4 version 3.5.1
dumper: pid 28747 executable dumper6 version 3.5.1
dumper: pid 28743 executable dumper2 version 3.5.1
dumper: pid 28744 executable dumper3 version 3.5.1
dumper: pid 28750 executable dumper9 version 3.5.1
planner time 1.804: got result for host openhabian disk /var/lib/openhab: 0 -> 1000000K, -1 -> -3K, -1 -> -3K
planner time 1.804: got result for host openhabian disk /etc: 0 -> 1000000K, -1 -> -3K, -1 -> -3K
planner time 1.805: got result for host openhabian disk /boot: 0 -> 1000000K, -1 -> -3K, -1 -> -3K
driver: state time 2.342 free kps: 90000 space: 0 taper: idle idle-dumpers: 10 qlen tapeq taper0: 0:0 runq: 0 directq: 0 roomq: 0 wakeup: 0 driver-idle: not-idle
driver: interface-state time 2.342 if default: free 90000
driver: hdisk-state time 2.342
driver: result time 2.342 from taper0: TAPER-OK worker0-0 ALLOW-TAKE-SCRIBE-FROM
planner: time 2.905: got partial result for host openhabian disk /var/lib/openhab: 0 -> 1000000K, -1 -> -3K, -1 -> -3K
planner: time 2.905: got partial result for host openhabian disk /etc: 0 -> 1000000K, -1 -> -3K, -1 -> -3K
planner: time 2.905: got partial result for host openhabian disk /boot: 0 -> 1000000K, -1 -> -3K, -1 -> -3K
planner: time 2.958: got result for host openhabian disk /var/lib/openhab: 0 -> 1000000K, -1 -> -3K, -1 -> -3K
planner: time 2.958: got result for host openhabian disk /etc: 0 -> 1000000K, -1 -> -3K, -1 -> -3K
planner: time 2.958: got result for host openhabian disk /boot: 0 -> 1000000K, -1 -> -3K, -1 -> -3K
planner: time 2.959: getting estimates took 2.957 secs
FAILED QUEUE: empty
DONE QUEUE:
  0: openhabian /var/lib/openhab
  1: openhabian /etc
  2: openhabian /boot

ANALYZING ESTIMATES...
pondering openhabian:/var/lib/openhab... next_level0 -18918 last_level -1 (due for level 0) (new disk, can't switch to degraded mode)
  curr level 0 nsize 1000000 csize 500000 total size 500099 total_lev0 500000 balanced-lev0size 71428
pondering openhabian:/etc... next_level0 -18918 last_level -1 (due for level 0) (new disk, can't switch to degraded mode)
  curr level 0 nsize 1000000 csize 500000 total size 1000132 total_lev0 1000000 balanced-lev0size 142856
pondering openhabian:/boot... next_level0 -18918 last_level -1 (due for level 0) (new disk, can't switch to degraded mode)
  curr level 0 nsize 1000000 csize 500000 total size 1500165 total_lev0 1500000 balanced-lev0size 214284
INITIAL SCHEDULE (size 1500165):
  openhabian /var/lib/openhab pri 18919 lev 0 nsize 1000000 csize 500000
  openhabian /etc pri 18919 lev 0 nsize 1000000 csize 500000
  openhabian /boot pri 18919 lev 0 nsize 1000000 csize 500000

DELAYING DUMPS IF NEEDED, total_size 1500165, tape length 65536000 mark 1
  delay: Total size now 1500165.

PROMOTING DUMPS IF NEEDED, total_lev0 1500000, balanced_size 214284...
planner: time 2.959: analysis took 0.000 secs

GENERATING SCHEDULE:
--------
DUMP openhabian ffffffff9efefbfffffffffffffff3fffbf71f /var/lib/openhab 20211018074358 18919 0 1970:1:1:0:0:0 1000000 500000 488 1024 "Skipping: new disk can't be dumped in degraded mode"
DUMP openhabian ffffffff9efefbfffffffffffffff3fffbf71f /etc 20211018074358 18919 0 1970:1:1:0:0:0 1000000 500000 488 1024 "Skipping: new disk can't be dumped in degraded mode"
DUMP openhabian ffffffff9efefbfffffffffffffff3fffbf71f /boot 20211018074358 18919 0 1970:1:1:0:0:0 1000000 500000 488 1024 "Skipping: new disk can't be dumped in degraded mode"
--------
driver: flush size 0
driver: send-cmd time 2.967 to taper0: SHM-WRITE worker0-0 00-00001 openhabian /var/lib/openhab 0 20211018074358 "" "" "" "" "" "" "" "" AMANDA
driver: state time 2.967 free kps: 88976 space: 0 taper: writing idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 2 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.967 if default: free 88976
driver: hdisk-state time 2.967
driver: state time 2.978 free kps: 88976 space: 0 taper: writing idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 2 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.978 if default: free 88976
driver: hdisk-state time 2.978
driver: result time 2.978 from taper0: (eof)
driver: send-cmd time 2.979 to dumper0: ABORT 00-00001 "Taper Failed"
dump of driver schedule before start degraded mode:
--------
--------
dump of driver schedule after start degraded mode:
--------
--------
driver: state time 2.979 free kps: 88976 space: 0 taper: down idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 2 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.979 if default: free 88976
driver: hdisk-state time 2.979
driver: state time 2.979 free kps: 88976 space: 0 taper: down idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 2 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.979 if default: free 88976
driver: hdisk-state time 2.979
Move runq to directq
driver: state time 2.980 free kps: 88976 space: 0 taper: down idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 2 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.980 if default: free 88976
driver: hdisk-state time 2.980
driver: state time 2.980 free kps: 88976 space: 0 taper: down idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 0 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.980 if default: free 88976
driver: hdisk-state time 2.980
driver: state time 2.980 free kps: 88976 space: 0 taper: down idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 0 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.980 if default: free 88976
driver: hdisk-state time 2.980
driver: state time 2.980 free kps: 88976 space: 0 taper: down idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 0 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.980 if default: free 88976
driver: hdisk-state time 2.980
driver: state time 2.980 free kps: 88976 space: 0 taper: down idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 0 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.980 if default: free 88976
driver: hdisk-state time 2.980
driver: state time 2.980 free kps: 88976 space: 0 taper: down idle-dumpers: 9 qlen tapeq taper0: 0:0 runq: 0 directq: 0 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 2.980 if default: free 88976
driver: hdisk-state time 2.980
driver: QUITTING time 2.980 telling children to quit
driver: send-cmd time 2.980 to dumper0: QUIT ""
driver: send-cmd time 2.980 to dumper1: QUIT ""
driver: send-cmd time 2.981 to dumper2: QUIT ""
driver: send-cmd time 2.981 to dumper3: QUIT ""
driver: send-cmd time 2.981 to dumper4: QUIT ""
driver: send-cmd time 2.981 to dumper5: QUIT ""
driver: send-cmd time 2.981 to dumper6: QUIT ""
driver: send-cmd time 2.981 to dumper7: QUIT ""
driver: send-cmd time 2.981 to dumper8: QUIT ""
driver: send-cmd time 2.981 to dumper9: QUIT ""
driver: taper0 pid 28739 exited with signal 11
driver: error time 3.004 bug: serial in use: 00-00001
driver: FINISHED time 3.004
amdump: end at lun ott 18 07:44:01 CEST 2021

Any hint?? Are thoso errors reletate to some missing permissions? i can’t understand, i’ve tried to search on google for thoso errors but i had no luck.
PS: i’ve followed the tutorial on the docs, i have enabled no_root_squash

These are the permissions for the folders:

openhabian@openhabian:~ $ ls -all /mnt/backups/
totale 18
drwxrwxr-x  5 backup backup    5 ott 17 11:34 .
drwxr-xr-x  3 root   root   4096 ott 17 09:38 ..
drwxrwxr-x  2 backup backup    3 ott 18 02:03 amanda-backups
drwxrwxr-x  4 backup backup    4 ott 17 09:46 Old
drwxrwxr-x 17 backup backup   21 ott 18 07:44 slots
openhabian@openhabian:~ $ ls -all /mnt/
totale 9
drwxr-xr-x  3 root   root   4096 ott 17 09:38 .
drwxr-xr-x 19 root   root   4096 ott 18 07:18 ..
drwxrwxr-x  5 backup backup    5 ott 17 11:34 backups

This is the amcheck, that report everything should be ok (only NOTE no warnings);

[07:56:22] backup@openhabian:~$ amcheck openhab-dir
Amanda Tape Server Host Check
-----------------------------
slot 1: contains an empty volume
Will write label 'openhab-dir-01' to new volume in slot 1.
NOTE: skipping tape-writable test
NOTE: host info dir '/var/lib/amanda/openhab-dir/curinfo/openhabian' does not exist
      It will be created on the next run
NOTE: index dir '/var/lib/amanda/openhab-dir/index/openhabian' does not exist
      it will be created on the next run
Server check took 0.786 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 2.893 seconds.  0 problems found.
(brought to you by Amanda 3.5.1)

Amanda seems to be in degraded mode.
If I was to guess you didn’t configure your Amanda to have enough storage for what you try to backup.

But that’s pure guessing. This forum is on openHAB so you won’t find Amanda experts here. I suggest you do some more log scanning on more potential reasons for degraded mode dumps or turn to the Amanda mailing list (but remember they have nothing to do with openHAB, probably don’t even know what that is).

Thank you for the reply.
I’ve managed to do something:
first seems a problem that amdump cannnot write to /var/log/amanda. I’ve tried to redo the permission to backup:backup with -R to get all the folder: nothing.
Then i’ve tried in desperation to use 777: amdump tells me that it cannot find /var/log/amanda/server/openhab-dir but the directory exists and the owner was backup with group backup.

Then i’ve tried to redo the installation of Amanda using openhabian-config, one last time and i’ve noticed an error in the console:

openhabian@openhabian:~ $ sudo openhabian-config
2021-10-20_20:36:44_CEST [openHABian] Checking for root privileges... OK
2021-10-20_20:36:45_CEST [openHABian] Disabling IPv6... OK
2021-10-20_20:36:45_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-10-20_20:36:45_CEST [openHABian] openHABian configuration tool version: [main]{2021-10-14T12:07:14+02:00}(9bbfa35)
2021-10-20_20:36:46_CEST [openHABian] Checking for changes in origin branch main... Updates available... SKIP
2021-10-20_20:36:56_CEST [openHABian] Updating Linux package information... OK
2021-10-20_20:36:56_CEST [openHABian] Beginning setup of the Amanda backup system... OK
2021-10-20_20:36:58_CEST [openHABian] Configuring Amanda backup system prerequisites... 2021-10-20_20:37:14_CEST [openHABian] Configuring Amanda backup system prerequisites... OK
*2021-10-20_20:37:35_CEST [openHABian] Creating Amanda filesystem... host: '' is not in legal name syntax (unexpected end of input)*
OK
2021-10-20_20:37:36_CEST [openHABian] Creating Amanda configuration... OK
2021-10-20_20:37:44_CEST [openHABian] Preparing storage location... OK
2021-10-20_20:38:06_CEST [openHABian] Checking for default openHABian username:password combination... FAILED
2021-10-20_20:38:08_CEST [openHABian] We hope you got what you came for! See you again soon ;)

But after i tried to launch again amdump openhab-dir it complete successfully.

It’s a mistery but backup is working :slight_smile:

set debugmode=maximum in openhabian.conf and re-do to find out where that error is generated but be warned it would overwrite your existing /etc/amanda/*