no free disk space if recording or timeshift folder is on NAS (1 Viewer)

disaster123

MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    Hi,

    i was trying to put my timeshift and recording folders on my NAS. I mapped the folder /host to a new drive (Z:) and set all properties to this drive.

    But when i try to start timeshifting TV Server says "No free disk space". But the Windows Explorer shows me 1,94TB free for this drive.


    Log:
    Code:
    [2013-08-15 08:48:35,219] [Log	] [24	   ] [INFO ] - **************************************************
    [2013-08-15 08:48:35,219] [Log	] [24	   ] [DEBUG] - card: tuned user: setuptv-2154--1 subchannel: 0
    [2013-08-15 08:48:35,219] [Log	] [24	   ] [INFO ] - user:setuptv-2154--1 add
    [2013-08-15 08:48:35,219] [Log	] [24	   ] [INFO ] - card2:setuptv-2154--1 4 0
    [2013-08-15 08:48:35,219] [Log	] [24	   ] [INFO ] - Controller: delete timeshift files Z:\TS\live4-0.ts
    [2013-08-15 08:48:35,219] [Log	] [24	   ] [ERROR] - Exception   :System.IO.DirectoryNotFoundException: Ein Teil des Pfades "Z:\TS" konnte nicht gefunden werden.
       bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       bei System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
       bei System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
       bei System.IO.Directory.GetFiles(String path)
       bei TvService.CardReservationBase.CleanTimeShiftFiles(String folder, String fileName)
    
    [2013-08-15 08:48:35,219] [Log	] [24	   ] [INFO ] - Controller: epg stop
    [2013-08-15 08:48:35,219] [Log	] [24	   ] [INFO ] - card Digital Devices DVB-S/S2 Tuner 2: StopTimeShifting user:setuptv-2154--1 sub:0
    [2013-08-15 08:48:35,219] [Log	] [24	   ] [DEBUG] - card not IDLE - removing user: setuptv-2154--1


    But everything is there:
    Code:
    C:\Users\admin>z:
    
    Z:\>cd ts
    
    Z:\TS>dir
     Datentrger in Laufwerk Z: ist Aufnahmen
     Volumeseriennummer: 819C-BDC4
    
     Verzeichnis von Z:\TS
    
    07.08.2013  10:53	<DIR>		  .
    07.08.2013  10:50	<DIR>		  ..
    			   0 Datei(en),			  0 Bytes
    			   2 Verzeichnis(se), 2.126.558.694.400 Bytes frei
    
    Z:\TS>

    Stefan
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hello Stefan

    Does the TV service account (usually a local system account) have read/write permissions to the share?
    I note that I wouldn't recommend a NAS for timeshifting. It is probably okay for recording, but the increased latency can be problematic.

    mm
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,394
    1,170
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    System.IO.DirectoryNotFoundException: Ein Teil des Pfades "Z:\TS" konnte nicht gefunden werden.
    exactly as mm said - you have set access rights for your user account (as you see in command line window), but tvservice normally starts under NT-AUTHORITY/SYSTEM account, so you somehow need to set access permissions also for this account.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    Oh it's a 10Gbit/s attached NAS - Latency shouldn't be a problem.

    Yes the tvservice is running as system. The attached NAS is a guest NAS so no user is needed. And the permissions under windows are set to Everybody => yes.

    Adding User SYSTEM does not work windows automatically deletes it when i click OK.[DOUBLEPOST=1376551941][/DOUBLEPOST]Everything works fine if i do not assign a drive letter and use the network path instead \\NAS\PATH but then strangely recording deletions do not work from tvservice (max recordings set to 4 for a recording). Everything else works fine.
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    H there,

    The issue you are having is that the "System" account can not map drive lets (but can have directory permissions)

    To be honest the "System" account should only be used for resources local to the device it is on, and not remote resources (such as UNCs - unless fully unrestricted)

    J.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    Jay_UK: thanks for your input. Can you tell me what you mean? My UNC is fully unrestricted. It has only a guest user with all permissions.
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    When I said the system account can have permissions - I was misleading. What I was trying to say was that if you had removed all restrictions from your UNC (eg Everyone:write), they the "system" account shouldn't need to worry and by default have access.

    I reiterate what I said above, the "System" account should not be used for accessing remote services. It should work with an unrestricted UNC, but wont work properly with a mapped drive.

    Why are you mapping a drive letter to the UNC? Just use the UNC within MePo?

    J.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    It was working fine using just UNC except deleting recording if i've set to keep just a constant number of them. TVService then runs in an endless loop deleting the file.
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    It was working fine using just UNC except deleting recording if i've set to keep just a constant number of them. TVService then runs in an endless loop deleting the file.
    Hi,

    can you provide a debug log when tvserver failed deleting of an episode if you use unc path for recording?
     

    Users who are viewing this thread

    Top Bottom