Amanda backup install fails with openhabian-config

  • Platform information:
    • Hardware: Raspberry Pi 3 Model B Plus Rev 1.3
    • OS: Raspbian GNU/Linux 10 (buster)
    • Java Runtime Environment: openjdk version “11.0.10” 2021-01-19 LTS
    • openHAB version: 3.0.1
  • Issue of the topic:
    I installed openhab yesterday from an image : openhabian-pi-raspios32-v1.6.3.img.xz
    I have a new 64 GB SD card
    I have attached an external USB 512GB Hard Disk
    I did setup SD mirroring successfully (well I did not try a recovery yet) on said external disk. => Option 53 of openHabian Configuration Tool
    It created a mount point /storage that I want to use to install Amanda System Backup to with Option 52 but it fails to complete.
    It looks like a type with the “//” but I have no idea how to fix it.

Thanks for any help :slight_smile:

It all works well until here :

$ chmod 644 /etc/systemd/system//amdump-openhab-dir.*
chmod: cannot access '/etc/systemd/system//amdump-openhab-dir.*': No such file or directory

Full log here :

openhabian@openhabian:/etc/systemd/system $ sudo openhabian-config
2021-02-16_15:50:11_CET [openHABian] Checking for root privileges... OK
2021-02-16_15:50:12_CET [openHABian] Disabling IPv6...
$ sysctl --load
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
OK
2021-02-16_15:50:12_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-02-16_15:50:12_CET [openHABian] openHABian configuration tool version: [main]v1.6.3-1202(7a02c12)
2021-02-16_15:50:12_CET [openHABian] Checking for changes in origin branch HEAD... OK
2021-02-16_15:50:13_CET [openHABian] Switching to branch HEAD... OK
2021-02-16_15:50:18_CET [openHABian] Updating Linux package information... OK
2021-02-16_15:50:23_CET [openHABian] Beginning setup of the Amanda backup system... OK
2021-02-16_15:50:24_CET [openHABian] Configuring Amanda backup system prerequisites... 2021-02-16_15:50:30_CET [openHABian] Configuring Amanda backup system prerequisites...
$ chpasswd

$ usermod --append --groups backup openhabian

$ usermod --append --groups backup backup

$ chsh --shell /bin/bash backup
OK
2021-02-16_15:50:43_CET [openHABian] Creating Amanda filesystem...
$ mkdir -p /etc/amanda/openhab-dir /var/lib/amanda/openhab-dir/curinfo /var/log/amanda/openhab-dir /var/lib/amanda/openhab-dir/index

$ touch /etc/amanda/openhab-dir/tapelist

$ chown --recursive backup:backup /var/backups/.amandahosts /etc/amanda/openhab-dir /var/lib/amanda/openhab-dir/curinfo /var/lib/amanda/openhab-dir/index /var/log/amanda

$ chown --recursive backup:backup /storage/amandaBackup

$ chmod --recursive g+rxw /storage/amandaBackup

$ mkdir -p /storage/amandaBackup/slots

$ chown --recursive backup:backup /storage/amandaBackup/slots

$ ln -sf /storage/amandaBackup/slots /storage/amandaBackup/slots/drive0

$ ln -sf /storage/amandaBackup/slots /storage/amandaBackup/slots/drive1

$ chmod 644 /etc/amanda/openhab-dir/amanda.conf
OK
2021-02-16_15:50:43_CET [openHABian] Creating Amanda configuration...
$ rm -f /etc/amanda/openhab-dir/disklist

$ chmod 644 /etc/amanda/openhab-dir/disklist /etc/amanda/openhab-dir/amanda-client.conf
OK
2021-02-16_15:50:45_CET [openHABian] Preparing storage location...
$ mkdir -p /storage/amandaBackup/slots/slot15

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot15

$ mkdir -p /storage/amandaBackup/slots/slot14

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot14

$ mkdir -p /storage/amandaBackup/slots/slot13

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot13

$ mkdir -p /storage/amandaBackup/slots/slot12

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot12

$ mkdir -p /storage/amandaBackup/slots/slot11

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot11

$ mkdir -p /storage/amandaBackup/slots/slot10

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot10

$ mkdir -p /storage/amandaBackup/slots/slot9

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot9

$ mkdir -p /storage/amandaBackup/slots/slot8

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot8

$ mkdir -p /storage/amandaBackup/slots/slot7

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot7

$ mkdir -p /storage/amandaBackup/slots/slot6

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot6

$ mkdir -p /storage/amandaBackup/slots/slot5

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot5

$ mkdir -p /storage/amandaBackup/slots/slot4

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot4

$ mkdir -p /storage/amandaBackup/slots/slot3

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot3

$ mkdir -p /storage/amandaBackup/slots/slot2

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot2

$ mkdir -p /storage/amandaBackup/slots/slot1

$ chown --recursive backup:backup /storage/amandaBackup/slots/slot1
OK

$ chmod 644 /etc/systemd/system//amdump-openhab-dir.*
chmod: cannot access '/etc/systemd/system//amdump-openhab-dir.*': No such file or directory
FAILED (permissions)
2021-02-16_15:50:49_CET [openHABian] Checking for default openHABian username:password combination... OK
2021-02-16_15:50:49_CET [openHABian] We hope you got what you came for! See you again soon ;)
openhabian@openhabian:/etc/systemd/system $

That now clearly is not what it was intended to be used for, destination is supposed to be a SD card.
But interesting. Let me know if you can boot from that HDD.

It isn’t full. Set debugmode=maximum and redo/re-record please.

Before, show if there are any files Amanda install has created: ls -l /etc/systemd/system/amdump*

Before, show if there are any files Amanda install has created: ls -l /etc/systemd/system/amdump*

It shows :

openhabian@openhabian:~ $ ls -l /etc/systemd/system/amdump*
-rw-r--r-- 1 root root 254 Feb 17 12:33 /etc/systemd/system/amdump-openhab-dir.service
-rw-r--r-- 1 root root 235 Feb 17 12:33 /etc/systemd/system/amdump-openhab-dir.timer

Then, maximum log , I cannot put it here, that gives me an Error 502 when I hit “Reply”, so I share a dropbox link to a txt file : Dropbox - debugAmandaLog.txt - Simplify your life

Update (use main branch) and try again please.

Issue fixed! Thank you :slight_smile: