Jump to content

Library scan fails


wp.rauchholz

Recommended Posts

wp.rauchholz

I moved two mp4 files into my movies library. After that I scan the library.

But these movies do not show up in emby. How can I debug this?

 

-rw-rw-rw- 1 emby emby 2977939112 17. Mai 13:15 St*.mp4

-rw-rw-rw- 1 emby emby 3531901843 10. Mai 16:27 Fo*.mp4

 

 

 

Thanks, Wolfgang

 

Link to comment
Share on other sites

mastrmind11

check the log for errors.  are those the actual filenames?

Link to comment
Share on other sites

wp.rauchholz

This is how the files are called along with their size, permissions and owners

 

-rw-rw-rw-  1 emby emby 2977939112 17. Mai 13:15 Star Wars Episode VIII - The Last Jedi (2017).mp4

-rw-rw-rw- 1 emby emby 3531901843 10. Mai 16:27 Four Weddings and a Funeral (1994).mp4

 

And these are entriues I found for one of the files.

 

2020-05-17 13:18:23.068 Debug LibraryMonitor: New file refresher created for /home/media/movies/Star Wars Episode VIII - The Last Jedi (2017).mp4
2020-05-17 13:18:49.079 Debug LibraryMonitor: Resetting file refresher from /home/media/movies/Star Wars Episode VIII - The Last Jedi (2017).mp4 to /home/media/movies
2020-05-17 13:19:22.950 Info HttpServer: HTTP GET http://10.5.2.1:8096/web/modules/themes/logowhite.png. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
2

 

2020-05-17 14:15:43.246 Debug LibraryMonitor: New file refresher created for /home/media/movies/Star Wars Episode VIII - The Last Jedi (2017).mp4
2020-05-17 14:16:43.246 Debug LibraryMonitor: Timer stopped.
2020-05-17 14:16:43.249 Info LibraryMonitor: movies (/home/media/movies) will be refreshed.

 

 

The movie is noewhere to be seen in the library.

 

Regards,

 

Wolfgang

Link to comment
Share on other sites

wp.rauchholz

In movies library in emby  like all other movies I uploaded to my server.

 

Wolfgang

Link to comment
Share on other sites

Happy2Play

Does it appear if you used the search function?  But may need to see the full server log to see if it is mis-identified.

Link to comment
Share on other sites

wp.rauchholz

I tried this too.

Non of the two movies appears when searching.

I search bu name and actor.

 

Wolfgang

Link to comment
Share on other sites

Have you looked through your movies to see if it may have been mis-detected as something else?

Link to comment
Share on other sites

wp.rauchholz

I just reviewed my movies library in Emby searching the two movies.

they are not to be found.

I checked movie by movie, searched by name, actor name checked in genres.

 

 

regards,

 

Wolfgang

Link to comment
Share on other sites

Happy2Play

Can you provide the server log for when they were imported.

Link to comment
Share on other sites

wp.rauchholz

That is what I did:

1) I moved the the movies into another directory

2) I re-scanned the libraries

3) I moved the movies back into the directory

4) I re-scanned the library.

 

These are the files

-rw-rw-rw- 1 emby emby 3,3G 10. Mai 16:27 Four Weddings and a Funeral (1994).mp4
-rw-rw-rw- 1 emby emby 2,8G 17. Mai 13:15 Star Wars Episode VIII - The Last Jedi (2017).mp4
 
 
Attached the log.
 
Thanks, Wolfgang

emby.txt

Link to comment
Share on other sites

Have you looked through your movies to see if it may have been mis-detected as something else?

 

If this happens you wouldn't be able to search by name, you'd just have to eyeball your movie library. Have you tried that?

Link to comment
Share on other sites

wp.rauchholz

I checked metadata of each individual file manually.

Click on movie

Edit Metadata.

 

The movies are not to be found

 

Wolfgang

Link to comment
Share on other sites

Can you show the complete folder structure so that we can see the file naming and organization? Thanks.

Link to comment
Share on other sites

wp.rauchholz

Hi Luke,

 

I set chmod 666 and chown emby:emby.

 

 

Unfortunately same result.

 

Wolfgang

Link to comment
Share on other sites

wp.rauchholz

The problem was persisting.

Then I just tried something; I created a new directory and moved the two files into that directory and added the library to emby. 

And now emby sees the movies.

 

The inconvenience is that I have now two Movies Libraries...

 

I just would like to know why. Any thoughts?

 

Wolfgang

post-261768-0-23622500-1590687279_thumb.png

Edited by wp.rauchholz
Link to comment
Share on other sites

wp.rauchholz

Exactly the same permissions for directories and file in both cases (emby:emby & 666 for files).

 

The only difference I can notice is a dot behind the permission:

drwxr-xr-x.   3 emby   emby   86016 29. Mai 02:59 movies
drwxr-xr-x    2 emby   emby    4096 29. Mai 03:01 movies1
 
Wolfgang
Link to comment
Share on other sites

mastrmind11

 

Exactly the same permissions for directories and file in both cases (emby:emby & 666 for files).

 

The only difference I can notice is a dot behind the permission:

drwxr-xr-x.   3 emby   emby   86016 29. Mai 02:59 movies
drwxr-xr-x    2 emby   emby    4096 29. Mai 03:01 movies1
 
Wolfgang

 

And I'm assuming movies1 is accessible?  if so, the dot is likely your issue, there is an ACL assigned to the folder that might be overriding your actual permissions.  https://stackoverflow.com/questions/30594871/what-does-the-dot-at-the-end-of-the-permissions-in-the-output-of-ls-lah-mean

Link to comment
Share on other sites

Pyro2577

I am having the same issue just noticed it tonight when i added some movies tonight:

 

I have NFS shares for 

Movies

Tv Shows

Music 

Music Videos

 

All shares were working except for the movies folder. I moved a movie from the movie folder to all the others and when i hit scan library it would show up in those other folders and can watch them through Emby.

 

It's only the movie Library that doesn't scan properly, I have all the same permissions as all the other folders in the NFS showing and when i add library all the folders are accessible however it just does not scan the folder. 

Before i removed and tried to add the Movie library again. movies would play no problems, i removed the movie library now, when i add it again it is blank with no movies.

 

Not sure when this started to happen but nothing was changed except for Linux updates and also Emby updates.

 

 

 

2020-05-30 19:57:43.760 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 4.5.0.12
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Unix 4.19.0.9
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll
    System.Environment.Version: 3.1.2
    Processor count: 6
    Program data path: /var/lib/emby
    Application directory: /opt/emby-server/system
    System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
     at Emby.Server.Implementations.IO.SharpCifsFileSystem.IsEnabledForPath(String path)
     at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, Boolean isAsync)
     at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String source, ReadOnlyMemory`1 mimeType, ImageType type, Nullable`1 imageIndex, Nullable`1 saveLocallyWithMedia, CancellationToken cancellationToken)
     at Emby.Server.Implementations.Library.LibraryManager.GetLazyImage(String key, BaseItem item, ImageType type, Int32 imageIndex, CancellationToken cancellationToken)
     at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, CancellationToken cancellationToken)
     at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
     at MediaBrowser.Api.Images.ImageService.GetImage(ImageRequest request, Int64 itemId, BaseItem item, Boolean isHeadRequest)
     at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
     at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
     at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
    Source: Emby.Server.Implementations
    TargetSite: Boolean IsEnabledForPath(System.String)

 

Auto Organize: Works by moving from my Qbit Folder into the Movies folder.

NFS is @ /mnt/nfs/ when opening /mnt/nfs all files and folders show up.

Inside Emby Movies are located at /mnt/nfs/Movies With folders in each A-Z.

Music is /mnt/nfs/Music

Tv Shows it /mnt/nf/Tv

 

Permissions on every folder and file in the /mnt/nfs are ****:users - 0770 (-rwxrwx---) as above these permissions worked find always and also Emby/Radarr/Qbit and plugins all can read and write to the folders. it is only the movies folder that Emby does not scan.

 

Hope it is an easy fix.

 

Ok i Just created a Samba Share just for Movies and now they are scanning. The NFS shares are on a Qnap NAS and nothing has been changed on the NAS with file permissions etc. I have checked and all permissions are the same for all Folders inside Multimedia (which music,Tv, Movies etc are all stored) 

Edited by Pyro2577
Link to comment
Share on other sites

Pyro2577

FIXED--- 2 Fixes

 

Samba was my workaround until i found out what was stopping NFS on mine.

 

I have a QNAP and the thumbnail generation put folder .@__thumb inside every folder that had movies or pictures in it. 

 

Turned off Thumbnail generation in File Station and Media Console, then i SSH into Qnap and ran [~] # find / -name ".@__thumb" -exec rm -r -f '{}' \;

 

This removed all the folders and NFS is back working again.

 

Not sure if you are having the same issue but this was my fix. I did read after every firmware update for Qnap you have to turn it off but i will see when i have to update.

Edited by Pyro2577
Link to comment
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...