1.22.0 Problem with Synology NAS ? (2 Viewers)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    5,884
    1,956
    South of France
    Home Country
    France France
    MediaPortal Version: 1.22

    Description
    Hello,

    Can someone confirm there are problems in MP Video, MP music and MP pictures with NAS Synology ?
    Therefore, UNC paths can be accessed by windows explorer ans also by moving picture plugin.

    Example with music :

    Code:
    ......
    [2019-06-24 19:29:16,030] [Log    ] [MPMain   ] [INFO ] - TexturePacker: Loaded D:\PCHC\Mes documents\Team MediaPortal\MediaPortal\Cache\PureVisionHD 1080\packedgfx27.png texture:2048x2048 miplevels:1
    [2019-06-24 19:29:16,030] [Log    ] [MPMain   ] [INFO ] - TexturePacker: fontengine add texure:1974
    [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Music.GUIMusicFiles init
    [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [INFO ] - Open FolderDatabase
    [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [DEBUG] - IntegrityCheck: the D:\PCHC\Mes documents\Team MediaPortal\MediaPortal\Database\FolderDatabase3.db3 is OK
    [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [DEBUG] - Cleanup FolderDatabase
    [2019-06-24 19:29:16,108] [Log    ] [MPMain   ] [DEBUG] - GetFolderSetting: root found.
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: dns reverse lookup timeout (1000,0003 ms)!
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - UNCTools: PingHost: Could not resolve/convert diskstation to an IPAddress object!
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - UNCTools: UNCFileFolderOnline: host 'diskstation' is not reachable!! , File/Folder '\\DISKSTATION\music'
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - GetRootExt(): 'diskstation' is offline. Added to the ignored list.
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - GetRootExt(): ShareOffline : '\\DISKSTATION\music' doesn't exists or offline, enable WOL feature for permanent loading
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - GetRootExt(): ShareOffline : '\\DISKSTATION\music' can be refreshed from context menu in share view mode
    [2019-06-24 19:29:17,233] [Log    ] [PoolThread45] [DEBUG] - FolderThumbCacher: No folder thumb at G:\folder.jpg
    ......
    Therefore, UNC paths can be accessed by windows explorer ans also by moving picture plugin.
    An idea ?

    Steps to Reproduce:
    Put a config (music, videos, pictures) with Synology NAS folder.
    Launch MP
    Click on music
    Nothing Synology relevant is displayed in item list.
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    5,884
    1,956
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #2
    MediaPortal Version: 1.22

    Description
    Hello,

    Can someone confirm there are problems in MP Video, MP music and MP pictures with NAS Synology ?
    Therefore, UNC paths can be accessed by windows explorer ans also by moving picture plugin.

    Example with music :

    Code:
    ......
    [2019-06-24 19:29:16,030] [Log    ] [MPMain   ] [INFO ] - TexturePacker: Loaded D:\PCHC\Mes documents\Team MediaPortal\MediaPortal\Cache\PureVisionHD 1080\packedgfx27.png texture:2048x2048 miplevels:1
    [2019-06-24 19:29:16,030] [Log    ] [MPMain   ] [INFO ] - TexturePacker: fontengine add texure:1974
    [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Music.GUIMusicFiles init
    [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [INFO ] - Open FolderDatabase
    [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [DEBUG] - IntegrityCheck: the D:\PCHC\Mes documents\Team MediaPortal\MediaPortal\Database\FolderDatabase3.db3 is OK
    [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [DEBUG] - Cleanup FolderDatabase
    [2019-06-24 19:29:16,108] [Log    ] [MPMain   ] [DEBUG] - GetFolderSetting: root found.
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: dns reverse lookup timeout (1000,0003 ms)!
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - UNCTools: PingHost: Could not resolve/convert diskstation to an IPAddress object!
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - UNCTools: UNCFileFolderOnline: host 'diskstation' is not reachable!! , File/Folder '\\DISKSTATION\music'
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - GetRootExt(): 'diskstation' is offline. Added to the ignored list.
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - GetRootExt(): ShareOffline : '\\DISKSTATION\music' doesn't exists or offline, enable WOL feature for permanent loading
    [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - GetRootExt(): ShareOffline : '\\DISKSTATION\music' can be refreshed from context menu in share view mode
    [2019-06-24 19:29:17,233] [Log    ] [PoolThread45] [DEBUG] - FolderThumbCacher: No folder thumb at G:\folder.jpg
    ......

    Of course, IP adress exist (ie 192.168.5.25 for me)
    An idea ?

    Steps to Reproduce:
    Put a config (music, videos, pictures) with Synology NAS folder.
    Launch MP
    Click on music
    Nothing Synology relevant is displayed in item list.
    Weird 2nd post I can't delete and also 1.21 version instead of 1.22
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,849
    1,771
    Southampton
    Home Country
    United Kingdom United Kingdom
    Can someone confirm there are problems in MP Video, MP music and MP pictures with NAS Synology ?
    I have a Synology NAS that I use for storage of recordings that I am not going to watch in the near future, so it is powered off most of the time. I can play video from it if I want, but I use a fixed explicit network address in the "Video Folders" panel of "MP Config". Specifically, I use this:

    \\192.168.2.11\Media

    Personally, I find that networking is "A riddle, wrapped in a mystery, inside an enigma" :eek:. Winston Churchill said that, and he would have said it about networking, had networking existed when he said it. :)

    -- from CyberSimian in the UK
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    5,884
    1,956
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #4
    Well, didn't know that Winston Churchill was a so skilled networking guy. (both back and front ?) :D
    I tested your workaround and it works for the 3 (music, picture and videos).
    The weird thing is, when we are in configuration.exe, \\DISKSTATION is working fine (try database update, you will see that files are read and databases updated).
    Then I suppose AsyncDNSReverseLookup in MP client doesn't do correctly what it has to do with Synology.
    May be a day, if I have time, I will look deeper in that.
    The problem is that I have to be where my NAS is, for testing and maybe fix it...
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    5,884
    1,956
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #5
    OK, I found the problem.
    It seems that synology takes time to do AsyncDNSReverseLookup with name (at least more than one second) :

    Code:
    [2019-06-25 06:57:19,275] [Log    ] [6        ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: ip '192.168.5.25' resolved for host 'diskstation' in 1002,7052 ms
    [2019-06-25 06:57:19,513] [Log    ] [PoolThread24] [DEBUG] - FolderThumbCacher: No folder thumb at F:\folder.jpg
    [2019-06-25 06:57:19,513] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 21
    [2019-06-25 06:57:19,513] [Log    ] [6        ] [DEBUG] - Folder:  : took : 1,3725474 s to load
    [2019-06-25 06:57:19,513] [Log    ] [PoolThread25] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\folder.jpg
    [2019-06-25 06:57:19,513] [Log    ] [PoolThread25] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 22
    [2019-06-25 06:57:21,835] [Log    ] [20       ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music found.
    [2019-06-25 06:57:22,901] [Log    ] [20       ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: dns reverse lookup timeout (1004,8459 ms)!
    [2019-06-25 06:57:22,901] [Log    ] [20       ] [DEBUG] - UNCTools: PingHost: Could not resolve/convert diskstation to an IPAddress object!
    [2019-06-25 06:57:22,901] [Log    ] [20       ] [DEBUG] - UNCTools: UNCFileFolderOnline: host 'diskstation' is not reachable!! , File/Folder '\\DISKSTATION\music'
    [2019-06-25 06:57:22,916] [Log    ] [20       ] [DEBUG] - Folder: \\DISKSTATION\music : took : 1,1032026 s to load
    [2019-06-25 06:57:26,141] [Log    ] [MPMain   ] [DEBUG] - Main: WM_SYSCOMMAND (SC_CLOSE)
    [2019-06-25 06:57:26,141] [Log    ] [MPMain   ] [DEBUG] - D3D: OnFormClosing()
    [2019-06-25 06:57:26,141] [Log    ] [MPMain   ] [DEBUG] - D3D: Dispose() ClientSize: 1104x621, MaxClientSize: 1904x1071
    [2019-06-25 06:57:26,156] [Log    ] [MPMain   ] [DEBUG] - D3D CleanupEnvironment()

    Then, if we give a bit more time (I would say 1.5 second), it is working :
    Code:
    [2019-06-25 07:16:45,419] [Log    ] [MPMain   ] [DEBUG] - GetFolderSetting: root found.
    [2019-06-25 07:16:46,568] [Log    ] [16       ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: ip '192.168.5.25' resolved for host 'diskstation' in 1003,0009 ms
    [2019-06-25 07:16:46,799] [Log    ] [PoolThread25] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\folder.jpg
    [2019-06-25 07:16:46,800] [Log    ] [PoolThread24] [DEBUG] - FolderThumbCacher: No folder thumb at F:\folder.jpg
    [2019-06-25 07:16:46,803] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 20
    [2019-06-25 07:16:46,801] [Log    ] [PoolThread25] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 19
    [2019-06-25 07:16:46,826] [Log    ] [16       ] [DEBUG] - Folder:  : took : 1,3809943 s to load
    [2019-06-25 07:16:48,402] [Log    ] [6        ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music found.
    [2019-06-25 07:16:49,441] [Log    ] [6        ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: ip '192.168.5.25' resolved for host 'diskstation' in 1001,9951 ms
    [2019-06-25 07:16:49,447] [Log    ] [6        ] [DEBUG] - UNCFileFolderExists: Folder'\\DISKSTATION\music' exists!
    [2019-06-25 07:16:51,251] [Log    ] [PoolThread24] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\Adele\folder.jpg
    [2019-06-25 07:16:51,253] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 21
    [2019-06-25 07:16:51,257] [Log    ] [PoolThread25] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\Anahata Brihaspati Falguna Yaëlle\folder.jpg
    [2019-06-25 07:16:51,259] [Log    ] [PoolThread25] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 22
    [2019-06-25 07:16:51,258] [Log    ] [PoolThread24] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\Ananda\folder.jpg
    [2019-06-25 07:16:51,260] [Log    ] [MPMain   ] [DEBUG] - ThreadPool.CheckThreadIncrementRequired() : incrementing thread count 2 with 1
    [2019-06-25 07:16:51,262] [Log    ] [6        ] [DEBUG] - Folder: \\DISKSTATION\music : took : 2,9099983 s to load
    [2019-06-25 07:16:51,263] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 23
    [2019-06-25 07:16:51,263] [Log    ] [PoolThread25] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\Aretha Franklin & Otis Redding\folder.jpg
    [2019-06-25 07:16:51,265] [Log    ] [MPMain   ] [DEBUG] - ThreadPool.StartThreads() : Thread PoolThread31 started
    [2019-06-25 07:16:51,270] [Log    ] [PoolThread25] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 24
    [2019-06-25 07:16:54,646] [Log    ] [5        ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music\Alicia Keys found.
    [2019-06-25 07:16:55,681] [Log    ] [5        ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: ip '192.168.5.25' resolved for host 'diskstation' in 1002,9994 ms
    [2019-06-25 07:16:55,691] [Log    ] [5        ] [DEBUG] - UNCFileFolderExists: Folder'\\DISKSTATION\music\Alicia Keys' exists!
    [2019-06-25 07:16:55,713] [Log    ] [PoolThread24] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition)\folder.jpg
    [2019-06-25 07:16:55,715] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 25
    [2019-06-25 07:16:55,726] [Log    ] [5        ] [DEBUG] - Folder: \\DISKSTATION\music\Alicia Keys : took : 1,1319966 s to load
    [2019-06-25 07:16:56,840] [Log    ] [20       ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition) not found, trying the parent \\DISKSTATION\music\Alicia Keys
    [2019-06-25 07:16:56,842] [Log    ] [20       ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music\Alicia Keys found.
    [2019-06-25 07:16:57,879] [Log    ] [20       ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: ip '192.168.5.25' resolved for host 'diskstation' in 1004,0005 ms
    [2019-06-25 07:16:57,889] [Log    ] [20       ] [DEBUG] - UNCFileFolderExists: Folder'\\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition)' exists!
    [2019-06-25 07:16:57,940] [Log    ] [20       ] [DEBUG] - Folder: \\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition) : took : 1,1480043 s to load
    [2019-06-25 07:16:59,247] [Log    ] [16       ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition)\CD2 not found, trying the parent \\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition)
    [2019-06-25 07:16:59,249] [Log    ] [16       ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition) found.
    [2019-06-25 07:17:00,276] [Log    ] [16       ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: ip '192.168.5.25' resolved for host 'diskstation' in 1002,9996 ms
    [2019-06-25 07:17:00,287] [Log    ] [16       ] [DEBUG] - UNCFileFolderExists: Folder'\\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition)\CD2' exists!
    [2019-06-25 07:17:00,338] [Log    ] [16       ] [DEBUG] - Folder: \\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition)\CD2 : took : 1,1489995 s to load
    [2019-06-25 07:17:04,729] [Log    ] [MediaInfoWrapper] [DEBUG] - MediaInfoWrapper: isVideo:False, isDVD:False[enabled:False]
    [2019-06-25 07:17:04,731] [Log    ] [MediaInfoWrapper] [DEBUG] - MediaInfoWrapper: disabled for this content
    [2019-06-25 07:17:04,734] [Log    ] [MPMain   ] [INFO ] - g_Player.Play(\\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition)\CD2\01 - Alicia Keys - If I Ain't Got You (Remix) (Usher & Alicia Keys).mp3 Music)

    Changes are in \mediaportal\Core\Util\UNCTools.cs line 520 to 528, if you want to fix it please, replace

    Code:
                        var t1 = Task.Factory.StartNew(_ => DnsReverseLookup(strHost_or_IP),
                                                            TaskCreationOptions.AttachedToParent)
                                             .TimeoutAfter(1000)
                                             .ContinueWith(antecedent =>
                                             {
                                                 if (!(antecedent.IsCanceled || antecedent.IsFaulted))
                                                     address = antecedent.Result;
                                             }
                                        , cts.Token);

    by

    Code:
                        var t1 = Task.Factory.StartNew(_ => DnsReverseLookup(strHost_or_IP),
                                                            TaskCreationOptions.AttachedToParent)
                                             .TimeoutAfter(1500)
                                             .ContinueWith(antecedent =>
                                             {
                                                 if (!(antecedent.IsCanceled || antecedent.IsFaulted))
                                                     address = antecedent.Result;
                                             }
                                        , cts.Token);
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    5,884
    1,956
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #8
    Come on ajs,
    Give him pleasure (don't misunderstand me) :ROFLMAO:

    Code:
                        int iTimer = 1500;
                        var t1 = Task.Factory.StartNew(_ => DnsReverseLookup(strHost_or_IP),
                                                            TaskCreationOptions.AttachedToParent)
                                             .TimeoutAfter(iTimer)
                                             .ContinueWith(antecedent =>
                                             {
                                                 if (!(antecedent.IsCanceled || antecedent.IsFaulted))
                                                     address = antecedent.Result;
                                             }
                                        , cts.Token);
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,495
    10,371
    Kyiv
    Home Country
    Ukraine Ukraine
    How about MP Configurator?

    --
    WBR, ajs :):whistle::coffee:
     

    Users who are viewing this thread

    Top Bottom