• 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
#61
If I honest with you... I don't think so. I guess the problem is the raspbian installation. Anyway I'll test again with the same SD card and same RasPi but with a raspbian preinstallation.

Anyway, Has pilight got some conflict with some of this services?

samba server
transmission torrent
BitTorrent Sync
ddclient
 
Reply
#62
When a program crashes like that it is almost always due to memory issues.
 
Reply
#63
Code:
root@RASPBIAN:~# memtester 300 1
memtester version 4.2.2 (32-bit)
Copyright (C) 2010 Charles Cazabon.
Licensed under the GNU General Public Lice

pagesize is 4096
pagesizemask is 0xfffff000
want 300MB (314572800 bytes)
got  300MB (314572800 bytes), trying mlock
Loop 1/1:
  Stuck Address       : ok
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok
  Block Sequential    : ok
  Checkerboard        : ok
  Bit Spread          : ok
  Bit Flip            : ok
  Walking Ones        : testinok
  Walking Zeroes      : ok
  8-bit Writes        : ok
  16-bit Writes       : ok

Done.
 
Reply
#64
Fascinating Smile I have no clue. gdb also didn't show us anything usefull right?
 
Reply
#65
(gdb) run -D
Code:
Starting program: /usr/local/sbin/pilight-daemon -D
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[ Apr 03 10:16:10:69085] pilight-daemon: DEBUG: -- start parsed config file --
{
        "living": {
                "name": "Salon",
                "order": 1,
                "switcha": {
                        "name": "Television",
                        "order": 1,
                        "type": 1,
                        "uuid": "03C5-00-00-C5-000300",
                        "origin": "03C5-00-00-C5-000300",
                        "protocol": [ "elro_hc" ],
                        "id": [{
                                "systemcode": 0,
                                "unitcode": 15
                        }],
                        "state": "off",
                        "settings": {
                                "readonly": 0,
                                "states": "on,off"
                        }
                },
                "switchb": {
                        "name": "Lampara Pie",
                        "order": 2,
                        "type": 1,
                        "uuid": "03C5-00-00-C5-000300",
                        "origin": "03C5-00-00-C5-000300",
                        "protocol": [ "elro_hc" ],
                        "id": [{
                                "systemcode": 0,
                                "unitcode": 27
                        }],
                        "state": "on",
                        "settings": {
                                "readonly": 0,
                                "states": "on,off"
                        }
                },
                "switchd": {
                        "name": "Lampara Mesa",
                        "order": 3,
                        "type": 1,
                        "uuid": "03C5-00-00-C5-000300",
                        "origin": "03C5-00-00-C5-000300",
                        "protocol": [ "elro_hc" ],
                        "id": [{
                                "systemcode": 0,
                                "unitcode": 29
                        }],
                        "state": "on",
                        "settings": {
                                "readonly": 0,
                                "states": "on,off"
                        }
                }
        },
        "lobby": {
                "name": "Entrada",
                "order": 2,
                "switchb": {
                        "name": "Lampara",
                        "order": 1,
                        "type": 1,
                        "uuid": "03C5-00-00-C5-000300",
                        "origin": "03C5-00-00-C5-000300",
                        "protocol": [ "elro_hc" ],
                        "id": [{
                                "systemcode": 0,
                                "unitcode": 23
                        }],
                        "state": "off",
                        "settings": {
                                "readonly": 0,
                                "states": "on,off"
                        }
                }
        }
}
[ Apr 03 10:16:10:71036] pilight-daemon: DEBUG: -- end parsed config file --
[ Apr 03 10:16:10:71617] pilight-daemon: INFO: daemon listening to port: 5000
[New Thread 0xb6dab470 (LWP 13920)]
[New Thread 0xb65ab470 (LWP 13922)]
[Apr 03 10:16:10:228781] pilight-daemon: DEBUG: new thread webserver daemon, 1 thread running
[Apr 03 10:16:10:229966] pilight-daemon: INFO: webserver listening to port: 5001
[New Thread 0xb5dab470 (LWP 13923)]
[Apr 03 10:16:10:246979] pilight-daemon: DEBUG: new thread updater, 2 threads running
[New Thread 0xb55ab470 (LWP 13924)]
[Apr 03 10:16:10:269697] pilight-daemon: DEBUG: new thread broadcaster, 3 threads running
[New Thread 0xb4dab470 (LWP 13925)]
[Apr 03 10:16:10:279738] pilight-daemon: DEBUG: new thread sender, 4 threads running
[New Thread 0xb45ab470 (LWP 13926)]
[Apr 03 10:16:10:302935] pilight-daemon: DEBUG: new thread ssdp, 5 threads running
[Thread 0xb45ab470 (LWP 13926) exited]
[New Thread 0xb3dab470 (LWP 13927)]
[Apr 03 10:16:10:345761] pilight-daemon: DEBUG: new thread socket, 6 threads running
[New Thread 0xb32ba470 (LWP 13928)]
[Apr 03 10:16:10:372822] pilight-daemon: DEBUG: new thread webserver broadcast, 7 threads running
[New Thread 0xb2aba470 (LWP 13929)]
[Apr 03 10:16:10:400185] pilight-daemon: DEBUG: new thread webserver client, 8 threads running
[Apr 03 10:16:10:400881] pilight-daemon: DEBUG: ssdp sent search
[Apr 03 10:16:10:499638] pilight-daemon: DEBUG: no pilight ssdp connections found
[Apr 03 10:18:17:849482] pilight-daemon: DEBUG: could not connect to pilight-daemon
[Thread 0xb2aba470 (LWP 13929) exited]
[Thread 0xb32ba470 (LWP 13928) exited]
[Thread 0xb3dab470 (LWP 13927) exited]
[Thread 0xb4dab470 (LWP 13925) exited]
[Thread 0xb55ab470 (LWP 13924) exited]
[Thread 0xb5dab470 (LWP 13923) exited]
[Thread 0xb65ab470 (LWP 13922) exited]
[Thread 0xb6dab470 (LWP 13920) exited]
[Inferior 1 (process 13912) exited with code 01]

(gdb) backtrace
Code:
No stack.
 
Reply
#66
In webserver.c i have this lines:
Code:
    settings_find_number("standalone", &standalone);
    if(ssdp_seek(&ssdp_list) == -1 || standalone == 1) {
        logprintf(LOG_DEBUG, "no pilight ssdp connections found");
        char server[16] = "127.0.0.1";
        if((sockfd = socket_connect(server, (unsigned short)socket_get_port())) == -1) {
            logprintf(LOG_DEBUG, "could not connect to pilight-daemon");
            exit(EXIT_FAILURE);
        }
    } else {
        if((sockfd = socket_connect(ssdp_list->ip, ssdp_list->port)) == -1) {
            logprintf(LOG_DEBUG, "could not connect to pilight-daemon");
            exit(EXIT_FAILURE);
        }
    }
I noticed the exit functions that are a bit overkill. I will change those to just warnings.

The wierd thing is that it first tries to discover pilight. If i can't, it tries to connect to pilight normally. That doesn't work either.

Can you test the following.
1. Change the exit(EXIT_FAILURE); to goto close;
2. Recompile and reinstall
3. Start the daemon (it shouldn't stop)
4. Start pilight-receive without parameters.
5. Start pilight-receive like this:
Code:
pilight-receive -S 127.0.0.1 -P [pilight port]
 
Reply
#67
I've change exit to goto close.

sudo pilight-daemon -D

Code:
...
[Apr 05 20:38:38:251671] pilight-daemon: DEBUG: ssdp sent search
[Apr 05 20:38:38:344112] pilight-daemon: DEBUG: no pilight ssdp connections found

pilight-receive -S 127.0.0.1 -P 5000

doesn't show any data.

Now I'm with a new raspberry and new SD card. Yesterday I was working without problems but today I've format the SD card and I've installed all the service I usually use at home:

ddclient
bittorrent sync
samba
transmission

Then I've installed pilight and the problems has gone back.

I'll try to start again but first of all I'm going to install pilight.
God give me strength!!!
 
Reply
#68
Try changing the pilight port.
 
Reply
#69
no way

I've stoped the other services too but:

[Apr 05 20:38:38:251671] pilight-daemon: DEBUG: ssdp sent search
[Apr 05 20:38:38:344112] pilight-daemon: DEBUG: no pilight ssdp connections found

throw the towel
 
Reply
#70
Does it stop? Or do only the clients fail to connect.

Can you run to see if something is using the pilight port?:
Code:
netstat -a

What happens if you use standalone mode? Then SSDP is bypassed.
 
Reply
  


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

Forum Jump:


Browsing: 1 Guest(s)