Hello again,
i don’t know what to say, my actual openhabian setup seems to be doomed…
after some problems (well, more like misunderstandings) with the backup user yesterday i was setting up amanda and was just running my first amdump when suddenly a strong thunderstorm came up and caused several power failures… disconnected everything (NAS, raspberry) and wanted to restart just now, but something has “happened”:
i was hoping this would solve the problem but it seems there’s more:
[12:22:53] backup@OHab2:~$ amcheck openhab-dir
Amanda Tape Server Host Check
-----------------------------
NOTE: logdir '/var/log/amanda/openhab-dir' (No such file or directory)
you must create directory
ERROR: directory '/storage/amanda-backup/slots' does not exist
NOTE: storage 'openhab-dir': retentions-tapes (14) <= runspercycle (14)
NOTE: host info dir '/var/lib/amanda/openhab-dir/curinfo/OHab2' does not exist
It will be created on the next run
NOTE: index dir '/var/lib/amanda/openhab-dir/index/OHab2' does not exist
it will be created on the next run
Server check took 0.580 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 3.339 seconds. 0 problems found.
(brought to you by Amanda 3.5.1)
[12:23:58] backup@OHab2:~$ amreport openhab-dir
amreport: can't read /var/log/amanda/openhab-dir at /usr/lib/arm-linux-gnueabihf/amanda/perl/Amanda/Logfile.pm line 696.
The directory /var/log/amanda/openhab-dir is missing.
You can create that directory with the same steps as explained earlier.
I am not experienced to openhabian-config as it looks like more items could be missing it might be wise to try to repair the installation by reexecuting the amanda setup from the openhabian-config menu.
hi!
created /var/log/amanda/openhab-dir with permissions but still had problems.
re-installed amanda via openhabian-config and it seems the backup went through:
[13:37:47] backup@OHab2:~$ amdump openhab-dir
[14:04:35] backup@OHab2:~$ amreport openhab-dir
Hostname: OHab2
Org : openHABian openhab-dir
Config : openhab-dir
Date : Juli 11, 2020
These dumps were to tape openHABian-openhab-dir-001.
The next 10 tapes Amanda expects to use are: 10 new tapes.
STATISTICS:
Total Full Incr. Level:#
-------- -------- -------- --------
Estimate Time (hrs:min) 0:06
Run Time (hrs:min) 0:26
Dump Time (hrs:min) 0:19 0:19 0:00
Output Size (meg) 2516.2 2516.2 0.0
Original Size (meg) 15286.3 15286.3 0.0
Avg Compressed Size (%) 16.5 16.5 --
DLEs Dumped 3 3 0
Avg Dump Rate (k/s) 2237.2 2237.2 --
Tape Time (hrs:min) 0:20 0:20 0:00
Tape Size (meg) 2516.2 2516.2 0.0
Tape Used (%) 57.6 57.6 0.0
DLEs Taped 3 3 0
Parts Taped 3 3 0
Avg Tp Write Rate (k/s) 2165.2 2165.2 --
USAGE BY TAPE:
Label Time Size % DLEs Parts
openHABian-openhab-dir-001 0:20 2576610K 57.6 3 3
NOTES:
planner: tapecycle (14) <= runspercycle (14)
planner: Adding new disk OHab2:/dev/mmcblk0.
planner: Adding new disk OHab2:/etc/openhab2.
planner: Adding new disk OHab2:/var/lib/openhab2.
planner: WARNING: no history available for OHab2:/var/lib/openhab2; guessing that size will be 1000000 KB
planner: WARNING: no history available for OHab2:/etc/openhab2; guessing that size will be 1000000 KB
taper: Slot 1 without label can be labeled
taper: tape openHABian-openhab-dir-001 kb 2576610 fm 3 [OK]
amreport: 2020-07-11 14:04:35 1juEF9-00029g-5k Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=112 egid=119
amreport: 2020-07-11 14:04:35 1juEF9-00029g-5k <= backup@ohab2 U=backup P=local S=3050
amreport: 2020-07-11 14:04:35 1juEF9-00029g-5k Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=112 egid=119
amreport: exim: could not open panic log - aborting: see message(s) above
amreport: Can't send mail: sendmail process failed with error code 1
big estimate: OHab2 /dev/mmcblk0 0
est: 7779104K out 2481550K
big estimate: OHab2 /etc/openhab2 0
est: 1000032K out 1740K
big estimate: OHab2 /var/lib/openhab2 0
est: 1000032K out 93320K
DUMP SUMMARY:
DUMPER STATS TAPER STATS
HOSTNAME DISK L ORIG-KB OUT-KB COMP% MMM:SS KB/s MMM:SS KB/s
-------------------------------- ----------------------- --------------- -------------
OHab2 /dev/mmcblk0 0 15558144 2481550 16.0 19:07 2162.9 19:06 2165.4
OHab2 /etc/openhab2 0 1740 1740 -- 0:01 1447.9 0:01 1740.0
OHab2 /var/lib/openhab2 0 93320 93320 -- 0:03 29592.8 0:43 2170.2
(brought to you by Amanda version 3.5.1)
still get some errors:
amreport: 2020-07-11 14:04:35 1juEF9-00029g-5k Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=112 egid=119
amreport: 2020-07-11 14:04:35 1juEF9-00029g-5k <= backup@ohab2 U=backup P=local S=3050
amreport: 2020-07-11 14:04:35 1juEF9-00029g-5k Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=112 egid=119
amreport: exim: could not open panic log - aborting: see message(s) above
is exim4 installed ( there should have been a question about if it should be installed during installation of amanda ) ?
also in this case check if the directory /var/log/exim4 exists ( ls -ld /var/log/exim4 )
in case it is not created during installation you can create it manually with the mkdir command
at the end the directory needs to have the correct permissions of user exim4 and the related group ( according to the error message the group seems to have gid 119; this can be looked up in /etc/group )
exim4 was not installed. but i don’t recall a question about exim4. nevermind, installed it and now i’m trying again… update follows.
edit: ohhh, exim4 is that thing about mail config, right?
i have not configured mail for now, maybe i’ll give it a try another time.
if i’m not going to configure mail/exim can i ignore these error messages about perms?
try it. the error message says ‘aborting’ so I would assume that something is not done; could just mean that mails will not be done but also could mean that the backup will not be done.
You also may check your amanda configuration and set