"Media not available" error (2 Viewers)

TomEK

Portal Member
February 13, 2009
5
0
armandp,

Upgrading to 0.7.1 did NOT solve my problem.

In my system the problem is not random - it is there all the time after restarting the computer after initial config/scan.

I feel it is important to note that I have the same problem in the My TV-Series plugin as well.

I'll give more updates during the weekend. Hopefully I will be able to pinpoint what triggers the problem more accurately.
 

autje

Portal Member
June 1, 2008
9
0
@autje: upgrade to 0.7.1 and see if the problem still occurs, we made some improvements in that area. The double entry problem shuld be solved.

Will probably do that tonight.

One more thing I just remembered: all titles on the network drives are unavailable (i.e., they turn red), but films on USB disks that are not attached don't. Obviously I can't play them, but how does the configuration interface make the distinction between different import paths?
 

armandp

Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    Ok I hope this make some sense to you but this is how we determine the state of a file.
    Each drive/disk has a unique serial, when a file is stored to the db this information is stored also.

    The rules below are based on the (current) File information from the filesystem vs. File information from the stored DB Record:

    Something is available/online when the path exists AND the serial is the same.
    Something is unavailable/offline when the path doesn't exist OR does exist but the serial doesn't match.
    Something is removed when the path doesn't exist but the root of the drive does exists and the serial is the same.

    For all UNC paths (network shares that are not mapped to a driveletter) we only do the path/root thing because there's no serial available.

    We do "cache" our information and it should update when the drive state changes but perhaps something in this area is still not working as planned. So users who are still having issues with 0.7.1, like TomEK, should try to provide us with as much information as possible so we can determine the cause.
     

    autje

    Portal Member
    June 1, 2008
    9
    0
    I'm a developer myself, so it does make sense :D

    I think one of the key behviors here is that sometimes (seemingly at random) the titles 'come back', i.e. go from red to black. I still think it's an OS issue, but you've given me enough food for thought and experiment. If only the weekend lasted a couple more days :)
     

    TomEK

    Portal Member
    February 13, 2009
    5
    0
    armandp,

    I have now tested a bit more. As I said before, upon startup/after reboot both "Moving Pictures" and "My TV Series" plugins refuses to read from my mapped share drive. I entere the config for "My Tv Series" and removed a link to a folder, which triggered a rescan of all added paths.

    Exiting the config, and starting up mediaportal both "Moving Pictures" and "My TV Series" are magically able to read from my mapped share drive.

    Exiting, and restarting Media Portal gives no change - both plugins are still working properly.

    Restarting the computer sets me back to where none of the plugins are reading the mapped share drive again.

    Error message in My TV Series: "Please insert Disk, 'sharename' "
    Error message in Moving Pictures: "Media not available, The media for the movie you have selected is not currently available. Please insert or connect media labeled 'sharename' ".

    Enough of the debugging - over to what works!


    Instead of using the mapped share, I tried using the full network path - ie: "\\MediaServerX\Movies\HD".

    This seems to work flawlessly.

    I mapped one network path, and one mapped share path for testing, and the network path works everytime, and the mapped share still refuses to be read.

    I will test further and come back if I encounter problems.
     

    autje

    Portal Member
    June 1, 2008
    9
    0
    Sounds promising, TomEK. I'll keep that in mind.

    I myself have installed 0.7.1, deleted everything, and re-imported everything, and haven't had a problem since. I'm not sure if the install helped, because I actually made a registry change yesterday that may have done the trick as well. I added two keys to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters: KeepAliveTime, a DWORD value of 30000 (milliseconds), and KeepAliveInterval, also a DWORD value of 1000 (again, milliseconds). However, if I get into trouble again, I'll try the full network path.

    As an aside, a small feature request I came up with while deleting everything from the database: multi-select and -delete in the Movie Manager tab :D
     

    meesham

    MP Donator
  • Premium Supporter
  • February 15, 2009
    35
    2
    Christchurch
    Home Country
    New Zealand New Zealand
    @autje:
    @meesham:
    is that the log were it prompted you that the Media was not Available?

    Yes the videos that I tried to play in that log file are the ones that were coming up red and wouldn't play. I'm going to try using a UNC path instead and see if that sorts the problem.

    The server that the movie live on shuts down any hard disks not accessed after a couple of minutes, so when you go to the share sometimes it takes about 10 seconds for the drive to become available - maybe it's timing out (although it's weird that it doesn't have a problem with all the movies).

    I also use the TVSeries plugin and haven't noticed the problem on there.
     

    autje

    Portal Member
    June 1, 2008
    9
    0
    meesham, my NAS also shuts down the disks after 10 minutes. When I start the Moving Pictures configuration, when the startup screen saying "Searching for deleted files", I can hear my disks spin up, and it stays in that message for a couple of seconds, and then moves on. Mind you, I noticed this after I made the changes I mentioned two posts above.
     

    meesham

    MP Donator
  • Premium Supporter
  • February 15, 2009
    35
    2
    Christchurch
    Home Country
    New Zealand New Zealand
    After switching to UNC paths I haven't experienced the "Media Not Found" error since.

    armandp: If you'd like me to switch back to do some testing for you just let me know.
     

    Swede

    Portal Pro
    September 6, 2006
    493
    47
    West Coast Archipelago
    Home Country
    Sweden Sweden
    27-Feb-2009 09:28:00 Info [ DatabaseManager]: Successfully Opened Database: \\tv\c\ProgramData\Team MediaPortal\MediaPortal\Database\movingpictures.db3
    27-Feb-2009 09:28:00 Info [ SettingsManager]: SettingsManager Created
    27-Feb-2009 09:28:01 Info [ MovingPicturesCore]: Moving Pictures (0.7.1:513)
    27-Feb-2009 09:28:04 Info [ MovingPicturesCore]: Plugin Launched
    27-Feb-2009 09:28:04 Info [DatabaseMaintenanceM]: Checking for invalid file entries in the database.
    27-Feb-2009 09:36:15 Info [DatabaseMaintenanceM]: Removed 0 file entries.

    Hmmm, 8 minutes to start? Maybe this should be done in the background?
     

    Users who are viewing this thread

    Top Bottom