Herri
(Michael)
April 17, 2022, 11:48am
1
Hi everyone,
I am currently running openHAB 3 on a Raspberry PI 4 8GB with Docker. I configured the container to use a NFS share provided by my NAS (I am afraid of losing my configuration).
In my opinion I setup everything as described in the manual.
I already configured some devices.
Now I am a bit confused as the openhab/conf, etc folders are empty. I looked up the volumes in my p
When I check the directory on my pi everyfolder is empty:
Likewise, I’m surprised that after a chown, the owner of the folder was still root.
Am I missing something?
Best regards,
Michael
l_grave
(SierraNL)
April 17, 2022, 1:33pm
2
First of all welcome Herri
To answer the question I need a little more information.
Does the container start? Or is it giving errors?
Have you tried without the NFS mount first, so just normal volumes? To make sure nothing else it wrong.
How do you start the container, do you set a specific user/group?
Herri
(Michael)
April 18, 2022, 8:05am
3
Hi I_grave and thank you ,
The Container starts without errors. I am also was able to install some bindings and configure Things and Items.
In my portainer I can see that the volumes used by the container.
To start the container I used the command set from the docker page.
sudo docker run \
--name openhab \
--net=host \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v openhab_addons:/mnt/NAS/openhab/addons \
-v openhab_conf:/mnt/NAS/openhab/conf \
-v openhab_userdata:/mnt/NAS/openhab/userdata \
-e "EXTRA_JAVA_OPTS=-Duser.timezone=Europe/Berlin" \
-e "OPENHAB_HTTP_PORT=8080" \
-e "OPENHAB_HTTPS_PORT=8443" \
-d \
--restart=always \
openhab/openhab
Thank you,
Michael
EdwardV
(Edward Voermans)
April 18, 2022, 8:22am
4
Hi, I think your config for the volume should be the other way around. NFS share should be first.
This is what I use in a yaml:
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
- "/opt/openhabdevtest/openhab_addons:/openhab/addons"
- "/opt/openhabdevtest/openhab_conf:/openhab/conf"
- "/opt/openhabdevtest/openhab_userdata:/openhab/userdata"
Herri
(Michael)
April 18, 2022, 11:56am
5
Hi Edward,
I think you are absolutly right.
I check the container again and saw this:
So I think I should get the config and change the container var.
Best regards,
Michael
1 Like
EdwardV
(Edward Voermans)
April 19, 2022, 9:07am
6
Hi Michael, if my suggestion solved your issue please mark your post as Solved
Best,
E
1 Like