• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


"socket not responding" only in webgui (docker container)
#1
I'm a noob running several containers with Traefik v2 on a raspberry pi 3. I got into a dead end with orrpan/pilight:
Running

Code:
pilight-send -p elro_800_switch -s 3 -u 2 --on
as a cli command in the container switches sockets on and off (power switches ->Brennenstuhl, which pilight managed finely when it was installed bare boned on RPi).
Trying the same via the webGUI is failing:. Https website loads fine, but then it got stuck in the attempt to connect to the device!?
Logs of pilight:

Code:
(/build/pilight/libs/pilight/core/eventpool.c ... ERROR: uv_custom_poll_cb: socket not responding
WARNING: (webserver) could not read /usr/local/share/pilight/webgui//websocket

Traefik logs telling me (sometimes):
Code:
level=error msg="unable to find the IP address for the container \"/pilight\": the server is ignored" container=pilight-pilight-87... providerName=docker

I searched for a while and tested

Code:
network_mode: host
unfortunately without success.

Hardware is connectable, but only via webgui there is this error? Is this a bug or what am I missing? I would appreciate any hint or help.

config.json:

Code:
{
       "devices": {
               "switch1": {
                       "protocol": [ "elro_800_switch" ],
                       "id": [{
                               "systemcode": 7,
                               "unitcode": 1
                       }],
                       "state": "on"
               }
       },
       "rules": {},
       "gui": {
               "switch1": {
                       "name": "Power Socket 1",
                       "group": [ "my power sockets" ],
                       "media": [ "all" ]
               }
       },
       "settings": {
               "log-level": 6,
               "pid-file": "/var/run/pilight.pid",
               "log-file": "/var/log/pilight.log",
               "standalone": 0,
               "webserver-enable": 1,
               "webgui-websockets": 0,
               "webserver-http-port": 5001,
               "webserver-https-port": 5002,
               "webserver-cache": 1,
               "webserver-root": "/usr/local/share/pilight/webgui",
               "gpio-platform": "raspberrypi3"
       },
       "hardware": {
               "433gpio": {
                       "sender": 0,
                       "receiver": 1
               }
       },
       "registry": {
               "pilight": {
                       "version": {
                               "current": "8.1.5"
                       }
               },
               "webserver": {
                       "ssl": {
                               "certificate": {
                                       "location": "/etc/pilight/pilight.pem"
                               }
                       }
               },
               "hardware": {
                       "RF433": {
                               "mingaplen": 4420,
                               "maxgaplen": 72900,
                               "minrawlen": 26,
                               "maxrawlen": 400
                       }
               }
       }
}

Here's the docker-compose.yml of pilight:

Code:
version: '3'
services:
 pilight:
   image: orrpan/pilight_docker:latest
   container_name: pilight
   restart: unless-stopped
   privileged: true
   security_opt:
     - no-new-privileges:true
   environment:
     - TZ=Europe/Berlin
   ports:
     - 5001:5001
     - 5002:5002
   networks:
     - proxy
   volumes:
     - /etc/localtime:/etc/localtime:ro
     - /var/run/docker.sock:/var/run/docker.sock:ro
     - /home/pi/docker/pilight/data:/etc/pilight
   labels:
     - "traefik.enable=true"
     - "traefik.http.routers.pilight.entrypoints=http"
     - "traefik.http.routers.pilight.rule=Host(`pilight.example.com`)"
     - "traefik.http.middlewares.pilight-https-redirect.redirectscheme.scheme=https"
     - "traefik.http.routers.pilight.middlewares=pilight-https-redirect"
     - "traefik.http.routers.pilight-secure.entrypoints=https"
     - "traefik.http.routers.pilight-secure.rule=Host(`pilight.example.com`)"
     - "traefik.http.routers.pilight-secure.tls=true"
     - "traefik.http.routers.pilight-secure.service=pilight"
     - "traefik.http.services.pilight.loadbalancer.server.port=5001"
     - "traefik.docker.network=proxy"

networks:
 proxy:
   external: true
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight & piSchedule works fine but no webgui Sven 5 6,597 08-30-2021, 12:50 AM
Last Post: RTmed
  pilight container doesn't connect to device in webgui kinoe 0 946 04-23-2021, 10:20 AM
Last Post: kinoe
  webgui, after reboot the switch is off gwaag 4 3,794 11-04-2019, 04:16 PM
Last Post: gwaag
  webgui apparence gwaag 7 4,401 10-29-2019, 09:00 PM
Last Post: curlymo
  Modifying Webgui Alex 4 3,711 03-10-2019, 05:50 PM
Last Post: Alex
  webgui - registry "tabs": 1 usage and possibility to order fcoelho 3 6,124 03-22-2018, 07:31 PM
Last Post: Oliver
  New tab in webgui Roger 0 1,842 09-15-2017, 02:14 PM
Last Post: Roger
  Cannot connect to WebGUI von BlackBerry 10 device. muecke 2 2,923 12-02-2016, 10:22 AM
Last Post: muecke
  WebGUI support for illuminance sensors marcm 2 3,696 11-30-2016, 01:49 PM
Last Post: marcm
  Webgui Remuko 1 3,705 09-17-2016, 10:14 AM
Last Post: buldogwtf

Forum Jump:


Browsing: 1 Guest(s)