Closed charger closed 5 years ago
Have tested it here and sometimes it works and sometimes it restarts Domoticz. Since Domotics is restarting, it's most likely some bug in Domoticz. That doesn't mean it's not related to something in this container. This container is based on Alpine Linux which is not using glibc, but musl. Might be something there making Domoticz crash. I think it's better to ask the Domoticz developers why Domoticz is crashing, as I have no clue what it could be.
I have already reported about this problem on Domoticz forum https://www.domoticz.com/forum/viewtopic.php?f=6&t=25818&p=203423#p203423 but without result. So you are my last hope to solve this problem.
Reading through that thread I see that you are not the only one with this issue. There was one guy that tried many different containers and had the same problem. So this is a Domoticz issue as far as I see it. One guy even said that if the response takes too long, Domoticz restart. Might be better to add an issue on domticz github page. At least the developers sees it then.
I'll post issue on Domoticz git hub. But take a look at cgatay/domoticz:4.10353-beta-deb, it also based on Alpine Linux but works fine. Is it possible to track down differences between the images?
I have exactly the same issue since switching to the Docker image. Previously I was using the Domoticz Synology Package by Jumbotroll which did not have this issue. Therefore I'm not sure if this bug is caused just by Domoticz itself or a combination of factors/dependencies.
You are right, this is combination of factors, but probably Domoticz can provide some logs, about why it restarts his event loop. I created issue in Domoticz GitHub, but no response yet.
One big difference between the Docker image of 'cgatay' and linuxserver.io, is that cgatay is almost 6 months ahead of linuxserver.io's master branch. So perhaps it was indeed a Domoticz issue in the past, but has been fixed in one of the future beta versions.
@Freekers , the :latest (default tag) of this image is using the very latest beta version.
2019-01-21 15:49:22.388 Status: Build Hash: 060accf8, Date: 2019-01-18 15:46:09
BIG difference between a 3 day old build and something that is 6 months behind something, incidentally that would make cgatay's version practically 6 months in the future... neat trick which if stephen hawking were still around would be very interested in.....
I'm not following your logic regarding the past/future/Stephan Hawking thing, but you are right regarding the master branch being the very latest beta version. Thanks for pointing it out.
@charger Have you tested this with the latest version or just the 139 tag?
linuxserver/domoticz:latest Domoticz v4.10362 Build Hash: 060accf8 Build Date: 2019-01-18 17:46:09' Problem reproduces.
cgatay/domoticz:4.10353-beta-deb Domoticz v4.10353 Build Hash: 0fa125f6 Build Date: 2019-01-13 00:12:34' Problem doesn't reproduce.
Actually, the big difference between images is not a Domoticz version, it is the base image.
lsiobase/alpine:3.7
linuxserver Dockerfile vs debian:stretch
cgatay Dockerfile
I was wrong when said that cgatay/domoticz:4.10353-beta-deb
based on Alpine linux.
Alpine linux used in cgatay/domoticz:4.10353-beta Dockerfile and this image has the error.
Then it's musl related. It's something domoticz have to fix, unless it's a bug in alpine or one package we install. Hopefully the domoticz developers can see why it's restarting.
I'm experiencing the same problem as @charger. I've added backtraces of the crash (With Domoticz debug build, using external and built-in sqlite version) to https://github.com/domoticz/domoticz/issues/2972. Interestingly, it crashes inside sqlite code, on a call which has been executed numerous times before (e.g. during startup), so it is unclear why during JSON API call it causes a crash.
Like with @charger, the debian build of cgatay/domoticz:10603-beta-deb
does not crash, but due to other problems with this image I cannot switch.
The issue seems to be resolved in https://github.com/linuxserver/docker-domoticz/tree/76fd7c14-ls14. Possibly due to the bump to Alpine Linux 3.9.
Then I'll close the issue
Host OS: Synology x86_64 GNU/Linux synology_braswell_716+II also Ubuntu 16.04 LTS
/tmp/conf
- is empty directoryStep to reproduce:
Actual result
docker logs domoticz
returns the same information.Expected result:
I think this is not a problem with Domoticz itself because:
curl
request it returns body and domoticz didn't restarts.cgatay/domoticz:4.10353-beta-deb
it also works (but it doesn't have https). BTW I used: