igorbr 4 Posted March 5 Share Posted March 5 Hi, I had a server and everything was working perfect, but I did an infrastructure update and now I'm having some problems. To migrate emby I installed emby on the new server and used the backup and restore function, everything was looking great but I found that new movies are not appearing. If I do library -> scan library files the movies will appear, but just if I force this scan. I checked the logs and watching directory looks good. I also tried another folder (I use two drives with media) and the same problem..... LibraryMonitor: Watching directory with new FileSystemWatcher for /mnt/sg16/midia/filmes for item 62098 Please check the logs attached, the last part of the logs is loading the file info because I forced library scan Thanks embyserver.txt Link to comment Share on other sites More sharing options...
igorbr 4 Posted March 5 Author Share Posted March 5 update information: I just uninstalled emby (both apt uninstall and rm -rf on the folders) Fresh installed it, no backup restore, created one test library pointing to a new and empty folder. Added a movie to that folder and nothing happened. After click on library > update the movie appeared. I don't know what is the problem but with this tests I have a good idea about what is not the problem: * permissions as the movie works after lib update * backup restore as I tried a fresh install * files or folders corrupted as I tried a clean new folder with a single movie The only thing I can imagine now is that before the hdd was directly attached to the machine and now I am using OMV, so to try I did two tests: * option 1: mount using fstab and pointing library to the mount point * option 2: point the library directly to the shared folder Both options have exactly the same behavior. Movies just appears after a manual click on the scan library option I added one more movie and everything remains the same (not working), so I'm sharing the logs of the new installation here Thanks embyserver (1).txt Link to comment Share on other sites More sharing options...
igorbr 4 Posted March 5 Author Share Posted March 5 update information: One more test, I created a local folder on the same machine on /tmp/emby-test Create a new library and pointed to that folder Added a movie there and set permissions as 777 to be sure the movie just appears after manual click on library scan I excluded the movie using emby ui to be 100% sure permissions were ok and it excluded I forgot to mention before: * real time mapping is active in the library configuration * Server is Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-97-generic x86_64) Link to comment Share on other sites More sharing options...
Luke 38342 Posted March 6 Share Posted March 6 HI, so your media is on a network share? Most likely the realtime monitor will not work. Did you setup your libraries using smb/unc network share paths? Link to comment Share on other sites More sharing options...
igorbr 4 Posted March 6 Author Share Posted March 6 Hi Luke, I have tested three libraries and none of them can get updated automatically: 1 - Network share mounted on the same ubuntu as the emby is, so emby is pointing to /mnt/.... 2 - Network share directly added to the library as something like \\mynas.lan\.... 3 - Local folder on the same ubuntu as emby is, so no network share. None of this tests worked as realtime monitoring but all of them shows my movies after I manually scan the library. Link to comment Share on other sites More sharing options...
Luke 38342 Posted March 6 Share Posted March 6 Emby Server uses dotnet, which internally uses INotify for it's realtime monitor function. So your media folders need to be something that INofify supports. #3 should definitely work. Can we please look at an example of that? Thanks. Link to comment Share on other sites More sharing options...
igorbr 4 Posted March 6 Author Share Posted March 6 About option 3 I keep it as simple as possible: Created a folder /tmp/emby-test/ chmod 777 /tmp/emby-test Created a new library pointing to that empty folder add a movie file to /tmp/emby-test chmod 777 the movie file After this I was expecting thee movie to appear in emby, but nothing happened. settings > library > scan button pressed and the movie appears, I can play and I also can remove it using emby app Link to comment Share on other sites More sharing options...
Luke 38342 Posted March 6 Share Posted March 6 Quote After this I was expecting thee movie to appear in emby, but nothing happened. OK let's go into specifics: How to Report a Problem Thanks. Link to comment Share on other sites More sharing options...
igorbr 4 Posted March 6 Author Share Posted March 6 Ok, let's go: * logs sent * date time is one minute before the first post was created here * Linux emby user was default "emby" but I also tested as "root" but no success * problem description already done on previous messages Thanks Link to comment Share on other sites More sharing options...
Luke 38342 Posted March 6 Share Posted March 6 Hi, logs sent to where? Link to comment Share on other sites More sharing options...
igorbr 4 Posted March 7 Author Share Posted March 7 First and second messages of this post, both have logs attached Link to comment Share on other sites More sharing options...
Luke 38342 Posted March 8 Share Posted March 8 29 minutes ago, igorbr said: First and second messages of this post, both have logs attached OK, but which is the one containing the #3 example? And what example (media file) are we looking at? Link to comment Share on other sites More sharing options...
Q-Droid 784 Posted March 8 Share Posted March 8 On 3/5/2024 at 9:06 AM, igorbr said: I did an infrastructure update and now I'm having some problems. What does this mean? What did you change from before to after? Link to comment Share on other sites More sharing options...
Solution Q-Droid 784 Posted March 8 Solution Share Posted March 8 The RTM facility doesn't work on network filesystems. /tmp is tmpfs (usually) and to be honest I couldn't say if inotify would work there either. Try a different path on a block filesystem. 1 2 Link to comment Share on other sites More sharing options...
igorbr 4 Posted March 8 Author Share Posted March 8 On 3/7/2024 at 4:12 AM, Luke said: Hi, logs sent to where? Second post contains it You can see the emby-server side of this steps: About option 3 I keep it as simple as possible: Created a folder /tmp/emby-test/ chmod 777 /tmp/emby-test Created a new library pointing to that empty folder add a movie file to /tmp/emby-test chmod 777 the movie file After this I was expecting thee movie to appear in emby, but nothing happened. settings > library > scan button pressed and the movie appears, I can play and I also can remove it using emby app 1 Link to comment Share on other sites More sharing options...
igorbr 4 Posted March 8 Author Share Posted March 8 1 hour ago, Q-Droid said: The RTM facility doesn't work on network filesystems. /tmp is tmpfs (usually) and to be honest I couldn't say if inotify would work there either. Try a different path on a block filesystem. Oh man, this makes a lot of sense, I will try it Thanks 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now