I was following your advice with removing mmcblk0. Then I ran amcleanup openhab-dir and after that I executed amcheck openhab-dir. The last command had a long run and came up with following log:
[18:01:20] backup@openHABianPi:/home/openhabian$ amcheck openhab-dir
Amanda Tape Server Host Check
slot ?: volume ''
ERROR: Timeout trying to lock '/etc/amanda/openhab-dir/storagestate'
NOTE: host info dir /var/lib/amanda/openhab-dir/curinfo/openHABianPi does not exist
NOTE: it will be created on the next run.
NOTE: index dir /var/lib/amanda/openhab-dir/index/openHABianPi does not exist
NOTE: it will be created on the next run.
Server check took 1006.781 seconds
Amanda Backup Client Hosts Check
Client check: 1 host checked in 2.314 seconds. 0 problems found.
The debug log of amcheck-device had some interesting lines:
[18:05:55] openhabian@openHABianPi:/var/log/amanda/server/openhab-dir$ sudo tail -f amcheck-device.20170730180206.debug
Sun Jul 30 18:02:06 2017: thd-0x167c400: amcheck-device: pid 3725 ruid 34 euid 34 version 3.3.6: start at Sun Jul 30 18:02:06 2017
Sun Jul 30 18:02:07 2017: thd-0x167c400: amcheck-device: pid 3725 ruid 34 euid 34 version 3.3.6: rename at Sun Jul 30 18:02:07 2017
Sun Jul 30 18:02:07 2017: thd-0x167c400: amcheck-device: chg-disk: Dir /srv/backup/slots
Sun Jul 30 18:02:07 2017: thd-0x167c400: amcheck-device: chg-disk: Using statefile '/etc/amanda/openhab-dir/storagestate’
Sun Jul 30 18:02:07 2017: thd-0x167c400: amcheck-device: Amanda::Taper::Scan::traditional stage 1: search for oldest reusable volume
Sun Jul 30 18:02:07 2017: thd-0x167c400: amcheck-device: Amanda::Taper::Scan::traditional no oldest reusable volume
Sun Jul 30 18:02:07 2017: thd-0x167c400: amcheck-device: Amanda::Taper::Scan::traditional stage 2: scan for any reusable volume
Sun Jul 30 18:18:53 2017: thd-0x167c400: amcheck-device: new Amanda::Changer::Error: type=‘fatal’, message='Timeout trying to lock ‘/etc/amanda/openhab-dir/storagestate’'
Sun Jul 30 18:18:53 2017: thd-0x167c400: amcheck-device: warning: Use of uninitialized value $volume_label in concatenation (.) or string at /usr/lib/amanda/amcheck-device line 121.
Sun Jul 30 18:18:53 2017: thd-0x167c400: amcheck-device: Amanda::Taper::Scan::traditional result: error=Timeout trying to lock '/etc/amanda/openhab-dir/storagestate'
Sun Jul 30 18:18:53 2017: thd-0x167c400: amcheck-device: pid 3725 finish time Sun Jul 30 18:18:53 2017
Any idea why no slot and volume is defined?
What should I do next? Run amdump?
Not sure if it would need to be defined at this stage.
Did you run amcheck/amdump as root at some stage in the past?
I’d check file permissions on the storagestate file and directory it’s in. both should be owned or at least be writable by the backup user) and eventually delete the file.
You need to run those commands as the backup user.
Then rerun amcheck and eventually amdump.
Now if all of that doesn’t help, your best option would be a post on the Amanda mailing list.
How do you clear/delete the the log produced by “http://openhabianpi:9001/”?
I stopped OH service, deleted the log files, re started OH and then looked at the above address but it continued on from where it was.
My OH install is reasonably new and I’m trying to wade through all of the errors/warnings and make OH more functional and stable. Hence why I like to clear the logs after each significant change to see what is outstanding.
Could the “http://openhabianpi:9001/” also have provision for just displaying the OH log or Changed events as opposed to both?
The idea of a hassle-free openHAB start goes a long way. openHABian provides a base system to work with openHAB but what comes next? @kubawolanin asked himself that question and developed a small handy tool to kickstart modeling your home. Learn all you need to know here:
The openHAB generator is now part of openHABian! Existing installations can install it via the openhabian-config menu, on new installation the generator will be installed by default. Execute the openHAB generator by executing either of these commands:
cd /etc/openhab2 && yo openhab
Okay, that was tricky. The permissions of storagestate were right. I tried to change it over and over - but no success. And then… I renamed the file with having a new storagestate created by restarting the process. The new file was empty, so I copied the content from the old to the new one … and everything worked!
So thank you very much for your assistance and patience.
Did you try to rename or delete the storagestate file and ‘restart the process’ (I’m assuming you refer to executing amcheck from the commandline) WITHOUT editing it ?
My guess is that that would have worked, too, so the ‘fix’ for anybody to come up with the same issue could be to simply delete the file.
There is a tool called: Apache Felix Web Console for this but if I am not wrong, you can’t issue console commands from it (but you can manage certain aspects of Karaf from this)…
Note: this is a more advanced tool and not really recommended for all users (I don’t use it).
i’m new in the world of openhab, linux and rasberry. After some days learning, everything seems ok, happy to be here with you.
Everething, not really, I want to use the command “sudo raspi-config” to enable the rpi camera module. It seems I need to do that on Karaf, but I’m front a strange behaviour (all that with putty) :
Connection to openhabian : OK
Change all passwords (all the same for now) : OK openhabian@openHABianPi:~$ ssh openhab@localhost -p 8101OK
__ _____ ____
____ ____ ___ ____ / / / / | / __ )
/ __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __ |
/ /_/ / /_/ / __/ / / / __ / ___ |/ /_/ /
\____/ .___/\___/_/ /_/_/ /_/_/ |_/_____/
- release build -
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
openhabian ALL=(ALL) NOPASSWD: /usr/bin/python