I am currently setting up Openhab 3.4 in a Docker container running on a synology NAS. Installation of Livisi Binding worked and things were detected. So far so good. The logging feature on port 9001 however is not working an i learned from a post in this community that this feature can be activated via the Karaf console with „sudo openhab-conf“.
I open the docker container on the Synology NAS and acess the Terminal.
The standard password should be “habopen”, which does not work. I read here in the community that there are three different types of users. But the user “openhab” seems to be the correct one in the Karaf console, so password “habopen” should word.
I thought i might be in another type of console which is probably not Karaf so i checked the logs and found:
This looks like the Karaf console. I read here that the pasword for the console is stored in /openhab/userdata/etc/users.properties. I found the encrypted version of the password:
openhab = {CRYPT}4F61A0FD056BC0FD8231899EC4D9F9CA06AF0DEC895B2A3B0773F6FBC1C99776{CRYPT},g:admingroup_g_:admingroup = group,admin,manager,viewer,systembundles
In
[Post 29064]
it is described that the code seems to be the cyphered “habopen” string.
I tried several other default passwords which i found on the web but none of them worked. I can acess the web UI on port 8080 with my password but this password does also not work in the console as expected.
Next i tried to acess the Karaf konsole via ssh, which did not work either. Regardless the user i was trying, acess to console was not permitted. See the two examples:
admin@MyNAS:~$ docker exec -ti openhab-openhab1 /openhab/runtime/bin/client
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/openhab-openhab1/json”: dial unix /var/run/docker.sock: connect: permission denied
openhab@MyNAS:~$ docker exec -ti openhab-openhab1 /openhab/runtime/bin/client
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/openhab-openhab1/json”: dial unix /var/run/docker.sock: connect: permission denied
Finally I checked uid and guid of the user openhab.
admin@MyNAS:~$ id openhab
uid=1033(openhab) gid=100(users) groups=100(users),101(administrators),65537(dialout),1023(http),65536(openhab)
Both are the same as they are in the docker container:
Can anyone help me what to do next? I have not found further hints to try. Many thanks for your efforts.
