Jump to content
kuebs

ANSWERED Scan Media Library fails

Recommended Posts

kuebs

I had to rebuild my media server.   So I started this Emby build on a new login through Windows 8.

 

I have it installed and have mapped out some media libraries.   But it won't scan.  And when I mean won't scan, I mean it fails 0 seconds.  It never even tries.  I was used to this working slow before or only getting 23% usually, but eventually getting done, but now it doesn't see any folders because it actually never scanned.

 

Any thoughts?

10-20-15-1429 log.rtf

Edited by kuebs

Share this post


Link to post
Share on other sites
kuebs

I feel suitably admonished now.   I have attached log to the post above, as I can't seem to get the full editor with attachments unless I am re-editing a post.

Share this post


Link to post
Share on other sites
ebr

as I can't seem to get the full editor with attachments unless I am re-editing a post.

 

"More Reply Options"...

Share this post


Link to post
Share on other sites
ebr

Please attach as the raw text file not an rtf.

 

Or you can use one of the other methods outlined in the post I linked to.

Share this post


Link to post
Share on other sites
Happy2Play

Looks like a corrupt database and access issues.

 

database disk image is malformed 

Access to the path 'D:\Movies' is denied.

Share this post


Link to post
Share on other sites
kuebs

How can I fix the database?   Or cause it to remake itself?

 

Log attached as a txt file.

10-20-15-1429 log.txt

Edited by kuebs

Share this post


Link to post
Share on other sites
ebr

Stop the server and delete it.  But you are going to need to figure out the access problems or none of this is going to work properly.

Share this post


Link to post
Share on other sites
kuebs

Pardon my ignorance.   How do I delete the database?   I want to make sure that I do this correctly.

Share this post


Link to post
Share on other sites
ebr

delete the files that start with "refreshinfo.db" under the data directory under your emby server directory.

Share this post


Link to post
Share on other sites
kuebs

i did delete all files that started with refreshinfo.db and the same result happened.

Share this post


Link to post
Share on other sites
ebr

Stop the server and delete it.  But you are going to need to figure out the access problems or none of this is going to work properly.

 

Did you fix whatever the access problems were?

 

I believe you are using a domain controller and that may be complicating things greatly as Windows Domain security can be very complex.

Share this post


Link to post
Share on other sites
Happy2Play

You previous log also says " Invalid user or password entered".

Share this post


Link to post
Share on other sites
kuebs

FYI, right now I am not using a Windows Domain Controller.

Share this post


Link to post
Share on other sites
kuebs

access problems have been fixed.   I finally figured out a script to invoke to reset file ownership and directory rights.

 

Its, icacls  * /t /q /c /reset

 

It reset all rights to default and then I could assign folders and was able to add movies to the library.

 

I still cannot get the library to scan. 

 

My library scan never even tries.  It always fails at 0%.  I really would love to fix this.

Share this post


Link to post
Share on other sites
Happy2Play

You will need to post a new log.

Share this post


Link to post
Share on other sites
kuebs

Ok.  Attached is a new log from this morning.

 

To make this more interesting.  There is one folder (Lily) which actually is avaialble and has been scanned and most of the items are visible.   Emby now shows the folders, like Movies, Videos, Music Videos, but they all show 0/0 items.

 

I can't see a discernable difference between any of the other folders and this one.  And now everyone and the user has all rights to the folders.  

 

 

emby log 10-23-15 0900.txt

Share this post


Link to post
Share on other sites
ebr

Looks like your main library database is corrupt now.

 

Now that you've solved the access problems, I would start over clean.

Share this post


Link to post
Share on other sites
kuebs

I just deleted all the files that begin with refreshinfo, and restarted the server.   I am not having any better luck.

 

is there any other steps I need to do to reinitiate the database? 

 

Log is attached.

 

I also attached the log from right before I stopped the server and removed the refreshinfo files.

 

emby log 10-23-15-11-15.txt

emby log 10-23-15-11-14.txt

Share this post


Link to post
Share on other sites
Luke

unfortunately you have some databases that have been corrpuped. the fact that it's more than one suggests a possible disk drive issue. 

 

but in any event, to fix, shutdown the server, navigate to the server's program data folder, then go under /data and delete the library.db and activitylog.db file

 

then start the server and run a library scan.

Share this post


Link to post
Share on other sites
kuebs

OK.  That worked.  Hurray.   Now the database is being rebuilt.   That seems to take a long, long time, but the content is accessable and viewable.   Thank you.

  • Like 1

Share this post


Link to post
Share on other sites
Luke

Well done!

Share this post


Link to post
Share on other sites

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...