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
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
Hey @RollandJ, great you’ve got that working. Did you already find a way to include the camera module in openHAB? There are solutions for cameras out there, if you got a working setup for the RPi module, tell us about it
@ikjes_to The user root is not available by default. That’s not specific to openHABian but a recommendation and default for many Linux OSs nowadays. The command sudo reboot should work fine, the error suggests you did changes to your sudo config you shoudn’t have. Check google for a solution.
I changed to an RPi 3 and I’am booting now directly from USB.
We will see if it will run now longer than a few month.
I was not able to restore a thing, because my SD-card is not booting any more.
I tried to understand what amanda backup is about, but I’am not getting the clue. It looks to complicated for me. And I’am sure that on restore time there will be missing to much.
I would like to create a continously (daily) image backup from my usb-stick to my nas drive out of the running system.
It is not enough to restore only a few file of openHAB, I also have to restore influxDB with all the data, grafana, and may be more. All the distinc user accounts/password have to be restored as well.
At the moment I have a running system again, with influx, with grafana and my fundamental bindings.
Still missing is the new modbus binding and digitalstrom binding.
All this is costing a lot of time and I will have to invest it again when my usb-stick crashes.
I tried to find out if I could rund an InfluxDB Server on my Synology DS216j, but there is no package available.
But I could install GIT to get at least all my configuration restored. But this also is not done in five minutes.
The ds216j is not capaz to run docker so this way is also not working.
So far I’am happy again.
But I have to find out urgently a working backup solution.
This looks good. But the problem I have with that is: How can I find out which services are running? How do I have to stop them and how do I restart them? If I make an mistake here the solution is not working for me.
But when I could solve this, this may be a working solution for me. Also the possiblity to compress the backup sounds good.
Actually you don’t have to stop any services if you don’t want to. This is the way I’m using it since almost 3 years now and back in the old days where I was using sd cards I had to restore a backup twice and it worked fine.
The only thing you would loose are some logs, but who cares.
A very nice feature are the the rsync backups with hardlinks.
If you want to be on the safe side, choose a backup strategy, make a backup and then restore it: you will see it works