1.21.0 - Problem with Synology NAS ?

Discussion in 'Bugreports for 1.22' started by framug, June 24, 2019.

  1. framug

    framug Portal Pro

    Joined:
    January 31, 2005
    Messages:
    4,141
    Likes Received:
    188
    Occupation:
    software engineer
    Location:
    South of France
    Ratings:
    +220 / 2
    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 (Text):
    1.  
    2. ......
    3. [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
    4. [2019-06-24 19:29:16,030] [Log    ] [MPMain   ] [INFO ] - TexturePacker: fontengine add texure:1974
    5. [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Music.GUIMusicFiles init
    6. [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [INFO ] - Open FolderDatabase
    7. [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [DEBUG] - IntegrityCheck: the D:\PCHC\Mes documents\Team MediaPortal\MediaPortal\Database\FolderDatabase3.db3 is OK
    8. [2019-06-24 19:29:16,092] [Log    ] [MPMain   ] [DEBUG] - Cleanup FolderDatabase
    9. [2019-06-24 19:29:16,108] [Log    ] [MPMain   ] [DEBUG] - GetFolderSetting: root found.
    10. [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: dns reverse lookup timeout (1000,0003 ms)!
    11. [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - UNCTools: PingHost: Could not resolve/convert diskstation to an IPAddress object!
    12. [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - UNCTools: UNCFileFolderOnline: host 'diskstation' is not reachable!! , File/Folder '\\DISKSTATION\music'
    13. [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - GetRootExt(): 'diskstation' is offline. Added to the ignored list.
    14. [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
    15. [2019-06-24 19:29:17,186] [Log    ] [43       ] [DEBUG] - GetRootExt(): ShareOffline : '\\DISKSTATION\music' can be refreshed from context menu in share view mode
    16. [2019-06-24 19:29:17,233] [Log    ] [PoolThread45] [DEBUG] - FolderThumbCacher: No folder thumb at G:\folder.jpg
    17. ......
    18.  
    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.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. framug

    framug Portal Pro

    Joined:
    January 31, 2005
    Messages:
    4,141
    Likes Received:
    188
    Occupation:
    software engineer
    Location:
    South of France
    Ratings:
    +220 / 2
    Home Country:
    France France
    Weird 2nd post I can't delete and also 1.21 version instead of 1.22
     
  4. CyberSimian
    • Team MediaPortal

    CyberSimian Test Group

    Joined:
    June 10, 2013
    Messages:
    1,609
    Likes Received:
    533
    Gender:
    Male
    Location:
    Southampton
    Ratings:
    +951 / 3
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    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
     
    • Thank You! Thank You! x 1
  5. framug

    framug Portal Pro

    Joined:
    January 31, 2005
    Messages:
    4,141
    Likes Received:
    188
    Occupation:
    software engineer
    Location:
    South of France
    Ratings:
    +220 / 2
    Home Country:
    France France
    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...
     
  6. framug

    framug Portal Pro

    Joined:
    January 31, 2005
    Messages:
    4,141
    Likes Received:
    188
    Occupation:
    software engineer
    Location:
    South of France
    Ratings:
    +220 / 2
    Home Country:
    France France
    OK, I found the problem.
    It seems that synology takes time to do AsyncDNSReverseLookup with name (at least more than one second) :

    Code (Text):
    1.  
    2. [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
    3. [2019-06-25 06:57:19,513] [Log    ] [PoolThread24] [DEBUG] - FolderThumbCacher: No folder thumb at F:\folder.jpg
    4. [2019-06-25 06:57:19,513] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 21
    5. [2019-06-25 06:57:19,513] [Log    ] [6        ] [DEBUG] - Folder:  : took : 1,3725474 s to load
    6. [2019-06-25 06:57:19,513] [Log    ] [PoolThread25] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\folder.jpg
    7. [2019-06-25 06:57:19,513] [Log    ] [PoolThread25] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 22
    8. [2019-06-25 06:57:21,835] [Log    ] [20       ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music found.
    9. [2019-06-25 06:57:22,901] [Log    ] [20       ] [DEBUG] - UNCTools: AsyncDNSReverseLookup: dns reverse lookup timeout (1004,8459 ms)!
    10. [2019-06-25 06:57:22,901] [Log    ] [20       ] [DEBUG] - UNCTools: PingHost: Could not resolve/convert diskstation to an IPAddress object!
    11. [2019-06-25 06:57:22,901] [Log    ] [20       ] [DEBUG] - UNCTools: UNCFileFolderOnline: host 'diskstation' is not reachable!! , File/Folder '\\DISKSTATION\music'
    12. [2019-06-25 06:57:22,916] [Log    ] [20       ] [DEBUG] - Folder: \\DISKSTATION\music : took : 1,1032026 s to load
    13. [2019-06-25 06:57:26,141] [Log    ] [MPMain   ] [DEBUG] - Main: WM_SYSCOMMAND (SC_CLOSE)
    14. [2019-06-25 06:57:26,141] [Log    ] [MPMain   ] [DEBUG] - D3D: OnFormClosing()
    15. [2019-06-25 06:57:26,141] [Log    ] [MPMain   ] [DEBUG] - D3D: Dispose() ClientSize: 1104x621, MaxClientSize: 1904x1071
    16. [2019-06-25 06:57:26,156] [Log    ] [MPMain   ] [DEBUG] - D3D CleanupEnvironment()
    17.  
    Then, if we give a bit more time (I would say 1.5 second), it is working :
    Code (Text):
    1.  
    2. [2019-06-25 07:16:45,419] [Log    ] [MPMain   ] [DEBUG] - GetFolderSetting: root found.
    3. [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
    4. [2019-06-25 07:16:46,799] [Log    ] [PoolThread25] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\folder.jpg
    5. [2019-06-25 07:16:46,800] [Log    ] [PoolThread24] [DEBUG] - FolderThumbCacher: No folder thumb at F:\folder.jpg
    6. [2019-06-25 07:16:46,803] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 20
    7. [2019-06-25 07:16:46,801] [Log    ] [PoolThread25] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 19
    8. [2019-06-25 07:16:46,826] [Log    ] [16       ] [DEBUG] - Folder:  : took : 1,3809943 s to load
    9. [2019-06-25 07:16:48,402] [Log    ] [6        ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music found.
    10. [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
    11. [2019-06-25 07:16:49,447] [Log    ] [6        ] [DEBUG] - UNCFileFolderExists: Folder'\\DISKSTATION\music' exists!
    12. [2019-06-25 07:16:51,251] [Log    ] [PoolThread24] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\Adele\folder.jpg
    13. [2019-06-25 07:16:51,253] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 21
    14. [2019-06-25 07:16:51,257] [Log    ] [PoolThread25] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\Anahata Brihaspati Falguna Yaëlle\folder.jpg
    15. [2019-06-25 07:16:51,259] [Log    ] [PoolThread25] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 22
    16. [2019-06-25 07:16:51,258] [Log    ] [PoolThread24] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\Ananda\folder.jpg
    17. [2019-06-25 07:16:51,260] [Log    ] [MPMain   ] [DEBUG] - ThreadPool.CheckThreadIncrementRequired() : incrementing thread count 2 with 1
    18. [2019-06-25 07:16:51,262] [Log    ] [6        ] [DEBUG] - Folder: \\DISKSTATION\music : took : 2,9099983 s to load
    19. [2019-06-25 07:16:51,263] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 23
    20. [2019-06-25 07:16:51,263] [Log    ] [PoolThread25] [DEBUG] - FolderThumbCacher: No folder thumb at \\DISKSTATION\music\Aretha Franklin & Otis Redding\folder.jpg
    21. [2019-06-25 07:16:51,265] [Log    ] [MPMain   ] [DEBUG] - ThreadPool.StartThreads() : Thread PoolThread31 started
    22. [2019-06-25 07:16:51,270] [Log    ] [PoolThread25] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 24
    23. [2019-06-25 07:16:54,646] [Log    ] [5        ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music\Alicia Keys found.
    24. [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
    25. [2019-06-25 07:16:55,691] [Log    ] [5        ] [DEBUG] - UNCFileFolderExists: Folder'\\DISKSTATION\music\Alicia Keys' exists!
    26. [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
    27. [2019-06-25 07:16:55,715] [Log    ] [PoolThread24] [DEBUG] - ThreadPool.ProcessQueue() : total items processed: 25
    28. [2019-06-25 07:16:55,726] [Log    ] [5        ] [DEBUG] - Folder: \\DISKSTATION\music\Alicia Keys : took : 1,1319966 s to load
    29. [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
    30. [2019-06-25 07:16:56,842] [Log    ] [20       ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music\Alicia Keys found.
    31. [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
    32. [2019-06-25 07:16:57,889] [Log    ] [20       ] [DEBUG] - UNCFileFolderExists: Folder'\\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition)' exists!
    33. [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
    34. [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)
    35. [2019-06-25 07:16:59,249] [Log    ] [16       ] [DEBUG] - GetFolderSetting: \\DISKSTATION\music\Alicia Keys\The Diary Of Alicia Keys (Special Edition) found.
    36. [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
    37. [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!
    38. [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
    39. [2019-06-25 07:17:04,729] [Log    ] [MediaInfoWrapper] [DEBUG] - MediaInfoWrapper: isVideo:False, isDVD:False[enabled:False]
    40. [2019-06-25 07:17:04,731] [Log    ] [MediaInfoWrapper] [DEBUG] - MediaInfoWrapper: disabled for this content
    41. [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)
    42.  
    Changes are in \mediaportal\Core\Util\UNCTools.cs line 520 to 528, if you want to fix it please, replace

    Code (Text):
    1.  
    2.                     var t1 = Task.Factory.StartNew(_ => DnsReverseLookup(strHost_or_IP),
    3.                                                         TaskCreationOptions.AttachedToParent)
    4.                                          .TimeoutAfter(1000)
    5.                                          .ContinueWith(antecedent =>
    6.                                          {
    7.                                              if (!(antecedent.IsCanceled || antecedent.IsFaulted))
    8.                                                  address = antecedent.Result;
    9.                                          }
    10.                                     , cts.Token);
    11.  
    by

    Code (Text):
    1.  
    2.                     var t1 = Task.Factory.StartNew(_ => DnsReverseLookup(strHost_or_IP),
    3.                                                         TaskCreationOptions.AttachedToParent)
    4.                                          .TimeoutAfter(1500)
    5.                                          .ContinueWith(antecedent =>
    6.                                          {
    7.                                              if (!(antecedent.IsCanceled || antecedent.IsFaulted))
    8.                                                  address = antecedent.Result;
    9.                                          }
    10.                                     , cts.Token);
    11.  
     
    • Thank You! Thank You! x 1
  7. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,351
    Likes Received:
    2,437
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,089 / 13
    Home Country:
    France France
    Show System Specs
  8. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,588
    Likes Received:
    2,625
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,572 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Why not?

    --
    WBR, ajs :):whistle::coffee:
     
  9. framug

    framug Portal Pro

    Joined:
    January 31, 2005
    Messages:
    4,141
    Likes Received:
    188
    Occupation:
    software engineer
    Location:
    South of France
    Ratings:
    +220 / 2
    Home Country:
    France France
    Come on ajs,
    Give him pleasure (don't misunderstand me) :ROFLMAO:

    Code (Text):
    1.  
    2.                     int iTimer = 1500;
    3.                     var t1 = Task.Factory.StartNew(_ => DnsReverseLookup(strHost_or_IP),
    4.                                                         TaskCreationOptions.AttachedToParent)
    5.                                          .TimeoutAfter(iTimer)
    6.                                          .ContinueWith(antecedent =>
    7.                                          {
    8.                                              if (!(antecedent.IsCanceled || antecedent.IsFaulted))
    9.                                                  address = antecedent.Result;
    10.                                          }
    11.                                     , cts.Token);
    12.  
    13.  
     
    • Funny Funny x 1
  10. CyberSimian
    • Team MediaPortal

    CyberSimian Test Group

    Joined:
    June 10, 2013
    Messages:
    1,609
    Likes Received:
    533
    Gender:
    Male
    Location:
    Southampton
    Ratings:
    +951 / 3
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Code (Text):
    1. int iTimer = GetValueFromMediaPortal.xml("nas_timeout");

    -- from CyberSimian in the UK
     
    • Like Like x 1
  11. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,588
    Likes Received:
    2,625
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,572 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    How about MP Configurator?

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

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!