Jump to content

Library only keeps first media location of each folder


Recommended Posts

bartolomesoriano
Posted (edited)

Good evening,

 

I just installed latest Emby Server for Windows, under Windows 10 Enterprise 64-bit.  When I add media folders, if the folder contains multiple media locations, the library scans fine and I can see all movies in the folder, until I shutdown the server.  

 

When I restart the server, each media folder only shows the movies for the first media location in each folder.  I did not see any errors in the log, and the messages in the log from the library monitor process shows it is monitoring all of the media locations.

 

Any help would be greatly appreciated, as I have like 12 media locations for my movies and certainly do not wish to create a separate folder for each one.

 

Regards,

 

Bart

 

EDIT:  All of my media is  on a Synology NAS, and all of the media folders in the NAS are accessed via SMB, and mounted as networked drives in the Windows 10 machine.

Edited by bartolomesoriano
Posted

Try using unc paths instead of mapped drives.

bartolomesoriano
Posted

Try using unc paths instead of mapped drives.

Thanks ebr!

 

I did that, after doing a completely new installation of Emby server, after deleting everything I had before (cache, metadata, etc.).  My issue now is that after the library scan finishes, all of my movies (3400+) are there, but only until I restart the server.

 

After I restart, the folder that has the most media locations (7), and thus the most movies (3071), only shows the movies for the first two media locations, thus only 572 out of 3071.  

 

My other movie folders have 164 movies in one location, and 177 movies in two locations.  These are OK, all movies show.

 

If i scan the library again, all movies are picked up.  However, once the server restarts, the same situation occurs.

 

Any help will be greatly appreciated!

 

Regards,

 

Bart

Posted

If i scan the library again, all movies are picked up.  However, once the server restarts, the same situation occurs.

 

Odd, it sounds like a timing issue to me. Is there any reason some of the paths would be ready for read while others weren't? Maybe a weird locking issue? I think Emby does a library scan when it starts, so maybe that is different than the scheduled/manual task - but why?

 

You should post a log from a restart. That may indicate a read problem that occurs when the server restarts but doesn't occur when the library scan is launched.

Deathsquirrel
Posted

Check the server logs on the startup scan but the most common cause is that the nas isn't spinning up fast enough and the scan is failing to find the movies during the startup scan.

bartolomesoriano
Posted

Thank you @@Raff and @@Deathsquirrel. The NAS is on 24x7, and the movies that do show up after a restart are on the same NAS as the ones that do not.  Also, shouldnt all the movies have been added to the database during a complete scan, and thus show up after a restart? I am a bit confused on that part.

 

I will check the log after a restart, because I have not seen that there is a scan at startup.  

 

Regards,

 

Bart

Happy2Play
Posted

Scan is set to every 12 hours now, since Clean Database task was added.

Posted

when you run the scan your library gets loaded completely. prior to the scan, everything is loaded on demand. if i had to guess, i think the on demand loading is just happening slowly and that is causing you to think it is not loading at all. then you run the scan, you wait until it's done, and then everything works. so we need to make the on demand loading faster.

bartolomesoriano
Posted

Scan is set to every 12 hours now, since Clean Database task was added.

Thanks! Now, after a complete scan, shouldnt the movies remain in the database independent of a server restart?

Posted

Our system is self-maintaining.  We don't populate a database and then require you to tell us when you've added or deleted something.

 

So, the system will validate itself against the actual state of your environment and adjust automatically.

bartolomesoriano
Posted

Our system is self-maintaining.  We don't populate a database and then require you to tell us when you've added or deleted something.

 

So, the system will validate itself against the actual state of your environment and adjust automatically.

Thanks @@ebr and @@Luke.  I do not understand what is happening, and why some folders work and some do not.  I am attaching the log after a restart, but I do not see anything in it that gives me a clue as to what is happening.  

 

Is there any other information or files I could send to see if any of you could figure it out? Should i attach a log when a complete scan happens? server-63577846729.txtThank you so much for your help.

 

And it is important to note, this was not happening before this latest version, but I have not kept any log files or configuration information from a previous version that I could provide as reference.

 

Regards,

 

Bart

bartolomesoriano
Posted

Here is a log including the complete scan of the library.  Interestingly enough, as soon as the scan started, the folder showed all of the movies.  I have not shut down the server yet.  Does it make a difference that the server is running on a Windows 10 Enterprise 64-bit machine?

 

Again, thank you all for your help.

 

Regards,

 

Bart

 

server-63577846729.txt

Posted

Sounds like the same problem I am/was having: http://emby.media/community/index.php?/topic/25144-library-scan-not-sticking/

 

I explained things the best I could and included logs as instructed but the community either couldnt figure it out or lost interest in trying? 

 

Ive had to give up on Emby all together as I was spending more time trying to figure out the issues than actually watching media. Back to straight up Kodi for local and Plex for remote. Rock solid now and unfortunately may be the way to go if you can't get it figured out yourself?

bartolomesoriano
Posted

Thanks @@hstamas.  In the meantime until someone can help me figure it out, I also went back to just Kodi with a local database.  However, I really like Emby and enjoy the benefits of Emby server + Kodi + Emby for Kodi, and I hope someone in the community can figure out how to solve this issue.

 

Regards,

 

Bart

Posted

you can also just have the library scan run at startup until a solution is figured out.

  • Like 1
bartolomesoriano
Posted

you can also just have the library scan run at startup until a solution is figured out.

Thanks @@Luke, that is certainly viable, since I do not add so much to my library every day, and the server should only restart if it updated to a new version or there is a problem with the machine.  I will add the task trigger.

 

Regards,

 

Bart

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...