luckyluca 0 Posted January 1 Posted January 1 (edited) First of all, Happy New Year! I recently purchased Emby Premium and run the server on Debian. All is well, except that today, when I opened the libraries, none of them showed any items. Library paths are accessible on Linux. Please note that if I add one folder location to a library again, so that the path is shown twice, items are scanned successfully. However, this way, I lost all existing 'identity metadata tweaks' I had previously. I fixed one of the smaller libraries (TV series), but I would hate to need to rescan and manually fix the identify metadata for my films library, which I edited weeks ago. Things worth knowing: Libraries are stored on an external HDD. I unplugged it and used the minipc without the external HDD for a few days. I plugged the HDD back in yesterday. This morning, I ran the command setfacl -m user:emby:rx /home/idkpro to allow Emby to see my home directory and specifically the download folder, which I added as a third path to the film and TV series libraries. Long story short: paths are pointing to the right location, and paths are accessible from the Emby interface. If I add the already existing path, libraries get populated again. However, as it stands, libraries are empty. Can you help me restore the libraries without needing to repopulate them and lose the identity metadata? Why has this issue happened in the first place? Thanks! logs.zip Edited January 1 by luckyluca typos
Q-Droid 989 Posted January 1 Posted January 1 Emby is not designed to run using temporary storage. Once you add libraries they are expected to be there whenever the server is running. In certain conditions if the Emby server loses access or can't find the path to the media it will treat those files and paths as if they were deleted and removes them from the database. The devs have implemented a bandaid workaround by looking at the mount point/path depth and ignoring (taking no action) if directories are missing. I don't know the details of how deep you need to mount them because I don't care for such laziness... Unless you have metadata stored with the media or backups from before they got deleted you might have to start over. 1
Lessaj 467 Posted January 1 Posted January 1 To my knowledge it needs to be at least one level up. For example, if you have /mnt/movies as the library folder, and normally you mount something to that folder, if that mount is not there the folder still exists, it's just empty, so Emby will clear out the database of what it knows was in that folder - because it exists, it can read it, it's just empty. If you had a path like /mnt/external/movies and you mount to /mnt/external, now there is no movies folder at all at that path, so instead it protects it.
luckyluca 0 Posted January 1 Author Posted January 1 According to your post, which I'm trying to understand, I think it should work as is, and the library should not be empty. This is the HDD mount using fstab, it is an external NTFS HDD mounted as root with full access from any user: /mnt/wd_black And these are the library mounts: /mnt/wd_black/plex_media/Films/LiveAction/ /mnt/wd_black/Downloads/plex_media/Films/ This library and all other libraries show up empty. However, removing and adding the very same path populates the libraries. If I were to scan the library instead, nothing happens. It looks wrong to me. Am I wrong?
sa2000 674 Posted January 3 Posted January 3 I have been looking at the logs. The first log starting at 10:16 am 01 January did have the /mnt/wd_black - but in that session 10:16 to 11:39 there was no network inteface detected.Only loopback detected 2026-01-01 10:16:00.674 Info NetworkManager: Detected local ip addresses: [{"IPAddress":"127.0.0.1","HasGateWayAddress":false,"PrefixLength":8,"IPv4Mask":"255.0.0.0"},{"IPAddress":"::1","HasGateWayAddress":false,"PrefixLength":128}] and I think that this may have had a bearing on the problem and droppng all the /mnt/wd_black folder paths Also noticed some sqlite errors later SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed In the past these arose if one inadvertantly had some overlapping folder paths - I am not sure yet why this arose for you There are loads of these errors. eg 2026-01-01 12:06:40.434 Error BaseItem: Error refreshing item Girl, You'll Be a Giant Soon 87244 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 08/818 - Girl, You ll be a Giant Soon.mkv SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:40.461 Error App: Error in ffprobe SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:40.818 Error BaseItem: Error refreshing item Stressed for Success 87245 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 08/819 - Stressed for Success.mkv SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:40.862 Error App: Error in ffprobe SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:41.242 Error BaseItem: Error refreshing item Hank's Back 87246 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 08/820 - Hank's Back.mkv SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:41.286 Error App: Error in ffprobe SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:41.717 Error BaseItem: Error refreshing item The Redneck on Rainey Street 87247 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 08/821 - The Redneck on Rainey Street.mkv SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:41.757 Error App: Error in ffprobe SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:42.332 Error BaseItem: Error refreshing item Talking Shop 87248 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 08/822 - Talking Shop.mkv SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:42.358 Error App: Error in ffprobe SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:42.868 Error BaseItem: Error refreshing item Phish and Wildlife 87249 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 08/812 - Phish and Wildlife.mkv SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:42.892 Error App: Error in ffprobe SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:43.145 Error BaseItem: Error refreshing item Daletech 87250 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 08/816 - Daletech.mkv SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:43.500 Error SqliteItemRepository: Error saving items SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:43.501 Error BaseItem: Error refreshing item Season 9 87224 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 09 SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:43.878 Error SqliteItemRepository: Error saving items SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:43.879 Error BaseItem: Error refreshing item Season 10 87225 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 10 SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:44.259 Error SqliteItemRepository: Error saving items SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:44.261 Error BaseItem: Error refreshing item Season 11 87226 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 11 SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:44.677 Error SqliteItemRepository: Error saving items SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:44.678 Error BaseItem: Error refreshing item Season 12 87227 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 12 SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:45.153 Error SqliteItemRepository: Error saving items SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:45.154 Error BaseItem: Error refreshing item Season 13 87228 /mnt/wd_black/plex_media/Series/Animation/King Of The Hill/Season 13 SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:45.156 Error SqliteItemRepository: Error saving items SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. 2026-01-01 12:06:45.157 Error App: Error in validateChildren for 87166 /mnt/wd_black/plex_media/Series/Animation SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. I will continue to look at the other logs and feedback
sa2000 674 Posted January 3 Posted January 3 (edited) On 01/01/2026 at 11:58, luckyluca said: Please note that if I add one folder location to a library again, so that the path is shown twice, items are scanned successfully may be that is what caused the SQLiteExceptions "Constraint: FOREIGN KEY constraint failed" errors 9 hours ago, sa2000 said: The first log starting at 10:16 am 01 January did have the /mnt/wd_black - but in that session 10:16 to 11:39 there was no network inteface detected.Only loopback detected 2026-01-01 10:16:00.674 Info NetworkManager: Detected local ip addresses: [{"IPAddress":"127.0.0.1","HasGateWayAddress":false,"PrefixLength":8,"IPv4Mask":"255.0.0.0"},{"IPAddress":"::1","HasGateWayAddress":false,"PrefixLength":128}] and I think that this may have had a bearing on the problem and droppng all the /mnt/wd_black folder paths I just tried this with a mounted path on ubuntu to a share on a windows PC and I did not lose the contents when started emby server with no network interface and did a library scan. So does not appear to be relevant Need to resolve the cause of these errors first "Constraint: FOREIGN KEY constraint failed" Are they still showing up in the latest log files? I can have a look at the database to see if there are any clues. Edited January 3 by sa2000
luckyluca 0 Posted January 8 Author Posted January 8 (edited) Thanks for checking. I had the feeling that temporarily unplugging the drive had little to do with it. Currently, I have three folder paths for the film library. I can see new items in the library that show up fine after I added a new folder path \\ser8\home\Downloads\plex_media, but I can't see any of the existing items under /mnt/wd_black/plex_media/Films/LiveAction or under /mnt/wd_black/Downloads/plex_media/Films (the mounted ntfs HDD). I don't understand why existing paths don't get scanned anymore. Please note, the ser8 minipc is attached to the router via network, and I use OpenVPN setup as a service that autostarts and is almost always on. I also have Emby running a library scan at startup. I'm writing this because I can still see this line in the log: 2026-01-08 10:48:58.225 Info NetworkManager: Detecting local network addresses 2026-01-08 10:48:58.225 Info NetworkManager: networkInterface: Loopback lo, Speed: -1, Description: lo 2026-01-08 10:48:58.225 Info NetworkManager: GatewayAddresses: 2026-01-08 10:48:58.228 Info NetworkManager: UnicastAddresses: 127.0.0.1,::1 2026-01-08 10:48:58.241 Info NetworkManager: Detected local ip addresses: [{"IPAddress":"127.0.0.1","HasGateWayAddress":false,"PrefixLength":8,"IPv4Mask":"255.0.0.0"},{"IPAddress":"::1","HasGateWayAddress":false,"PrefixLength":128}] ... 2026-01-08 10:49:01.847 Error HttpClient: Error getting response from https://www.mb3admin.com/admin/service/EmbyPackages.json And if I stop and restart the server, that line goes away 2026-01-08 12:10:30.107 Info NetworkManager: Detecting local network addresses 2026-01-08 12:10:30.107 Info NetworkManager: networkInterface: Ethernet enp2s0, Speed: 1000000000, Description: enp2s0 2026-01-08 12:10:30.108 Info NetworkManager: GatewayAddresses: 192.168.1.1,192.168.1.1 2026-01-08 12:10:30.111 Info NetworkManager: UnicastAddresses: 192.168.1.14,fe80::7270:fcff:fe08:f32%2 2026-01-08 12:10:30.111 Info NetworkManager: networkInterface: Loopback lo, Speed: -1, Description: lo 2026-01-08 12:10:30.111 Info NetworkManager: GatewayAddresses: 2026-01-08 12:10:30.111 Info NetworkManager: UnicastAddresses: 127.0.0.1,::1 2026-01-08 12:10:30.111 Info NetworkManager: networkInterface: Unknown tun0, Speed: -1, Description: tun0 2026-01-08 12:10:30.111 Info NetworkManager: GatewayAddresses: 10.32.0.5,10.32.0.5,10.32.0.5 2026-01-08 12:10:30.111 Info NetworkManager: UnicastAddresses: 10.32.0.6,fe80::5c11:aeac:17f8:3e49%5 2026-01-08 12:10:30.123 Info NetworkManager: Detected local ip addresses: [{"IPAddress":"192.168.1.14","HasGateWayAddress":true,"PrefixLength":24,"IPv4Mask":"255.255.255.0"},{"IPAddress":"10.32.0.6","HasGateWayAddress":true,"PrefixLength":32,"IPv4Mask":"255.255.255.255"},{"IPAddress":"fe80::7270:fcff:fe08:f32%2","HasGateWayAddress":true,"PrefixLength":64},{"IPAddress":"fe80::5c11:aeac:17f8:3e49%5","HasGateWayAddress":true,"PrefixLength":64},{"IPAddress":"127.0.0.1","HasGateWayAddress":false,"PrefixLength":8,"IPv4Mask":"255.0.0.0"},{"IPAddress":"::1","HasGateWayAddress":false,"PrefixLength":128}] ... 2026-01-08 12:10:33.628 Info HttpClient: GET https://www.mb3admin.com/admin/service/EmbyPackages.json When I took the minipc away with me, I turned on and used wifi to connect. When I got back home, I plugged both the external HDD and the rj45 cable, booted up the minipc, and afterwards, disabled the wifi. That's all. embyserver.txt hardware_detection-63903466139.txt embyserver_restarted.txt Edited January 8 by luckyluca
sa2000 674 Posted January 8 Posted January 8 56 minutes ago, luckyluca said: but I can't see any of the existing items under /mnt/wd_black/plex_media/Films/LiveAction or under /mnt/wd_black/Downloads/plex_media/Films (the mounted ntfs HDD). It is missing in the folders list in the libraries info that gets dumped into the logs This shows the libraries definitions as the server is seeing them 2026-01-08 10:48:58.871 Info App: Libraries Server Configuration: CollapseVideoFolders: False Library: TV Series, id: 3, CollectionType: tvshows, CollapseSingleItemFolders: False Configured paths: /home/idkpro/Downloads/plex_media/Series,/mnt/wd_black/Downloads/plex_media/Series,/mnt/wd_black/plex_media/Series/LiveAction Library Folder: LiveAction, id: 84989: path: /mnt/wd_black/plex_media/Series/LiveAction Library Folder: Series, id: 81703: path: /home/idkpro/Downloads/plex_media/Series Library Folder: Series, id: 84975: path: /mnt/wd_black/Downloads/plex_media/Series Library: Movies, id: 12938, CollectionType: movies, CollapseSingleItemFolders: False Configured paths: /home/idkpro/Downloads/plex_media/Films,/mnt/wd_black/Downloads/plex_media/Films,/mnt/wd_black/plex_media/Films/LiveAction Library Folder: Films, id: 97647: path: /home/idkpro/Downloads/plex_media/Films Library: Documentaries, id: 37930, CollectionType: movies, CollapseSingleItemFolders: False Configured paths: /mnt/wd_black/plex_media/Documentaries Library Folder: Documentaries, id: 97920: path: /mnt/wd_black/plex_media/Documentaries Library: Animated Series, id: 40108, CollectionType: tvshows, CollapseSingleItemFolders: False Configured paths: /mnt/wd_black/plex_media/Series/Animation Library Folder: Animation, id: 89570: path: /mnt/wd_black/plex_media/Series/Animation Library: Music videos, id: 46204, CollectionType: musicvideos, CollapseSingleItemFolders: False Configured paths: /mnt/wd_black/plex_media/Music_videos Library Folder: Music_videos, id: 100909: path: /mnt/wd_black/plex_media/Music_videos Library: Music, id: 47346, CollectionType: music, CollapseSingleItemFolders: False Configured paths: /mnt/wd_black/plex_media/Music Library Folder: Music, id: 100901: path: /mnt/wd_black/plex_media/Music Library: Animated Movies, id: 73622, CollectionType: movies, CollapseSingleItemFolders: False Configured paths: /mnt/wd_black/plex_media/Films/Animation Library Folder: Animation, id: 82717: path: /mnt/wd_black/plex_media/Films/Animation Library: Audio books, id: 77522, CollectionType: audiobooks, CollapseSingleItemFolders: False Configured paths: /mnt/wd_black/plex_media/Audiobooks Library Folder: Audiobooks, id: 99478: path: /mnt/wd_black/plex_media/Audiobooks Although they show as configured paths, they are not listed as Library Folders below the configured paths line. Don't know why that is and whether it has anything to do with the foreign key constraint errors seen before. I can have a look at the database - i will send you a link to upload zip of the library.db created when the emby server is shutdown 1 hour ago, luckyluca said: When I took the minipc away with me, I turned on and used wifi to connect. When I got back home, I plugged both the external HDD and the rj45 cable, booted up the minipc, and afterwards, disabled the wifi. That's all. With regards to the network interfaces detection, it does not look ok - the launch at 2026-01-08 10:48:57 only logged detecting loopback but the launch later at 12:10:29 detected the 10.32.0.6 and 192.168.1.14 addresses in addition to loopback In the initial log for the launch at 10:48:57, we can see some http external requests failing - which suggest the network was not operational 2026-01-08 10:49:01.847 Error HttpClient: Error getting response from https://www.mb3admin.com/admin/service/EmbyPackages.json 2026-01-08 10:49:01.848 Error HttpClient: Error getting response from https://api.github.com/repos/MediaBrowser/Emby.Releases/releases 2026-01-08 10:49:01.850 Error App: Error getting available plugin updates MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Resource temporarily unavailable (www.mb3admin.com:443) As a side, the loads of errors relating to Musicbrainz appear to be due to some bad data in the metadata for files in the Audiobooks library - where the external provider id's fields appear to be set to some text starting "UsicBrainz" rather than actual MusicBrainz id's - you should be able to spot that when looking through Edit Metadata - alternatively debug logging would show the items being processed at the time. I should also be able to see those when i have the database
sa2000 674 Posted January 8 Posted January 8 1 hour ago, sa2000 said: Don't know why that is and whether it has anything to do with the foreign key constraint errors seen before is it possible at some point you mistyped a path when editing / creating libraries and you corrected after - but that may have left some permanent damage in the database
luckyluca 0 Posted January 8 Author Posted January 8 Thanks for looking at the db, I'm uploading it right now. Standing by about the 'movies' library and why the pre-existing folders' content is not read. the startup NO internet error worries me quite a bit. Can it be an overlapping processes thing where openvpn is just starting up when emby is starting, or similar? Any way to test delaying emby when booting at startup? Regarding the wrong 'UsicBrainz' metadata, I can look at it with the debug option, or if you have the time and send me a list, I'll fix the metadata manually afterwards Please note, this is how the permissions are set on my system: Currently using root and root for mount paths and user idkpro for downloads and qbittorrent idkpro is also a sudoer and emby has acl special permission to access read write execute /home/idkpro, this way, the library can access the Downloads folder successuflly
sa2000 674 Posted January 8 Posted January 8 (edited) @luckylucaThe database appears to be corrupt When I was unable to export tables, I ran the integrity check test and getting this error sqlite> PRAGMA Integrity_Check; Error: malformed database schema (MediaItems) - near "STRICT": syntax error Could you look at this support article and go through the recovery steps and see if that gets resolved Corrupt Database Confirm first that you get the same error and then go through attempts to restore from backup - but need to do integrity check on that as well - or go through recovery steps Edited January 8 by sa2000
sa2000 674 Posted January 8 Posted January 8 I am doing some more tests on the database just to be sure that there is corruption and it was not something that I did
sa2000 674 Posted January 8 Posted January 8 The malformed error is showing for me when i use an old version of sqlite3 command line - one I had for exporting utf8 data to excel. The latest version of the sqlite3 tool is not giving the PRAGMA integrity_check error. So we can ignore that for now
sa2000 674 Posted January 9 Posted January 9 The MediaItems table in the library.db database does not have any rows relating to media or folders within /mnt/wd_black/Downloads/plex_media/Films /mnt/wd_black/plex_media/Films/LiveAction The only mentions of /mnt/wd_black/plex_media/Films is for the Movies Animated Movies library which has a folder path of /mnt/wd_black/plex_media/Films/Animation But we have library configuration for the Movies that has 3 paths defined and would show when editing the library /home/idkpro/Downloads/plex_media/Films,/mnt/wd_black/Downloads/plex_media/Films,/mnt/wd_black/plex_media/Films/LiveAction Lets do this: Enable Debug Logging on the server : Settings / Logs / Settings - Enable debug logging Restart the server Edit the movies library to delete these 2 paths /mnt/wd_black/Downloads/plex_media/Films /mnt/wd_black/plex_media/Films/LiveAction Scan the library Shut down Emby Server Take a copy of /var/lib/emby/data/library.db name the copy something like library_saved_yyyy-mm-dd_hh.mm.db to have the time it was copied out and saved Launch Emby Server Edit the Movies Library Add one of the 2 paths that were removed - add one that has media files and let it scan See if any of the movies show up Either way, shut down and save another copy of library.db into a file named to identify time it was saved Launch Emby Server and edit the Movies library to add the second path that was removed Let it scan At the end, take a third copy of the library.db and let me have the 3 library db saved copies plus all the emby server log files for this sequence of actions and of course let me know if any of the movies in these paths show up If this does not work - we could edit the libraries configuration table and remove the extra paths and then add them through edit library - but lets wait and see what these steps show
luckyluca 0 Posted January 9 Author Posted January 9 I'll do that; however, I can already confirm that removing and then adding the paths back makes the films show up again: I've already done that for the animated TV series, animated movies, and TV series libraries. However, when doing so, Emby 'forgets' about all the indentify corrections I manually did previously. Either way, I'll follow the instructions; perhaps it would help you understand what caused this in the first place. Expect the package likely tomorrow. Any thoughts about the NO internet error when Emby starts after a reboot? It worries me quite a bit. Is there a way to delay Emby booting up at startup to allow time to openvpn to start up properly, in case that was the issue?
sa2000 674 Posted January 9 Posted January 9 (edited) 15 minutes ago, luckyluca said: Either way, I'll follow the instructions; perhaps it would help you understand what caused this in the first place. Expect the package likely tomorrow. OK so if they do show up - the debug logs (make sure debug logging remains on all the time until we conclude this investigation) would show any errors and when they do disappear You could modify system.xml to change logs retention to 10 days from the default of 3 days and then can look at a copy of the library.db again with all the log files - when the items disappear again The system.xml line to edit (when emby server is shutdown): <LogFileRetentionDays>3</LogFileRetentionDays> changing the 3 to 7 or 10 - depends how quickly they disappear after coming back The system.xml is in folder "/var/lib/emby/config" Edited January 9 by sa2000
sa2000 674 Posted January 9 Posted January 9 12 minutes ago, luckyluca said: Any thoughts about the NO internet error when Emby starts after a reboot? It worries me quite a bit. Is there a way to delay Emby booting up at startup to allow time to openvpn to start up properly, in case that was the issue? I do not know the auto start mechanism on linux - on windows you can run it as a service with properties set for delayed start Others may be able to help with that Is it docker ? Anyway, it is not my area of expertise
Lessaj 467 Posted January 9 Posted January 9 You can probably do systemctl edit emby-server.service and add this (replace the service name with your openvpn client service name) [Unit] After=openvpn@client.service Wants=openvpn@client.service 1 1
Neminem 1518 Posted January 9 Posted January 9 I do something like this in unRaid to ensure that dependencies have started before the Nextcloud start. Since unRaid is Linux you should have a way to do this. 1 1
sa2000 674 Posted January 10 Posted January 10 On 08/01/2026 at 18:22, luckyluca said: Regarding the wrong 'UsicBrainz' metadata, I can look at it with the debug option, or if you have the time and send me a list, I'll fix the metadata manually afterwards Analysis of the database shows 122 tracks in the Audio books library and 906 tracks in the Music library having template ProviderIds metadata rather than actual MusicBrainzAlbumArtist=usicBrainz/Album/Artist/Id MusicBrainzArtist=usicBrainz/Artist/Id MusicBrainzAlbum=usicBrainz/Album/Id I will PM you an excel spreadsheet
sa2000 674 Posted January 10 Posted January 10 @luckylucayou also sent me your Emby Server network settings. I see you have 192.168.1.0/24 defined as LAN Networks. This should be all your local subnets and not just this one. You also had IP address 10.32.0.6 - this subnet should also be added to the LAN Networks set of subnets
luckyluca 0 Posted January 14 Author Posted January 14 Regarding the startup: Ok, I managed to add a 20-second sleep ahead of emby-server starting up. That takes care of the internet access after reboot. Regarding the network settings: I only have a private network 192.168.1.x. I'm curious about the ip 10.32.0.6, do you happen to know where it comes from? Could it be one of the many OpenVPN addresses? can I just leave 192.168.1.0 and 192.168.0.0 in there for the LG TV app to find it on the same network? Regarding the libraries: I followed the instructions and uploaded the file Archive.zip containing the 3 x db and log files. As expected, movies populated again by removing and reintroducing the same folder path(s). And the metadata is lost. I'm curious as to why scanning an existing path doesn't load movies unless the path is removed and added again. I think this is the key. Regarding the music files: I corrected all musicbrainz entries using jaikoz and musibrain picard. Thank you and everybody else who chipped in!
Lessaj 467 Posted January 14 Posted January 14 52 minutes ago, luckyluca said: I'm curious about the ip 10.32.0.6, do you happen to know where it comes from? Could it be one of the many OpenVPN addresses? can I just leave 192.168.1.0 and 192.168.0.0 in there for the LG TV app to find it on the same network? Yes it's a tun0 so it's an OpenVPN client connection. You should specify 192.168.1.14 as the local IP address that will be presented to Emby apps.
sa2000 674 Posted January 14 Posted January 14 (edited) 3 hours ago, luckyluca said: I only have a private network 192.168.1.x. I'm curious about the ip 10.32.0.6, do you happen to know where it comes from? Could it be one of the many OpenVPN addresses? can I just leave 192.168.1.0 and 192.168.0.0 in there for the LG TV app to find it on the same network? just noticed the server IP address changed to 192.168.1.15 - I would suggest that you make sure the server has a DHCP Reservation for the Mac Address in the router to stop it changing Last time it was 192.168.1.14 The two local network IP addresses being detected now are 10.32.0.6 (the vpn one) and 192.168.1.15 2026-01-14 17:58:01.247 Info NetworkManager: networkInterface: Ethernet enp2s0, Speed: 1000000000, Description: enp2s0 2026-01-14 17:58:01.248 Info NetworkManager: GatewayAddresses: 192.168.1.1,192.168.1.1 2026-01-14 17:58:01.251 Info NetworkManager: UnicastAddresses: 192.168.1.15,fe80::7270:fcff:fe08:f32%2 2026-01-14 17:58:01.251 Info NetworkManager: networkInterface: Loopback lo, Speed: -1, Description: lo 2026-01-14 17:58:01.251 Info NetworkManager: GatewayAddresses: 2026-01-14 17:58:01.251 Info NetworkManager: UnicastAddresses: 127.0.0.1,::1 2026-01-14 17:58:01.251 Info NetworkManager: networkInterface: Unknown tun0, Speed: -1, Description: tun0 2026-01-14 17:58:01.251 Info NetworkManager: GatewayAddresses: 10.32.0.5,10.32.0.5,10.32.0.5 2026-01-14 17:58:01.251 Info NetworkManager: UnicastAddresses: 10.32.0.6,fe80::eaa2:c914:dcc7:2286%4 Looking at the logs. Please let me have the database and logs if the mounted movies libraries folders disappear again /mnt/wd_black/Downloads/plex_media/Films /mnt/wd_black/plex_media/Films/LiveAction Edited January 14 by sa2000 1
sa2000 674 Posted January 14 Posted January 14 3 hours ago, luckyluca said: I corrected all musicbrainz entries using jaikoz and musibrain picard seeing more of these in the logs 2026-01-14 17:42:10.776 Debug App: Running MusicBrainzArtistProvider for Bill Bailey 2026-01-14 17:42:11.346 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 317ms 2026-01-14 17:42:13.833 Debug App: Running MusicBrainzArtistProvider for Bee Gees 2026-01-14 17:42:14.183 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 99ms 2026-01-14 17:42:14.683 Debug App: Running MusicBrainzArtistProvider for Nino Rota 2026-01-14 17:42:15.048 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 112ms 2026-01-14 17:42:15.112 Debug App: Running MusicBrainzArtistProvider for Queen 2026-01-14 17:42:15.448 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 83ms 2026-01-14 17:42:16.799 Debug App: Running MusicBrainzArtistProvider for Bill Hicks 2026-01-14 17:42:17.164 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 112ms 2026-01-14 17:42:17.220 Debug App: Running MusicBrainzArtistProvider for Jello Biafra 2026-01-14 17:42:17.595 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 122ms 2026-01-14 17:42:17.649 Debug App: Running MusicBrainzArtistProvider for Mumia Abu-Jamal 2026-01-14 17:42:18.003 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 104ms 2026-01-14 17:42:18.058 Debug App: Running MusicBrainzArtistProvider for Noam Chomsky 2026-01-14 17:42:18.410 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 102ms 2026-01-14 17:42:28.158 Debug App: Running MusicBrainzArtistProvider for Hans Zimmer 2026-01-14 17:42:28.515 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 107ms 2026-01-14 17:42:28.728 Debug App: Running MusicBrainzArtistProvider for Joe Hisaishi 2026-01-14 17:42:29.109 Info HttpClient: Http response 400 from https://musicbrainz.emby.tv/ws/2/artist/usicBrainz?inc=url-rels after 128ms
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