NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 9 10 11 12 13 … 26 Next »
Orphaned livetv buffer files

 
  • 0 Vote(s) - 0 Average
Orphaned livetv buffer files
snagglewest
Offline

Senior Member

VA USA
Posts: 352
Threads: 57
Joined: Jul 2011
#1
2021-08-07, 08:09 PM
Sub,
I updated to 5.1.4.210802 when it came out and everything seemed good until the last few days when I started having strange incidents where live tv would freeze up using Kodi.  After about 30 seconds or so it would dump me back to the channels list.  I’m running NextPVR in a Ubuntu 20.04 VM with a 60Gb system drive and recordings go to a NFS share.  livetv stays on the VM.  This setup has worked very well since V5 came out.

Long story short, I found this error in the logs “Unexpected error writing to OutputSink: System.IO.IOException: No space left on device”  I tracked down the problem  to the livetv directory being full of orphaned .ts files.  It was so full it was also causing problems with the logs too.  The first set I tried to grab was completely blank and the second set as you can see shows the error.

Deleting the orphans solved the problem for now.  I wanted you to be aware and ask if you might be willing to incorporate a small routine to delete any orphans occasionally?  I know it’s supposed to do this anyway but obviously something is going sideways occasionally.

Thanks


Attached Files
.zip   logs-20210807-1526.zip (Size: 4.33 KB / Downloads: 0)
NextPVR V6.1.1.221102 - Ubuntu 20.04 VM / 4 core / 8Gb memory
HDHR Prime X2 / HDFX-2 /Schedule Direct / 2X Pi4 + & 3X Pi3 LibreELEC Kodi clients
Server - TrueNAS Core 13.0 / SuperMicro MBD-X10SL7-F MB / Xeon E3-1246 / 32Gb Unbuffered ECC / 8 X 4TB RAIDZ2
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,341
Threads: 868
Joined: May 2006
#2
2021-08-07, 08:12 PM
Before cleaning the live*ts files out did you look at the dates of the temp files to see if it is a new issue?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,402
Threads: 742
Joined: Nov 2003
#3
2021-08-07, 08:14 PM
(2021-08-07, 08:09 PM)snagglewest Wrote: Deleting the orphans solved the problem for now.  I wanted you to be aware and ask if you might be willing to incorporate a small routine to delete any orphans occasionally?  I know it’s supposed to do this anyway but obviously something is going sideways occasionally.
Have you got a set of steps that reproduces the issue?
snagglewest
Offline

Senior Member

VA USA
Posts: 352
Threads: 57
Joined: Jul 2011
#4
2021-08-07, 08:19 PM
The orphans were from various days but I did notice some back as far as 8/4.
No sub, I have no idea how to reproduce it. This is something new that just cropped up and I didn't even realize it until today when I did a deep dive to find the problem.
NextPVR V6.1.1.221102 - Ubuntu 20.04 VM / 4 core / 8Gb memory
HDHR Prime X2 / HDFX-2 /Schedule Direct / 2X Pi4 + & 3X Pi3 LibreELEC Kodi clients
Server - TrueNAS Core 13.0 / SuperMicro MBD-X10SL7-F MB / Xeon E3-1246 / 32Gb Unbuffered ECC / 8 X 4TB RAIDZ2
snagglewest
Offline

Senior Member

VA USA
Posts: 352
Threads: 57
Joined: Jul 2011
#5
2021-08-08, 10:57 PM
I haven't spent much time trying to figure out the exact sequence of events to recreate this on demand but I found some more orphans when I just checked the disk space and noticed it loading up higher than what I would expect.

USA-HD-23 series was from earlier this afternoon via kodi.  That stream was stopped via a kodi using the normal stop button.  The USA-HD-24 is the new stream stated a short while ago and it's still running as normal.  I don't see anything glaring in the logs but then again I don't really know what I should be looking for.


Attached Files Thumbnail(s)
   

.zip   logs-20210808-1840.zip (Size: 1.82 MB / Downloads: 1)
NextPVR V6.1.1.221102 - Ubuntu 20.04 VM / 4 core / 8Gb memory
HDHR Prime X2 / HDFX-2 /Schedule Direct / 2X Pi4 + & 3X Pi3 LibreELEC Kodi clients
Server - TrueNAS Core 13.0 / SuperMicro MBD-X10SL7-F MB / Xeon E3-1246 / 32Gb Unbuffered ECC / 8 X 4TB RAIDZ2
snagglewest
Offline

Senior Member

VA USA
Posts: 352
Threads: 57
Joined: Jul 2011
#6
2021-08-09, 03:07 PM
I've wasted way too much time trying to reproduce this problem on command but I've not had any solid results.  At that end I've decided to just take the easy way out and create a PostUpdateEPG script to delete the orphans each day when the EPG update runs.  In short it just deletes any .TS files in the livetv directory that are older than 300 min or 5 hours which should exclude anything in use.  It's not elegant but it works and maybe it'll help someone else who stumbles upon this post in the future.  

Code:
#!/bin/bash
find /home/npvr/recordings/livetv/*.ts -type f -mmin +300 -exec rm {} \;
NextPVR V6.1.1.221102 - Ubuntu 20.04 VM / 4 core / 8Gb memory
HDHR Prime X2 / HDFX-2 /Schedule Direct / 2X Pi4 + & 3X Pi3 LibreELEC Kodi clients
Server - TrueNAS Core 13.0 / SuperMicro MBD-X10SL7-F MB / Xeon E3-1246 / 32Gb Unbuffered ECC / 8 X 4TB RAIDZ2
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,341
Threads: 868
Joined: May 2006
#7
2021-08-09, 04:23 PM
https://forums.nextpvr.com/showthread.ph...#pid546415 I gave years ago, as you posted it is much too hard to duplicate.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR Server VOD Downloads Incomplete TS Video Files nonuoha 22 211 2023-03-26, 09:09 PM
Last Post: mvallevand
  Post Processing and moving files ballfam 16 336 2022-12-30, 06:59 PM
Last Post: ballfam
  Think all the script files must've disappeared mlp78758 13 287 2022-11-25, 05:34 PM
Last Post: mvallevand
  TV Show recording broken into multiple files markosjal 2 318 2022-07-09, 04:53 AM
Last Post: markosjal
  Empty files when writing to samba share aimaim 3 311 2022-07-05, 10:31 PM
Last Post: mvallevand
  NextPVR creates empty TS files motocrossmann 11 1,923 2020-06-04, 03:32 PM
Last Post: motocrossmann
  Log .zip files are being created without read permission of the internal .log files? rkulagow 9 1,372 2020-05-28, 08:15 PM
Last Post: mvallevand
  LiveTV Buffer shspvr 8 1,098 2019-10-11, 05:42 PM
Last Post: shspvr
  Script Files vintdiesel 16 4,393 2019-09-22, 12:50 AM
Last Post: CDinger

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode