Kogarasu
(sylvain )
November 16, 2023, 8:31am
1
Hello,
I’m having a problem installing HomeAssistant.
I chose to install it on my NAS MyCloudEx2Ultra on which I installed docker (I did not want to buy additional hardware). On portainer, I created a stack with the following code:
version: '3.8
services:
homeassistant:
image: homeassistant/home-assistant:stable
container_name: homeassistant
environment:
- TZ=Europe/Paris
ports:
- 8123:8123
volumes:
- /mnt/ha/config:/config
restart: always
deployment goes smoothly and the container is in running mode, but when I try to access HA via the address http://192.168.1.35:8123 it doesn’t work. Any idea where the problem might be?
Thanks in advance
Tinkerer
(aka DubhAd on GitHub)
November 16, 2023, 9:05am
2
The docs are very clear that you need to use host
networking, not port mapping.
Try that, and then check the logs for HA.
1 Like
Kogarasu
(sylvain )
November 16, 2023, 9:18am
3
Hello Tinkerer,
I tried this way too:
version: '3.8'
services:
homeassistant:
image: homeassistant/home-assistant:stable
container_name: homeassistant
environment:
- TZ=Europe/Paris
network_mode: host
volumes:
- /mnt/ha/config:/config
restart: always
But still it is not reachable.
Concerning the logs for HA, there is none:
Not sure if i have to check the logs there, im a beginner.
Thanks for your help
jchh
((not John))
November 16, 2023, 10:16am
4
Kogarasu:
Thanks in advance
I (think) you are using the wrong image. Try this:
image: ghcr.io/home-assistant/home-assistant:stable
You also might find
restart: unless-stopped
more useful than always
2 Likes
Tinkerer
(aka DubhAd on GitHub)
November 16, 2023, 11:01am
5
Check /mnt/ha/config
for a log or other files.
1 Like
Tinkerer
(aka DubhAd on GitHub)
November 16, 2023, 11:01am
6
Nah, that image is fine, it’s just on Docker Hub rather than Google.
Kogarasu
(sylvain )
November 16, 2023, 11:03am
7
Hello jchh,
Thanks for your answer. I already tried with this image and i also tried to set restart on unless-stopped but i got the same issue. To be honest i spent two days on it, trying a lot of different options but for some reason it still doesn’t work…
Kogarasu
(sylvain )
November 16, 2023, 11:17am
8
No log or file in this directory once the container is deployed:
Tinkerer
(aka DubhAd on GitHub)
November 16, 2023, 11:29am
9
Then the container isn’t even starting.
Kogarasu
(sylvain )
November 16, 2023, 11:32am
10
Oh i see… I thought it was since i got the running statut on portainer:
Any idea what could block? Do you think it could come from the rights on the directory?
Thanks
Tinkerer
(aka DubhAd on GitHub)
November 16, 2023, 11:44am
11
Could be rights, but HA runs as root
so that shouldn’t be it.
Sadly Portainer makes debugging stuff hard. Hopefully somebody who deals with it will be able to help you - I personally dislike it and just use docker compose
for everything.
Kogarasu
(sylvain )
November 16, 2023, 11:51am
12
Anyway thanks a lot for your help. Thanks to you, some of the points I had doubts about have been clarified.
jchh
((not John))
November 16, 2023, 11:53am
13
I used to use it myself, but I could have sworn I saw a release note that advised changing it.
1 Like
Kogarasu
(sylvain )
November 16, 2023, 2:32pm
15
Update: My container is not really running, it keeps on restarting:
jchh
((not John))
November 16, 2023, 2:38pm
16
TazUk:
You did - 2023.7.x
thanks - I’m not going mad…
1 Like
tmjpugh
(Tmjpugh)
November 16, 2023, 2:39pm
17
I would delete container and fully and start over. I cannot remember if need to specifically use arm image but is your system arm?
jchh
((not John))
November 16, 2023, 2:39pm
18
Kogarasu:
it keeps on restarting:
restarting may be because of:
restart: always
Kogarasu
(sylvain )
November 16, 2023, 2:44pm
19
Im sorry but i don’t know what is an arm image or if my system is arm. I’m trying to deploy on my Nas which is a WD MyCloudEx2Ultra.
Thanks
Kogarasu
(sylvain )
November 16, 2023, 2:44pm
20
Yeah i already set the option on “restart: unless-stopped” but it keeps restarting.
Thanks