Jump to content

Emby doesn’t pick up all files


leon123456789
Go to solution Solved by leon123456789,

Recommended Posts

leon123456789

Hi guys.

 

I have my Emby running inside a docker container. It works fine.

I have created some libraries with videos in it. It works fine.

I have added videos (long time ago) and emby did pick up them nicely.

 

But recently when I add files then wont get found by emby. I named the videos matching to the content, something like “seriesname_season1_episode1”, so that emby can find the metadata for it. But still, emby does not show me the files, even when I scan the library or restart the docker container.

 

I hope someone can help me :)

Thanks!

Link to comment
Share on other sites

mastrmind11

Hi guys.

 

I have my Emby running inside a docker container. It works fine.

I have created some libraries with videos in it. It works fine.

I have added videos (long time ago) and emby did pick up them nicely.

 

But recently when I add files then wont get found by emby. I named the videos matching to the content, something like “seriesname_season1_episode1”, so that emby can find the metadata for it. But still, emby does not show me the files, even when I scan the library or restart the docker container.

 

I hope someone can help me :)

Thanks!

are the file permissions correct?  compare them on a non-working file to a working one.

Link to comment
Share on other sites

leon123456789

Hi guys,

 

I´m using emby with docker and nextcloud with docker. I told emby to use some of the nextcloud directories and mapped them in my docker-compose file like this:

/mainstorage/nextcloud/data/files/admin/Movies/:/mnt/movies
/mainstorage/nextcloud/data/files/admin/Music/:/mnt/music

Then i copied files in the nextcloud directory, changed the permissions from root to www-data (the nextcloud user) and scanned the libaries in emby. No changes. I restarted the emby container (and updated it) -> no changes. Waited some days -> no changes. Even a server restart didnt fix the problem

Link to comment
Share on other sites

mastrmind11

Hi guys,

 

I´m using emby with docker and nextcloud with docker. I told emby to use some of the nextcloud directories and mapped them in my docker-compose file like this:

/mainstorage/nextcloud/data/files/admin/Movies/:/mnt/movies
/mainstorage/nextcloud/data/files/admin/Music/:/mnt/music

Then i copied files in the nextcloud directory, changed the permissions from root to www-data (the nextcloud user) and scanned the libaries in emby. No changes. I restarted the emby container (and updated it) -> no changes. Waited some days -> no changes. Even a server restart didnt fix the problem

Emby needs access to them, so make sure the emby user belongs to the group that owns the files.

Link to comment
Share on other sites

leon123456789

Emby needs access to them, so make sure the emby user belongs to the group that owns the files.

Because im using docker and mapp the directories in the container, i have no emby user outside my container.

The problem is, that some files that are inside the directories get deteced and others not.

 

EDIT: the permissions on all files inside the directories are the same

EDIT2: Permission example:

$ ll /mainstorage/nextcloud/data/admin/files/Movies/
...
drwxr-xr-x   5 www-data www-data           7 Apr 10  2018 WorkingMovieDirectory
drwxr-xr-x   3 www-data www-data           9 Feb  5 21:56 NotWorkingMovieDirectory
...
Edited by leon123456789
Link to comment
Share on other sites

  • 2 weeks later...
leon123456789

Is there a way to enter the emby docker container? Then I can look in the terminal if emby docker contains the files

Link to comment
Share on other sites

leon123456789
$ docker exec -i -t emby /bin/bash
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown
But

$ docker exec -I -t emby ls /mnt/movie
works.

I can confirm that the docker container did pick up all the files. But Emby itself does not... I even thought that maybe emby has some problems with files or directories that have a space in the name, but I have files with a space that work

 

EDIT: formatting

Edited by leon123456789
Link to comment
Share on other sites

leon123456789

I´ve just noticed that in an other library were the hole content missing. I removed the entire library and added it again => all files were back again in this library.

 

Then I tried it with the movie library (the library where some files are missing). I removed the library and added it again. But now are all files missing inside that movie library. I’m wondering why, because I checked that the files are there (inside the container) and when I select the path for the library, the paths from the subfolders exists.

 

Even a server restart (and container restart) didn’t fix it.

Link to comment
Share on other sites

I´ve just noticed that in an other library were the hole content missing. I removed the entire library and added it again => all files were back again in this library.

 

Then I tried it with the movie library (the library where some files are missing). I removed the library and added it again. But now are all files missing inside that movie library. I’m wondering why, because I checked that the files are there (inside the container) and when I select the path for the library, the paths from the subfolders exists.

 

Even a server restart (and container restart) didn’t fix it.

 

Hi there, how have you setup your libraries in Emby library setup?

Link to comment
Share on other sites

  • Solution
leon123456789

I´ve found the solution: In my docker-compose file I haven’t set the UID and GID parameter. I set them to 0 to start emby as root. Now all things are back again... But I don’t know why emby only picked up a few items before starting it as root.

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