1.22.0 Problem with Synology NAS ? (1 Viewer)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,512
    528
    South of France
    France France
    Country flag
    • Thread starter
    • Moderator
    • #1
    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
    4,512
    528
    South of France
    France France
    Country flag
    • 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
    1,999
    1,234
    Southampton
    United Kingdom United Kingdom
    Country flag
    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
    4,512
    528
    South of France
    France France
    Country flag
    • 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
    4,512
    528
    South of France
    France France
    Country flag
    • 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
    4,512
    528
    South of France
    France France
    Country flag
    • 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
    11,880
    6,725
    Kyiv
    Ukraine Ukraine
    Country flag
    How about MP Configurator?

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

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    F Problems with new install of MP2 Newcomers Forum 3
    A [solved] DiseqC problems after upgrade to 1.25 General Support 1
    M Problems with VFD Display after standby- Futaba DM140GINK Mini Display 0
    R Connection (api) problems with thetvdb.com General 3
    123vak123 [solved] 5008: The problem with scrolling text in the "listcontrol" in 4K General Support 22
    framug 1.24.0 1.25.0 pre : problem with build ? 1.24 Pre Release 89
    J Problems with 1.24 StreamedMP 19
    Rob Hexenmeister Navigation problems adding menu buttons to EPG General Support 1
    404 [solved] EPG problem after Win10 'upgrade' General Support 1
    framug [EPG] Some problems with DVB EPG Improvement Suggestions 49
    C strange tuner(?) problem TV-Cards 0
    R Problems accessing MySQL database remotely MediaPortal 1 Talk 0
    T [solved] Startup problem General 6
    G Problems with DRR MediaPortal 1 Talk 1
    rsbrux 1.23.0 MPE Manager Problem with LAV Filters Bugreports 2
    S Problem with Remote Control One-for-all Streamer Newcomers Forum 6
    joecrow Default Wide HD Xmas Theme Problem General Support 3
    K Sleep mode problem after formating General Support 2
    P IPTV Channel Problem TV-Server 0
    C Problem playing videos created on IPhone X and Samsung S9 General Support 2
    nominefi Problem scanning channels. General Support 0
    E Swedish subtitles problem General 2
    G Newb trying MP2, trouble with guide data General 5
    G MP1 TV Server "failed to upgrade the database" using MS Sql Server Installation, configuration support 3
    geotwticher [solved] Fatal Error 0x80070643 during MP2 installation General 7
    Top Bottom