• 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
  Strange receive problem with 433Mhz Receiver and pilight 8.1.5 vanillaice30 10 72 Yesterday, 10:02 PM
Last Post: curlymo
  pilight error after update to 8.1.5 on Odroid C2 WitchDoctor 3 137 11-29-2019, 09:56 PM
Last Post: curlymo
  pilight crashing randomly PatiB 7 263 11-16-2019, 10:50 PM
Last Post: curlymo
  NOTICE: 433gpio send buffer full HuberDe 3 159 10-31-2019, 12:10 PM
Last Post: curlymo
  [Fixed] RaspberryPi4 pilight 8.1.5 - Send isn't working DominikB1993 4 306 10-18-2019, 10:25 PM
Last Post: DominikB1993
  Real 433Mhz Remote is disturbed by pilight service henne111 2 320 10-06-2019, 06:18 PM
Last Post: wo_rasp
Tongue (solved) pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 5 748 10-03-2019, 01:15 PM
Last Post: fleisch
  Starting pilight on boot: "cannot bind to the SSDP multicast network" pilino1234 4 537 09-29-2019, 02:08 PM
Last Post: tomk
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 3,343 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 685 07-14-2019, 08:35 AM
Last Post: Alex

Forum Jump:


Browsing: 1 Guest(s)