Unable to record TV to network drive (1 Viewer)

aswede

Portal Member
March 16, 2009
8
1
I have been unable to get the TV Server to record programs to a network drive, regardless if it is mapped to a drive letter, or if I use the full path name. The network drive is set up with no access restrictions.

There is no problem to get it to record to my local D-drive. tab.

I just set up either my mapped drive letter, or the full path name in the TV_Server configurator, in the Recording Settings --> Recording folders tab. Nothing records to my network drive. I have no problem accessing the network drive from explorer.

Here is an example of an error log:

2009-03-24 22:56:14.890625 [Scheduler timer]: Exception :confused:ystem.UnauthorizedAccessException: Access to the path '\\Home-server\TV and Movie Download\TV\New Recordings' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
at TvDatabase.MatroskaTagHandler.WriteTag(String filename, MatroskaTagInfo taginfo)
at TvService.Scheduler.StartRecord(RecordingDetail recording)
Exception :Access to the path '\\Home-server\TV and Movie Download\TV\New Recordings' is denied.
site :Void WinIOError(Int32, System.String)
source :mscorlib
stacktrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
at TvDatabase.MatroskaTagHandler.WriteTag(String filename, MatroskaTagInfo taginfo)
at TvService.Scheduler.StartRecord(RecordingDetail recording)
 

Marcusb

Retired Team Member
  • Premium Supporter
  • February 16, 2005
    1,995
    29
    Melbourne
    the issue is that the credentials that the TV server runs under have no network priveleges, just local machine.
    Just create a new user with network access (and local admin) and run the server service under that account.
     

    aswede

    Portal Member
    March 16, 2009
    8
    1
    Thaks for your suggestion. I am not sure I did exactly what you suggested, dmin but what I did do was to create a new account on my local machine, with admin rights. Then I took this new account, and verified that I could read and right to the network drive, without using a password ... I just typed in the UNC name in the address field of a window, and the folder opened up.

    I then tried starting MediaPortal, from this new account, and wuth the Recodring Folder set to the same UNC address. No luck. I then mapped the shared drive to a drive letter (T), and then used this mapped drive letter in setting up the recording folder T:/TV. Again, no cigar!

    What am I doing wrong here??

    Below is the text from the error log file:

    2009-03-26 10:25:50.062500 [Scheduler timer]: Exception :confused:ystem.UnauthorizedAccessException: Access to the path '\\Home-server\Media downloads\TV' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
    at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
    at TvDatabase.MatroskaTagHandler.WriteTag(String filename, MatroskaTagInfo taginfo)
    at TvService.Scheduler.StartRecord(RecordingDetail recording)
    Exception :Access to the path '\\Home-server\Media downloads\TV' is denied.
    site :Void WinIOError(Int32, System.String)
    source :mscorlib
    stacktrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
    at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
    at TvDatabase.MatroskaTagHandler.WriteTag(String filename, MatroskaTagInfo taginfo)
    at TvService.Scheduler.StartRecord(RecordingDetail recording)

    2009-03-26 10:45:17.109375 [Scheduler timer]: Exception :confused:ystem.IO.DirectoryNotFoundException: Could not find a part of the path 'T:\TV'.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
    at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
    at TvDatabase.MatroskaTagHandler.WriteTag(String filename, MatroskaTagInfo taginfo)
    at TvService.Scheduler.StartRecord(RecordingDetail recording)
    Exception :Could not find a part of the path 'T:\TV'.
    site :Void WinIOError(Int32, System.String)
    source :mscorlib
    stacktrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
    at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
    at TvDatabase.MatroskaTagHandler.WriteTag(String filename, MatroskaTagInfo taginfo)
    at TvService.Scheduler.StartRecord(RecordingDetail recording)
     

    x4mer

    MP Donator
  • Premium Supporter
  • November 8, 2007
    306
    24
    Toronto
    Home Country
    Canada Canada
    TV service is what needs the rights. By default TV service runs as system account, not user account. Change the properties of TV service log on tab to an account with full access to the remote directories. Make sure the account has sufficient access to local resources as well, as TV service is expecting system access locally.
     

    aswede

    Portal Member
    March 16, 2009
    8
    1
    I apologize, but I am really a novice when it comes to networking and services. I do not understand what I am supposed to do when you say:

    Change the properties of TV service log on tab to an account with full access to the remote directories. Make sure the account has sufficient access to local resources as well, as TV service is expecting system access locally.

    I did go into Computer Management, found the TV Service, clicked on the second tab (Log On) and tried using the Administrator name and password (it is the same on the server as on the local machine) but it did not work. I am assuming I am missing something ... could you give me some more info so that I can get this right ....

    I appreciate you patience !
     

    x4mer

    MP Donator
  • Premium Supporter
  • November 8, 2007
    306
    24
    Toronto
    Home Country
    Canada Canada
    Just heading to bed now. I'll try setting up remote folders tomorrow, to see where the hang up may be.

    Just a note that Admin account on host A is not the same as Admin account on host B, even if they are the same name & password. One is HostA\Admin while the other is HostB\Admin.
     

    x4mer

    MP Donator
  • Premium Supporter
  • November 8, 2007
    306
    24
    Toronto
    Home Country
    Canada Canada
    Marcusb's instructions should have been enough

    I just tried it here. I changed the timeshift folder to a remote share with full access. I went to manage services & changed the log on credentials for the TV service, by clicking browse, advanced, find names. I selected a local account with admin rights, applied & restarted the TVserver. Selecting preview channel in TV server then started spooling the timeshift to the remote share, which didn't work before the changes.
     

    aswede

    Portal Member
    March 16, 2009
    8
    1
    Thasnks for your suggestions.

    I went to to Manage services and changed the log in credentials to Administrator, and put in the password. Worked fine, it accepted it and I restarted the server. I selected another network drive (I have 6) mapped it to the local clinet as M:, then went to the TV Server Configurator, set up both the time shift and recoriding folders to be on M.

    Now I had the problem that MediaPortal locks up when I go to watch TV. Checking the error log I get the following:

    2009-03-27 20:53:24.812500 [10]: Exception :confused:ystem.IO.DirectoryNotFoundException: Could not find a part of the path 'M:\MediaPortal\Timeshift'.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path)
    at TvService.TVController.CleanTimeShiftFiles(String folder, String fileName)
    Exception :Could not find a part of the path 'M:\MediaPortal\Timeshift'.
    site :Void WinIOError(Int32, System.String)
    source :mscorlib
    stacktrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path)
    at TvService.TVController.CleanTimeShiftFiles(String folder, String fileName)

    I am wondering if I have messed something up in setting up MediaPortal, as it works for you. Should try to reinstall MediaPortal and see if I can get it working?

    Thasnks for your suggestions.

    I went to to Manage services and changed the log in credentials to Administrator, and put in the password. Worked fine, it accepted it and I restarted the server. I selected another network drive (I have 6) mapped it to the local clinet as M:, then went to the TV Server Configurator, set up both the time shift and recoriding folders to be on M.

    Now I had the problem that MediaPortal locks up when I go to watch TV. Checking the error log I get the following:

    2009-03-27 20:53:24.812500 [10]: Exception :confused:ystem.IO.DirectoryNotFoundException: Could not find a part of the path 'M:\MediaPortal\Timeshift'.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path)
    at TvService.TVController.CleanTimeShiftFiles(String folder, String fileName)
    Exception :Could not find a part of the path 'M:\MediaPortal\Timeshift'.
    site :Void WinIOError(Int32, System.String)
    source :mscorlib
    stacktrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path)
    at TvService.TVController.CleanTimeShiftFiles(String folder, String fileName)

    I am wondering if I have messed something up in setting up MediaPortal, as it works for you. Should try to reinstall MediaPortal and see if I can get it working?
     

    Users who are viewing this thread

    Top Bottom