joshuacox / mkdomoticz

Make a persistent domoticz container PDQ
GNU General Public License v3.0
16 stars 28 forks source link

GCM notifications not working #17

Open gonzaloabad opened 5 years ago

gonzaloabad commented 5 years ago

Hello,

After all, thanks for the efforts. They are really appreciated.

On a cleanly built docker image, and after sending GCM ID from the mobile App, an error occurs when trying to send GCM notification. After enabling as much as log as possible, only this log is relevant to the issue:

2019-03-13 14:06:42.592 [7f72b4b4e700] Notification sent (gcm) => Failed
2019-03-13 14:06:42.601 [7f72b4b4e700] Active notification Subsystems: (0/13)
2019-03-13 14:06:42.581 [7f72b4b4e700] Status: Notification: Domoticz test
2019-03-13 14:06:42.592 [7f72b4b4e700] Error: GCM: Could not send message, HTTP Error

e-mail notifications also fail in this system.

My system is an APU-4c2 running:

docker-compose script as follows:

 domoticz:
  image: joshuacox/mkdomoticz
  hostname: domoticz
  container_name: domoticz
  privileged: true
  volumes:
  - ./domoticz/config:/config
  ports:
   - "8081:8080"
  restart: always

Thanks in advance

joshuacox commented 5 years ago

I am not certain as I don't use GCM, but do you think this is an issue with the docker container? Or how it was built? Or is this an issue with domoticz itself? Or perhaps there is a package missing from the container's OS? Like wget? curl is already included.

gonzaloabad commented 5 years ago

Seems to be an issue related to libssl's version. linuxserver/domoticz docker image is able to send notifications if it helps

joshuacox commented 5 years ago

Problem is that linuxserver's image is built using alpine https://github.com/linuxserver/docker-domoticz

whereas this one is built using debian-stretch, and was made to built locally using local-stretch like explained here