NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 342 343 344 345 346 … 433 Next »
Deleting recordings from PC clients

Deleting recordings from PC clients
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#1
2011-09-01, 06:10 PM
How does deleting recordings from networked PC clients work? Does it need to be able to resolve the file path? I ask because I recently noticed that my recording drive was quite full and it turns out that many of my recordings were not deleted from disk as expected when selecting delete in the NPVR interface on a client PC. It also seems that the response to the "Ok" in the delete message on the client PC is often delayed with no response for up to 10 seconds. This seems to be the case for only the first delete - the message closes quickly on subsequent deletes.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,740
Threads: 767
Joined: Nov 2003
#2
2011-09-01, 06:15 PM
Quote:How does deleting recordings from networked PC clients work?
The client tells the server to delete the recording, and it's done from the server side.

Quote:Does it need to be able to resolve the file path? I
No.

I dont have a client/server setup here at the moment, so not easy for me to test, but can you reproduce it, then post the client's npvr.log and server's nrecord.log? It should have a few messages saying "DeleteRecording...." in the server log.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#3
2011-09-01, 06:53 PM
This is from the server log:

Code:
2011-08-31 20:43:57.045    [ERROR][21]    Unexpected exception in ClientConnectionHandler: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 size, SocketFlags socketFlags)
   at NShared.ClientConnectionHandler.WorkerThread()
2011-08-31 20:43:57.045    [DEBUG][21]    ClientConnectionHandler exiting...
2011-08-31 20:44:03.924    [DEBUG][6]    DeleteRecording(2814)
2011-08-31 20:44:03.924    [DEBUG][6]    DeleteRecording@1
2011-08-31 20:44:03.924    [DEBUG][6]    Cancelling wake up request for for 'RecordingOID2814'
2011-08-31 20:44:04.002    [DEBUG][6]     -removing: T:\Wipeout\Wipeout_20110830_20002100.ts
2011-08-31 20:44:04.002    [ERROR][6]    Unexpected error in DeleteRecording(): System.IO.IOException: The process cannot access the file 'T:\Wipeout\Wipeout_20110830_20002100.ts' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.Delete(String path)
   at NShared.RecordingService.DeleteFile(String filename)
   at NShared.RecordingService.DeleteRecording(ScheduledRecording scheduledRecording)
2011-08-31 20:44:04.002    [DEBUG][6]    DeleteRecording@exit

This is delete bit from the client log:

Code:
2011-08-31 20:43:06.455    [DEBUG][1]    Deleting recording (file:T:\Wipeout\Wipeout_20110830_20002100.ts)
2011-08-31 20:43:06.542    [DEBUG][1]    Removing popup
2011-08-31 20:43:06.542    [DEBUG][1]    ActivatePopup: null
2011-08-31 20:43:06.543    [DEBUG][1]    deactivating old popup: Popup
2011-08-31 20:43:06.543    [DEBUG][1]    Going to dispose popup at end of animation
2011-08-31 20:43:06.545    [DEBUG][1]    Requesting RELOAD_RECORDINGS
2011-08-31 20:43:06.545    [DEBUG][1]    Recordings.RELOAD_RECORDINGS
2011-08-31 20:43:06.545    [DEBUG][1]    Recordings.RELOAD_RECORDINGS@1


I played the recording some, stopped it, selected the recording, and selected delete from the popup so I'm not exactly sure why it would still be in use.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,740
Threads: 767
Joined: Nov 2003
#4
2011-09-01, 07:08 PM
Ah, ok. So it looks like it's tried to delete the file but was unable to because it was still in use.

I'm guessing something in the streaming logic is incorrectly leaving the file open. For comparison's sake, can you see if it manages to delete a file you haven't just watched?
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#5
2011-09-01, 07:47 PM
I had to go back into the logs from yesterday for an example because I just tried deleting a file right after playback to reproduce it when you asked for logs and it worked so it might be a timing thing - maybe related to how long you wait before you try to delete? Unfortunately, I don't have any more recordings to delete/test.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,740
Threads: 767
Joined: Nov 2003
#6
2011-09-01, 08:06 PM
I think this patch will fix it.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#7
2011-09-01, 08:28 PM
Thanks - I'll give it a try.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#8
2011-09-03, 01:42 PM
Preliminary testing seems to indicate that the patch fixes the problem - thanks.

There still is occasionally a long delay (I counted 20 seconds) when trying to delete a recording from a client. It seems to be on just the very first attempt. Any idea about this one?
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,667
Threads: 170
Joined: Jun 2007
#9
2011-09-03, 02:05 PM
cncb Wrote:There still is occasionally a long delay (I counted 20 seconds) when trying to delete a recording from a client. It seems to be on just the very first attempt. Any idea about this one?

The drive that the recording is on was spun-down? Or, if a network drive, temporarily disconnected?
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#10
2011-09-03, 03:40 PM
BrettB Wrote:The drive that the recording is on was spun-down? Or, if a network drive, temporarily disconnected?

No, it is right after I just watched the recording.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Failed recordings won't delete Spid4567 3 2,501 2023-07-14, 10:13 PM
Last Post: ZeDoZ
  All my recordings start 90 sec early ncsercs 2 1,372 2022-03-19, 03:28 AM
Last Post: sub
  Wake - Sleep Interaction -> Failed Recordings mikeh49 48 14,777 2021-03-21, 11:21 PM
Last Post: careads
  Most recordings are zero bytes virtualpaul 4 2,066 2021-01-29, 12:55 PM
Last Post: virtualpaul
  Deleting itgreen9@gmail.com 3 1,296 2021-01-19, 02:54 AM
Last Post: itgreen9@gmail.com
  Recordings with Next PVR 4.2.5 (CL0116) have background music but no voice in record DavidF 4 2,109 2021-01-07, 08:47 AM
Last Post: sub
  Recordings not playing in browser FamilyGuyFan 1 1,442 2020-10-22, 10:18 PM
Last Post: mvallevand
  Recordings 1 minute off BobbyDing 7 2,833 2020-10-11, 08:07 PM
Last Post: mvallevand
  easy tools to remove adverts in recordings? V_J 6 4,015 2020-10-06, 02:37 AM
Last Post: Ehrlichia
  Black screen, no audio, & zero bit recordings mattman1968 1 1,558 2020-09-15, 12:19 AM
Last Post: mattman1968

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

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

Linear Mode
Threaded Mode