• 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
[Solved] No ssdp connection found
#91
Can you follow the debugging guide here to find the cause of this segmentation fault:
http://www.pilight.org/development/debugging/
 
Reply
#92
I've ran pilight-daemon in gdb, however it doesn't crash...
 
Reply
#93
If there is a segmentation fault, gdb should find it.
 
Reply
#94
This is what happens when i run gdb on pilight-recieve with -S -P

Code:
ferdy@raspberrypi ~ $ gdb pilight-receive
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/pilight-receive...done.
(gdb) run -S 192.168.10.251 -P 5001
Starting program: /usr/local/bin/pilight-receive -S 192.168.10.251 -P 5001
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) backtrace
#0  0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
#1  0x00009238 in main (argc=<optimized out>, argv=0xbefff804)
    at /home/ferdy/pilight/pilight/receive.c:152
(gdb) frame 0
#0  0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) frame 1
#1  0x00009238 in main (argc=<optimized out>, argv=0xbefff804)
    at /home/ferdy/pilight/pilight/receive.c:152
152                                     if(strcmp(message, "accept client") == 0) {
(gdb)
 
Reply
#95
Now I've changed the port to 4000 (pilight) and 4001 (web). pilight-receive still says:

Code:
ferdy@raspberrypi ~ $ pilight-receive
[Jun 04 08:19:47:986708] pilight-receive: ERROR: no pilight ssdp connections found

However, when i use -P -S parameters it works...
 
Reply
#96
I have no clue what could cause this Confused
 
Reply
#97
Dear all,
although this issue has been going on for a couple of months I still receive the same error message (no pilight ssdp connections found) when executing "sudo pilight-receive". Having read the previous 10 pages does not bring any solution to me. I installed pilight (5.0.17-gb1bb205) on a "fresh" and updated / upgraded rasbian (release 2014-06-20). (sudo apt-get update / sudo apt-get upgrade)
Regarding the installation: I tried 2 different ways:
1) git clone --depth 5 -b master https://github.com/pilight/pilight.git
2) sudo apt-get install pilight=XXXXXXXXXX -y
both according to different how-to(s) / tutorials.

Moreover, I had to fix a libraray problem first by:
sudo service pilight stop
sudo ln -s /usr/local/lib/pilight/libpilight.so.5.0.17-gb1bb205 /usr/lib/libpilight.so
sudo ldconfig
sudo service pilight start

Any further ideas?
 
Reply
#98
(06-02-2014, 03:12 PM)ferdyh Wrote:
Code:
ferdy@raspberrypi ~ $ gdb pilight-receive
...
Reading symbols from /usr/local/bin/pilight-receive...done.
...
Starting program: /usr/local/bin/pilight-receive -S 192.168.10.251 -P 5001
...
Program received signal SIGSEGV, Segmentation fault.
...
(gdb) backtrace
#0  0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
#1  0x00009238 in main (argc=<optimized out>, argv=0xbefff804)
    at /home/ferdy/pilight/pilight/receive.c:152
(gdb) frame 0
#0  0xb6e05504 in strcmp () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) frame 1
#1  0x00009238 in main (argc=<optimized out>, argv=0xbefff804)
    at /home/ferdy/pilight/pilight/receive.c:152
152                                     if(strcmp(message, "accept client") == 0) {
(gdb)
Normally the file receive.c should be located in:
Code:
/home/ferdy/pilight/
and not in
/home/ferdy/pilight/pilight/

Check the versions of pilight-receive in
Code:
/usr/local/bin/
/home/ferdy/pilight
/home/ferdy/pilight/pilight

I do propose to cleanup the directory structures in order to be in sync with the standard, do a retest and provide us with some feedback.


(08-11-2014, 10:37 PM)pallago Wrote: ...
Regarding the installation: I tried 2 different ways:
1) git clone --depth 5 -b master https://github.com/pilight/pilight.git
2) sudo apt-get install pilight=XXXXXXXXXX -y
both according to different how-to(s) / tutorials.

Moreover, I had to fix a libraray problem first by:
sudo service pilight stop
sudo ln -s /usr/local/lib/pilight/libpilight.so.5.0.17-gb1bb205 /usr/lib/libpilight.so
sudo ldconfig
sudo service pilight start

Any further ideas?

Pretty interessting that the issue is dragging on for month ...
The problem is to provide help on the base of limited information provided ....

Let's get started:
I never tried to mix both installation methods and libraries.

With the link you may mix up the pilight library from the development branch with the pilight software from the master branch.
(Yes there is a problem with that library, but there is a workaround for the time being.)

I would recommend to get back to the starting point.
Delete the library link and delete the complete pilight directory created in your /home/user directory.

Follow the steps for Manually Compiled Version
Use the software from the development branch.
If the missing library is reported, just compile all stuff again using the ./setup.sh script.
 
Reply
#99
Dear wo_rasp,
thanks a lot for the quick reply. Indeed I could solve it; to my understanding, this depended on the network configuration. I started again from scratch (with a rabian image) and I wrote a protocol about every step I did:

On raspberryPi:
Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install screen htop
screen -S main
ifconfig
----- SSH ---- (Establish ssh from Computer to raspberry pi)
screen -rx main
sudo su
apt-get install build-essential cmake git dialog zlib1g-dev zlib1g
git clone --depth 5 -b development https://github.com/pilight/pilight.git
cd pilight/
chmod +x setup.sh
./setup.sh
ldconfig
service pilight start
ls
nano hardware.json
./pilight-receive

After configuring the network /etc/interfaces/network by:
Code:
auto eth0
iface eth0 inet static
address 192.168.0.6
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.14

and rebooting, it did not work. Fortunately, I did a backup of the original file and modified it the following:

Code:
auto lo

iface lo inet loopback
iface eth0 inet static
address 192.168.0.6
netmask 255.255.255.0
gateway 192.168.0.14

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

Reboot, and it DID work. I do not know whether this is the reason but I least according to my protocol this was the cause. Maybe this helps somebody.
 
Reply
Can you try if removing the loopback makes the difference?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Solved] pilight service crashing on first webserver access after reboot VrahoK 20 4,703 12-21-2019, 09:46 AM
Last Post: curlymo
  Connection lost, trying to reconnect — loop apartmedia 5 2,101 03-16-2019, 09:41 AM
Last Post: curlymo
  [solved] Webgui 404-Error PT-Biker 2 2,068 11-11-2017, 09:49 AM
Last Post: PT-Biker
  [solved] Hardware not compatible ccc.ggg73 1 2,265 06-10-2017, 09:10 AM
Last Post: curlymo
  Standalone but SSDP brenner23 6 4,072 04-16-2017, 11:34 PM
Last Post: brenner23
  [Solved] pilight ssdp celle 6 10,303 02-23-2017, 03:22 PM
Last Post: gneandr
  Raspbian jessie - pilight 7 - no pilight ssdp connections found shirocko 20 22,446 01-29-2017, 10:23 PM
Last Post: gneandr
  [solved] No signal with raw data andies 6 4,708 12-25-2016, 09:11 AM
Last Post: andies
  pilight without internet connection terrar 5 4,843 08-12-2016, 09:47 PM
Last Post: terrar
  ssdp discovery clach04 5 6,590 05-23-2016, 04:23 PM
Last Post: pilino1234

Forum Jump:


Browsing: 2 Guest(s)