Mailing List Archive

v31 Backend Killed Creating pipes for GWakeup
v31.0-81-g05a613f9fa

Has anybody seen the backend fail like this before?

From the backend log

Aug 31 22:06:37 tv systemd[1]: mythbackend.service: Main process exited,
code=killed, status=5/TRAP

From Syslog

Aug 31 22:06:37 tv kernel: [15079.668950] show_signal: 29 callbacks
suppressed
Aug 31 22:06:37 tv kernel: [15079.668957] traps: MythSocketThrea[13492]
trap int3 ip:7ff07424d0d5 sp:7fed87c569a0 error:0 in
libglib-2.0.so.0.6400.3[7ff074211000+84000]
Aug 31 22:06:37 tv mythbackend[1690]: (process:1690): GLib-ERROR **:
22:06:37.397: Creating pipes for GWakeup: Too many open files
Aug 31 22:07:12 tv systemd[1]: Stopped MythTV Backend.
Aug 31 22:07:12 tv systemd[1]: Started MythTV Backend.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: v31 Backend Killed Creating pipes for GWakeup [ In reply to ]
On Tue, Sep 1, 2020 at 6:04 AM John <jksjdevelop@gmail.com> wrote:

> v31.0-81-g05a613f9fa
>
> Has anybody seen the backend fail like this before?
>
> From the backend log
>
> Aug 31 22:06:37 tv systemd[1]: mythbackend.service: Main process exited,
> code=killed, status=5/TRAP
>
> From Syslog
>
> Aug 31 22:06:37 tv kernel: [15079.668950] show_signal: 29 callbacks
> suppressed
> Aug 31 22:06:37 tv kernel: [15079.668957] traps: MythSocketThrea[13492]
> trap int3 ip:7ff07424d0d5 sp:7fed87c569a0 error:0 in
> libglib-2.0.so.0.6400.3[7ff074211000+84000]
> Aug 31 22:06:37 tv mythbackend[1690]: (process:1690): GLib-ERROR **:
> 22:06:37.397: Creating pipes for GWakeup: Too many open files
> Aug 31 22:07:12 tv systemd[1]: Stopped MythTV Backend.
> Aug 31 22:07:12 tv systemd[1]: Started MythTV Backend.
>


su to your mythtv user and run `ulimit -a` and see how many open files are
allowed in the user's security limits.

22:06:37.397: Creating pipes for GWakeup: Too many open files
Re: v31 Backend Killed Creating pipes for GWakeup [ In reply to ]
Thanks for the suggestion the  limit seems to be 1000 which sounds a lot

$ ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         unlimited
stack(kbytes)        8192
coredump(blocks)     0
memory(kbytes)       unlimited
locked memory(kbytes) 65536
process              13858
nofiles              1024
vmemory(kbytes)      unlimited
locks                unlimited
rtprio               0

however lsof  | wc -l

produces 33410

monitoring the backend pid shows

lsof -p 1672 | wc -l
5

I will monitor the number





On 01/09/2020 14:27, Greg Oliver wrote:
> On Tue, Sep 1, 2020 at 6:04 AM John <jksjdevelop@gmail.com
> <mailto:jksjdevelop@gmail.com>> wrote:
>
> v31.0-81-g05a613f9fa
>
> Has anybody seen the backend fail like this before?
>
>  From the backend log
>
> Aug 31 22:06:37 tv systemd[1]: mythbackend.service: Main process
> exited,
> code=killed, status=5/TRAP
>
>  From Syslog
>
> Aug 31 22:06:37 tv kernel: [15079.668950] show_signal: 29 callbacks
> suppressed
> Aug 31 22:06:37 tv kernel: [15079.668957] traps:
> MythSocketThrea[13492]
> trap int3 ip:7ff07424d0d5 sp:7fed87c569a0 error:0 in
> libglib-2.0.so.0.6400.3[7ff074211000+84000]
> Aug 31 22:06:37 tv mythbackend[1690]: (process:1690): GLib-ERROR **:
> 22:06:37.397: Creating pipes for GWakeup: Too many open files
> Aug 31 22:07:12 tv systemd[1]: Stopped MythTV Backend.
> Aug 31 22:07:12 tv systemd[1]: Started MythTV Backend.
>
>
>
> su to your mythtv user and run `ulimit -a` and see how many open files
> are allowed in the user's security limits.
>
> 22:06:37.397: Creating pipes for GWakeup: Too many open files
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
Re: v31 Backend Killed Creating pipes for GWakeup [ In reply to ]
On Tue, Sep 1, 2020 at 12:59 PM jksjdevelop <jksjdevelop@gmail.com> wrote:

> Thanks for the suggestion the limit seems to be 1000 which sounds a lot
>
> $ ulimit -a
> time(seconds) unlimited
> file(blocks) unlimited
> data(kbytes) unlimited
> stack(kbytes) 8192
> coredump(blocks) 0
> memory(kbytes) unlimited
> locked memory(kbytes) 65536
> process 13858
> nofiles 1024
> vmemory(kbytes) unlimited
> locks unlimited
> rtprio 0
>

1024 is low - we usually use 4096 in our products. Thing is - if it is
SystemD running the program, it can easily not use the PAM limits from
limits.conf.



> however lsof | wc -l
>
> produces 33410
>
> monitoring the backend pid shows
>
> lsof -p 1672 | wc -l
> 5
>

It is not per pid if PAM based - it is system-wide per user. 33410 seems
wonky though - it must contain multiple lines per fopen - not sure - never
counted the output wholesale like that. I would use `lsof -u <username>`



> I will monitor the number
> On 01/09/2020 14:27, Greg Oliver wrote:
>
> On Tue, Sep 1, 2020 at 6:04 AM John <jksjdevelop@gmail.com> wrote:
>
>> v31.0-81-g05a613f9fa
>>
>> Has anybody seen the backend fail like this before?
>>
>> From the backend log
>>
>> Aug 31 22:06:37 tv systemd[1]: mythbackend.service: Main process exited,
>> code=killed, status=5/TRAP
>>
>> From Syslog
>>
>> Aug 31 22:06:37 tv kernel: [15079.668950] show_signal: 29 callbacks
>> suppressed
>> Aug 31 22:06:37 tv kernel: [15079.668957] traps: MythSocketThrea[13492]
>> trap int3 ip:7ff07424d0d5 sp:7fed87c569a0 error:0 in
>> libglib-2.0.so.0.6400.3[7ff074211000+84000]
>> Aug 31 22:06:37 tv mythbackend[1690]: (process:1690): GLib-ERROR **:
>> 22:06:37.397: Creating pipes for GWakeup: Too many open files
>> Aug 31 22:07:12 tv systemd[1]: Stopped MythTV Backend.
>> Aug 31 22:07:12 tv systemd[1]: Started MythTV Backend.
>>
>
>
> su to your mythtv user and run `ulimit -a` and see how many open files are
> allowed in the user's security limits.
>
> 22:06:37.397: Creating pipes for GWakeup: Too many open files
>
>
>
Re: v31 Backend Killed Creating pipes for GWakeup [ In reply to ]
On 01/09/2020 18:57, jksjdevelop wrote:
> Thanks for the suggestion the  limit seems to be 1000 which sounds a lot
>
> $ ulimit -a
> time(seconds)        unlimited
> file(blocks)         unlimited
> data(kbytes)         unlimited
> stack(kbytes)        8192
> coredump(blocks)     0
> memory(kbytes)       unlimited
> locked memory(kbytes) 65536
> process              13858
> nofiles              1024
> vmemory(kbytes)      unlimited
> locks                unlimited
> rtprio               0
>
> however lsof  | wc -l
>
> produces 33410
>
> monitoring the backend pid shows
>
> lsof -p 1672 | wc -l
> 5
>
> I will monitor the number
>
>

Out of interest, what type of recorder are you using?
Is is something script based, or one of the built in
recorders?


Regards
Stuart

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org