Jump to content

Library items disappearing


Go to solution Solved by sa2000,

Recommended Posts

mathbernier
Posted (edited)

Hi @Luke,

I am having the same issues in the past weeks. I went from Emby on Windows 10 to Proxmox CT. I've rebuilded the entire libraries, it was working fine until Emby started to lose them, randomly. First i was losing my Movies library but now it affects my Tv Shows too. Nothing gets deleted within the storage. It seems that Emby loses it points of contact and then drop everything.

My storage didn't changed. I am using a Synology nas with shares mounted by smb. Same setup was on my Windows 10 and it worked like a charm for few years.

I am running the latest version of Emby, on lxc Proxmox 8.4.5, i have no lan drop within my network/ct/vm/shares/nas/wifi.

As for today, it started randomly at 17h00, August 3 2025. Any idea what could be done?

 

Thanks!

embyserver.txt

Edited by mathbernier
Posted (edited)
9 hours ago, mathbernier said:

As for today, it started randomly at 17h00, August 3 2025. Any idea what could be done?

I can see in the log 300 items being removed at 5am - all relating to items stored on 192.168.51.11

e.g.

2025-08-03 05:00:47.216 Info App: Removing item from database, Type: Series, Name: 12 Monkeys, Path: smb://192.168.51.11/Data/Series/12.Monkeys, Id: 64258
2025-08-03 05:00:47.547 Info App: Removing item from database, Type: Series, Name: 1899, Path: smb://192.168.51.11/Data/Series/1899, Id: 64259
2025-08-03 05:00:47.625 Info App: Removing item from database, Type: Series, Name: 3 Body Problem, Path: smb://192.168.51.11/Data/Series/3.Body.Problem, Id: 64260
2025-08-03 05:00:47.703 Info App: Removing item from database, Type: Series, Name: 30 Coins, Path: smb://192.168.51.11/Data/Series/30.Coins, Id: 64261

Did the IP address change for the media path ? Or network / device went down ? 

For SMB paths, Emby Server converts a device name if provided to the IP Address at the time and would use that from then on. So if this is an IP Address issue, you could resolve by having a DHCP Reservation IP for the device holding the media on 192.168.51.11 

The log also has an en error logged showing that the following path was unavailable

Path Not Found: 192.168.51.11\Data\Music Show

 

2025-08-03 05:02:22.399 Error App: Error in validateChildren for 93827 smb://192.168.51.11/Data/Music Show
	*** Error Report ***
	Version: 4.8.11.0
	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: Linux version 6.8.12-13-pve (build@proxmox) (gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /var/lib/emby
	Application path: /opt/emby-server/system
	MediaBrowser.Common.Extensions.DirectoryUnavailableException: MediaBrowser.Common.Extensions.DirectoryUnavailableException: Path Not Found: 192.168.51.11\Data\Music Show
	   at EzSmb.Transports.Shares.Bases.ShareBase.GetNode(PathSet pathSet, FixedParamSet paramSet, Boolean isDirectory)
	   at EzSmb.Transports.Connection.GetNode(Boolean isDirectory)
	   at EzSmb.Node.GetNode(String path, ParamSet paramSet, Boolean isDirectory)
	   at Emby.Server.Implementations.IO.SmbFileSystem.GetFileSystemEntries(String path, Boolean recursive, FileSystemCredentials credentials)
	   at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntriesInternal(String path)
	   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
	   at MediaBrowser.Controller.Entities.Folder.GetNonCachedChildren(IDirectoryService directoryService, LibraryOptions libraryOptions)
	   at MediaBrowser.Controller.Entities.BaseItem.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, BaseItem[] collectionFolders, LibraryOptions libraryOptions, Dictionary`2 newItemIds, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService)
	   at Emby.Server.Implementations.Library.LibraryManager.ValidatePhysicalRoots(IProgress`1 progress, IDirectoryService directoryService, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: EzSmb.Node GetNode(EzSmb.Paths.PathSet, EzSmb.Params.FixedParamSet, Boolean)

I am not sure if there has been any changes in the beta relating to media paths being inaccessible

 

Edited by sa2000
mathbernier
Posted

Hi sa2000,

My nas stays online 24/7 and it has an static hardcoded ip on it. I am now monitoring that interface 24/7 and see what will happen.

In between my proxmox\emby, there's a switch and i don't see anything in the logs that tells me if my nas or port went down. It seems like everything was online when Emby scanned the libraries.

Emby deleted 300 entries, that was when i turned it off. I've put the emails and Discord notifications when a media is deleted\removed so when i saw that, i turned off Emby and recover my DB with Proxmox Backup Server and put everything back in place.

It has happened like 3 times over the past week or so.

 

Anyway i'll keep you posted since anything else in my network seems to have any problems. 

 

Thank you!

  • Thanks 1
  • Solution
Posted (edited)
21 hours ago, mathbernier said:

It started randomly at 17h00, August 3 2025

You said hee 5pm - but the 300 removals I mentioned were 12 hours earlier at 5am. I do not think you had debug logging enabled then

Could you run with debug logging enabled at all times. Restart the server to get fresh logs created and then lets see when the next item removals happen and debug logging may give some clues

The debug log lines in the provided log start at 2025-08-03 17:08:02

The removals in the log started at 2025-08-03 05:00:47 and stopped at 2025-08-03 05:01:22

Also would be good when providing the logs to also include logs that go back to time of launch of the server. At midnight logs get rotated and renamed to embyserver-xxxxxxx.txt with the latest logfile being just embyserver.txt

We retain logs for 3 days - so if it takes longer than 3 days to happen, please save a copy of the logs folder every 2 days

The path is /var/lib/emby/logs

And please give a few examples of what got removed 

Thanks

PS - when providing the sanitized logs (through emby web logs downoad) - suggest you save a copy of all the raw log files in case we need to establish if there were requests coming in that instigated the removals and see which IP address the requests came from

 

 

 

Edited by sa2000
mathbernier
Posted

Hi, you are right, debug logging wasn't enabled. Now it is. 

I will keep track of changes and provide you with proper log files.

Every time my libraries gets deleted, i don't let Emby rebuild them. I restore from a backup so i will take the log files before i do so.

 

Thanks for your help and time, it is much appreciated!

 

 

Posted

and please restart the server so we have complete set of logs from launch time

thanks

mathbernier
Posted

Yes i just did.

Thanks

Posted
On 8/4/2025 at 3:10 PM, sa2000 said:

and please restart the server so we have complete set of logs from launch time

thanks

@mathbernier?

mathbernier
Posted

Hi @Luke, this is a random issue so it might happen tomorrow or next week. I am continuing monitoring but as of now, nothing happened.

As soon as this issue appears, i will share the log files and update this case.

 

Thanks!

  • Thanks 1
  • 4 weeks later...
mathbernier
Posted

Hello again!

So this situation happened again, 30 minutes ago. I took the log and i had to modify it a bit to hide personal informations.

Here it is!

Thanks a lot for your help!

Embylog290825.txt

Posted
28 minutes ago, mathbernier said:

Hello again!

So this situation happened again, 30 minutes ago. I took the log and i had to modify it a bit to hide personal informations.

Here it is!

Thanks a lot for your help!

Embylog290825.txt 4.96 MB · 0 downloads

Hi, what example are we looking at here?

mathbernier
Posted

2025-08-29 16:15:25.366 Debug TaskManager: IntervalTrigger fired for task: Scan media library
2025-08-29 16:15:25.366 Debug TaskManager: Queueing task RefreshMediaLibraryTask
2025-08-29 16:15:25.366 Debug TaskManager: Executing Scan media library
and then

2025-08-29 16:15:30.639 Info App: Removing item from database, Type: Movie, Name: 2012, Path: smb://192.168.51.11/Data/Movies/2012.2009.BluRay.1080p.x264.YIFY.mp4, Id: 100889
2025-08-29 16:15:30.678 Info App: Deleting path /var/lib/emby/metadata/library/c7/c711808092cccaf92237bcf1ae5a5c50
2025-08-29 16:15:30.679 Debug Notifications: Sending notification: 2012 removed from emby
2025-08-29 16:15:30.679 Debug Notifications: Sending notification: 2012 removed from emby
2025-08-29 16:15:30.679 Debug BaseItem: Removed item 100890 Movie smb://192.168.51.11/Data/Movies/A.Night.At.The.Roxbury.1998.WEB-DL.1080p.x264.mkv
2025-08-29 16:15:30.679 Info App: Removing item from database, Type: Movie, Name: A Night at the Roxbury, Path: smb://192.168.51.11/Data/Movies/A.Night.At.The.Roxbury.1998.WEB-DL.1080p.x264.mkv, Id: 100890
2025-08-29 16:15:30.707 Info App: Deleting path /var/lib/emby/metadata/library/ec/ec454878fe9900e8f0bd717136d54f10
2025-08-29 16:15:30.707 Debug Notifications: Sending notification: A Night at the Roxbury removed from emby
2025-08-29 16:15:30.707 Debug Notifications: Sending notification: A Night at the Roxbury removed from emby

................

...........
 

It starts removing all items, 1939 movies. For no reason. 

Once everything has been deleted, then it will rescan the folder, and add them back. 

This goes back and forth since a few weeks/months already. 

Posted

I see no file access errors in the library scan. This means the disconnect is happening in such a way that it still appears to look available, but just empty. In this case it looks like an empty folder, and yes, emby server will remove the contents from the library.

On the other hand, if the file system through an error, then the server would catch this and would know that the media is disconnected, and would then act differently.

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