Jump to content

Library Scan, New Files Added


cdikland

Recommended Posts

FrostByte

It should only be watching what's in the folders you have RTM set to monitor.  So, it shouldn't be monitoring your db at all. 

If there are any libraries which you don't need monitoring, you could disable RTM for them.

Also, you may want to vacuum your db if you believe there is a bunch of "dead stuff" in there.

Link to comment
Share on other sites

Kandidat1999
5 minutes ago, FrostByte said:

It should only be watching what's in the folders you have RTM set to monitor.  So, it shouldn't be monitoring your db at all. 

If there are any libraries which you don't need monitoring, you could disable RTM for them.

Also, you may want to vacuum your db if you believe there is a bunch of "dead stuff" in there.

Ok thanks, should i change the size of the database buffer , its at 512MB right now, my NAS has 12GB Ram.

Link to comment
Share on other sites

FrostByte
11 minutes ago, Kandidat1999 said:

Ok thanks, should i change the size of the database buffer , its at 512MB right now, my NAS has 12GB Ram.

I have mine set at 1024 with 8gb ram which I think is a good setting.  Anything higher may be overkill and it's only supposed to grab what it needs

Edited by FrostByte
Link to comment
Share on other sites

Kandidat1999

So, back home, I have set the number to 260800 for now, and it works again, thanks for your help again! 

Sorry to bother you, but I have 2 last questions I just looked at my latest log, because for some reason I thought I would understand what's going in there...lol...no chance, but I saw a couple of lines there, where I wondered if there is anything wrong:

2022-02-03 23:23:51.229 Error PortMapper: Error creating port map
	*** Error Report ***
	Version: 4.7.0.22
	Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology7_{version}_x86_64.spk -noautorunwebapp
	Operating system: Linux version 4.4.180+ (root@build15) (gcc version 7.5.0 (GCC) ) #42218 SMP Mon Oct 18 19:17:56 CST 2021
	Framework: .NET 6.0.0-rtm.21522.10
	OS/Process: x64/x64
	Runtime: volume1/@appstore/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /var/packages/EmbyServer/var
	Application path: /volume1/@appstore/EmbyServer/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: <?xml version="1.0"?>
	 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
	<s:Body>
	<s:Fault>
	<faultcode>s:Client</faultcode>
	<faultstring>UPnPError</faultstring>
	<detail>
	<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
	<errorCode>401</errorCode>
	<errorDescription>Invalid Action</errorDescription>
	</UPnPError>
	</detail>
	</s:Fault>
	</s:Body>
	</s:Envelope>
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at Mono.Nat.Upnp.UpnpNatDevice.GetSpecificMappingAsync(Protocol protocol, Int32 publicPort, CancellationToken cancellationToken)
	   at Mono.Nat.Upnp.UpnpNatDevice.CreatePortMap(Mapping mapping, CancellationToken cancellationToken)
	   at Emby.PortMapper.ExternalPortForwarding.CreateRules(INatDevice device, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	
2022-02-03 23:23:51.232 Error HttpClient: <?xml version="1.0"?>
 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>401</errorCode>
<errorDescription>Invalid Action</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
2022-02-03 23:23:51.236 Error HttpClient: <?xml version="1.0"?>
 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>401</errorCode>
<errorDescription>Invalid Action</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

Is there a problem? 

And my last question or actually 2, when I vacuum the database, will there anything be lost? In terms of Artwork, scraped movies and how long will this approx. take?

Have a nice evening.

Cheers

Edited by Kandidat1999
Link to comment
Share on other sites

FrostByte

Vacuuming should reduce the size of your db by reclaiming space from things like deleted tables, etc

I don't use portmapping so Luke may need to comment on those errors.  It may not be a problem at all if you're not having any issues.

 

Link to comment
Share on other sites

  • 1 month later...
Kandidat1999

So I'm back to having the same problem as the last few times, library not detecting new files,  I looked up the line by myself this time

Quote

System.IO.IOException: System.IO.IOException: The configured user limit (300800) on the number of inotify watches has been reached, or the operating system failed to allocate a required resource.

I raised the number to 400800, no success, I raised it to 450000 not working, I used the highest possible number 524288 not working, there is really some strange stuff going on, never ever did I reach 200+k files on my NAS, I did a little calculation and never ever do I have this many files on my NAS, there must be a calculating error or something, but this is impossible.

I don't understand why I have this issues all the time, Plex is just running fine without any problems....

embyserver.txt

Link to comment
Share on other sites

Happy2Play
20 minutes ago, Kandidat1999 said:

So I'm back to having the same problem as the last few times, library not detecting new files,  I looked up the line by myself this time

I raised the number to 400800, no success, I raised it to 450000 not working, I used the highest possible number 524288 not working, there is really some strange stuff going on, never ever did I reach 200+k files on my NAS, I did a little calculation and never ever do I have this many files on my NAS, there must be a calculating error or something, but this is impossible.

I don't understand why I have this issues all the time, Plex is just running fine without any problems....

embyserver.txt 78.58 kB · 1 download

There are no inotify errors in this log.  Are you sure you are still having an issue?

  • Like 1
Link to comment
Share on other sites

FrostByte

Also, it's not just files.  It's folders and files including metadata, etc.  Anything that is in there will create a watch.  DSM says I have 165,000 and my library is very small.

As H2P mentioned though there are no inotify errors in your latest log.  Was something new added during the log, do you recall what time it was?

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