• 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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Starting pilight on boot: "cannot bind to the SSDP multicast network"
#1
Hi, long time no see!

Currently trying to get pilight working on Debian Buster, but am running into issues with starting pilight on boot.
/var/log/pilight.log shows the following messages at each boot:

Code:
(/home/pilight/source/daemon-dev/daemon.c #3082) [Aug 31 12:09:23:655388] INFO: version v8.1.5
(/home/pilight/source/daemon-dev/daemon.c #3151) [Aug 31 12:09:23:764054] INFO: no pilight daemon found, daemonizing
(/home/pilight/source/daemon-dev/libs/pilight/core/socket.c #168) [Aug 31 12:09:23:791098] INFO: daemon listening to port: 5000
(/home/pilight/source/daemon-dev/libs/pilight/core/ssdp.c #119) [Aug 31 12:09:23:791324] ERROR: cannot bind to the ssdp multicast network
(/home/pilight/source/daemon-dev/libs/pilight/core/ssdp.c #302) [Aug 31 12:09:23:800321] ERROR: could not determine default network interface
(/home/pilight/source/daemon-dev/libs/pilight/core/socket.c #577) [Aug 31 12:09:23:801049] INFO: new client, ip: 127.0.0.1, port: 53048
(/home/pilight/source/daemon-dev/libs/pilight/core/webserver.c #1889) [Aug 31 12:09:23:820631] INFO: secured webserver started on port: 5002 (fd 18) 

Starting pilight manually after bootup works as expected, this specific node is supposed to clientize to a daemon running elsewhere on the network. But the SSDP discovery during bootup fails.

I've tried a bunch of things that worked when this issue occurred often a few years back, including
  • Checking the allowed runlevel and start-requires in the /etc/init.d/pilight file
  • Adding a sleep 5 to /etc/init.d/pilight
  • Adding lo network config in /etc/network/interfaces
  • Setting "wait for network during boot" to true in the raspi-config tool.
So now I'm out of ideas what to try.

OS:

Code:
Buster 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux

on a raspi 2 (no ipv6 allowed).
 
Reply
#2
Only thing i can think of is letting pilight wait until all network devices are up before trying to use SSDP. I not running buster myself, so also not having any issues.
 
Reply
#3
How would one go about doing that? It's what I've tried to accomplish, both by letting the init.d script sleep, and by checking that network is listed in the start-requires line, but neither of those solutions seem to work.
 
Reply
#4
I meant something inside the pilight codebase that does that. Problem with the whole systemd is that everything has become anoyingly more complex in regard to boot and init.
 
Reply
#5
Hi 

I'm using a q'n dirty workaround:

root's crontab:
Code:
@reboot /home/pi/start_pilight_delay 20

script start_pilight_delay:

Code:
sleep $1
sudo /etc/init.d/pilight restart

maybe not fancy... but works.

Bye
Tom
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight-control TML 13 263 Yesterday, 07:51 AM
Last Post: curlymo
  API Requests by HTTP from other devices fore use in pilight scootermacro 2 135 05-10-2020, 08:19 AM
Last Post: scootermacro
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 1,964 03-31-2020, 01:02 PM
Last Post: curlymo
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 479 03-08-2020, 12:14 AM
Last Post: beejayf
  pilight cpu usage possibly associated with noticeable sluggishness? hepcat72 4 506 01-28-2020, 08:02 PM
Last Post: hepcat72
  apt.pilight.org stable Release' is not signed. thomasol 2 627 01-23-2020, 11:34 PM
Last Post: thomasol
  pilight and SIGNALduino cc1101 Caleus 0 422 01-19-2020, 09:13 AM
Last Post: Caleus
  filter stopped working after update to pilight 8.1.5 zlin50 19 1,298 01-03-2020, 02:15 PM
Last Post: curlymo
Question [Solved] Openweathermap with pilight 7.0-40 doesn't work Seebueb 2 491 01-01-2020, 06:45 PM
Last Post: Seebueb
  [Solved] Strange receive problem with 433Mhz Receiver and pilight 8.1.5 vanillaice30 15 1,378 12-18-2019, 11:09 AM
Last Post: vanillaice30

Forum Jump:


Browsing: 1 Guest(s)