• 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 8.1.4 crashes after some hours Ulrich.Arnold 3 62 Yesterday, 08:46 PM
Last Post: curlymo
  oom_reaper: reaped process pilight-daemon va13 4 87 05-15-2019, 08:03 AM
Last Post: va13
  cant configure or even start pilight on raspi 3b Xvnx23 2 97 05-06-2019, 09:47 PM
Last Post: fourty2
Sad Raspberry Pi: "NOTICE: no pilight ssdp connections found" abusch 8 135 04-30-2019, 09:10 PM
Last Post: curlymo
  Using pilight-daemon socket API def_meggi 4 87 04-29-2019, 05:58 PM
Last Post: curlymo
  pilight-flash not working danny 9 175 04-27-2019, 09:02 PM
Last Post: curlymo
  pilight and Lirc lordslash 3 99 04-24-2019, 06:32 PM
Last Post: curlymo
Question Pi 3+ & pilight & 433Mhz RXB6: no receiption hacklschorsch 3 440 02-05-2019, 10:37 PM
Last Post: hacklschorsch
  Consecutive pilight commands habitoti 4 385 01-28-2019, 03:32 PM
Last Post: habitoti
  pilight not working with fresh Openhab 2 image habitoti 2 266 01-24-2019, 08:44 PM
Last Post: habitoti

Forum Jump:


Browsing: 1 Guest(s)