• 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
pilight-send does not stop (terminate)
#1
On my system:
Code:
root@raspberrypi:~# uname -a
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
root@raspberrypi:~# dpkg --list | grep pilight
ii  pilight                               8.1.4-38-g62a44791                        armhf        Control RF devices with the Raspberry Pi
ii  pilight-webgui                        8.4                                       armhf        Default pilight webgui

the command pilight-send hangs in rare cases. In the example below pilight-send ist called by a script which ensures that it is not running twice, so pilight-send is never executed at exacly the same time more than once.

Code:
root@raspberrypi:~# tail -1 /tmp/no_double_execution.sh.log
no_double_execution.sh_13May19_091202: no_double_execution.sh is already running under PID: 23999 PLEASE try again later. EXIT 1
root@raspberrypi:~# ps -ef |grep 23999
root      2704 18580  0 09:12 pts/0    00:00:00 grep 23999
root     23999 23732  0 05:44 ?        00:00:00 /bin/bash /usr/local/bin/no_double_execution.sh /usr/local/bin/pilight-send -p kaku_switch --id=16237566 -u 11 --off
root     24008 23999  0 05:44 ?        00:00:00 /usr/local/bin/pilight-send -p kaku_switch --id=16237566 -u 11 --off
root@raspberrypi:~# strace -p 24008
strace: Process 24008 attached
_newselect(4, [3], NULL, NULL, NULL^Cstrace: Process 24008 detached
 <detached ...>

Is there anything I could do to find out, what is going on, if this happens again?
 
Reply
#2
What happens when you just run pilight-send without a script?
 
Reply
#3
(05-13-2019, 06:33 PM)curlymo Wrote: What happens when you just run pilight-send without a script?

pilight-send works as expected with or without script execution.

Since the code seams to be heavily modified in the nightly builds with different behaviour in new versions, I switched back to stable and live with the bugs and workaround them, waiting to finish code cleanup. thx
 
Reply
#4
I can only cleanup code when people help me find the issues.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 843 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 172 07-14-2019, 08:35 AM
Last Post: Alex
  pilight usb nano format conversion ettman8 2 80 07-14-2019, 08:32 AM
Last Post: curlymo
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 47 1,369 06-29-2019, 08:58 PM
Last Post: curlymo
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 317 06-11-2019, 05:19 PM
Last Post: curlymo
  pilight fails starting on boot Alex 5 284 06-09-2019, 06:02 PM
Last Post: curlymo
  Google Assistant coupled to pilight hansrijn2 4 702 05-29-2019, 06:54 PM
Last Post: curlymo
  oom_reaper: reaped process pilight-daemon va13 4 312 05-15-2019, 08:03 AM
Last Post: va13
  cant configure or even start pilight on raspi 3b Xvnx23 2 308 05-06-2019, 09:47 PM
Last Post: fourty2
Sad Raspberry Pi: "NOTICE: no pilight ssdp connections found" abusch 8 514 04-30-2019, 09:10 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)