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:
openhab-generator
# OR
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.
Youāre welcome.
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.
If there is no way to connect a monitor and keyboard without switching the Raspberry off, a power off/on is your only chance to get access⦠Good luck!
Edit:
sudo journalctl -u ssh -b -1
the -b -1 is: since the reboot/startup before actual startup. So when rebooting multiple times, you will have to decrease the parameter to -b -2, -b -3 and so on.
Take the new sd card and make a new clean installation from scratch. Afterwards copy /etc/openhab2/ and possibly /var/lib/openhab2/ from the old installation to the new one.
Donāt lose time with trying to repair the old installation.
I switched from a Rasüberry Pi to an Intel NUC based on Ubuntu. Iām a big fan of openHABian so i tried to install it on Ubuntu. Unfortunatlelly I was not able to install Zulu JDK via config tool:
$ apt -y install zulu-embedded-8
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zulu-embedded-8
FAILED
strange⦠with that repo added to your list (and apt-get update run), you should get:
root@rpi3:/home/pi# apt-cache search --names-only '^zulu-.*'
zulu-embedded-8 - Azul Systems Zulu Embedded is a binary distribution of OpenJDK
edit: ohā¦wait⦠Intel NUC running āregularā Ubuntu⦠then you should use the āregularā Zulu (like you did), not the embedded one for ARM systems.
Would It be possible to have karaf console in a web browser window, similar to frontail? Love this new feature, and the openhabian package is awesome!! great job!
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).
Installed openhabian yesterday, working like a charm
but⦠i cant reboot
try some changes to su root, but the password is not valid
[16:05:39] openhabian@openHABianPi:~$ sudo reboot
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policyā
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
Hello everybody,
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
Password authentication
Password: my_password
__ _____ ____
____ ____ ___ ____ / / / / | / __ )
/ __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __ |
/ /_/ / /_/ / __/ / / / __ / ___ |/ /_/ /
\____/ .___/\___/_/ /_/_/ /_/_/ |_/_____/
/_/ 2.1.0
- 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.
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:
#includedir /etc/sudoers.d
openhabian ALL=(ALL) NOPASSWD: /usr/bin/python