openHABian - amanda: ERROR resolve hostname(openHABianDevice)

running openHAB3.2-stable on openHABian 1.7.3 and setting up amanda backup I ran into the following error:

openhabian@openHABUtilities:~ $ sudo su - backup
[14:39:38] backup@openHABUtilities:~$ 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/openHABianDevice' does not exist
      It will be created on the next run
NOTE: index dir '/var/lib/amanda/openhab-dir/index/openHABianDevice' does not exist
      it will be created on the next run
Server check took 2.794 seconds
Amanda Backup Client Hosts Check
--------------------------------
ERROR: openHABianDevice: selfcheck request failed: resolve_hostname(openHABianDevice): Name or service not known
Client check: 1 host checked in 14.112 seconds.  1 problem found.
(brought to you by Amanda 3.5.1)

funny thing: the hostname is openHABUtilities:

[14:44:09] backup@openHABUtilities:~$ hostname
openHABUtilities

but even login-screen shows openHABianDevice:

###############################################################################
###############  openHABianDevice  ############################################
###############################################################################
##        Ip = Unable to parse ip . Please debug.
##   Release = Raspbian GNU/Linux 11 (bullseye)
##    Kernel = Linux 5.10.103-v7+
##  Platform = Raspberry Pi 3 Model B Rev 1.2
##    Uptime = 15 day(s). 16:5:17
## CPU Usage = 2.52% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
##  CPU Load = 1m: 0.52, 5m: 0.18, 15m: 0.12
##    Memory = Free: 0.08GB (9%), Used: 0.86GB (91%), Total: 0.94GB
##      Swap = Free: 1.33GB (100%), Used: 0.00GB (0%), Total: 1.33GB
##      Root = Free: 1.30GB (19%), Used: 5.37GB (81%), Total: 7.00GB
##   Updates = 9 apt updates available.
##  Sessions = 1 session(s)
## Processes = 121 running processes of 32768 maximum processes
###############################################################################

is this the problem? and how and where can i change it?
openhabian-config:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค openHABian Configuration Tool โ€” [openHAB3]{2022-03-27T13:22:11-06:00}(1305ac7) โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
 โ”‚                                                                                                                    โ”‚
 โ”‚   31 | Change hostname       Change the name of this system, currently 'openHABUtilities'                      โ†‘   โ”‚
 โ”‚   32 | Set system locale     Change system language, currently 'en_GB.UTF-8'                                   โ–ฎ   โ”‚
...

Your hostname is openHAButilities so you need to use that in the disklist file if you want to backup that box/partition.
Or create that hostname for it
Login screen is unrelated. Firemotd (which creates that) is broken.

for everyone else, the disklist file is located here in a openHABian-led installation:

  • /etc/amanda/openhab-dir/disklist

after changing the hostname in that file it now worked.

1 Like

Is there a reason why the openhabian-config amanda setup uses hostname โ€œopenhabianโ€ in disklist even if the real hostname (see command โ€œhostnameโ€) is different?