Post Reply 
 
Thread Rating:
  • 4 Vote(s) - 3.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto Rescan package for Synology users (formerly known as Auto Restart package)
26-04-2016, 14:41
Post: #151
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
(26-04-2016 14:10)winxi Wrote:  
(26-04-2016 14:00)tomfox Wrote:  Hallo, thanks for the answer.
I installed inotify-tools by adding the http://synology.francis-besset.com. There is a notification that this is a Beta version but is version 314-2? See attached screenshot (upper limit inotify watches reached & err.log file is still unavailable in this 1b version). Hope you know a solution.
With regards,
Tom

Hello, many thanks for posting this. The log file says that the maximum amount of inotify watches per user is reached. How many files do you have in the directory /volume1/music?
On my disk station, this limit is 102400. You may increase this limit by logging in to your disk station via ssh and writing the new limit to /proc/sys/fs/inotify/max_user_watches

Hi, I have 1900 albums in the directory /volume1/music and MinimServer counts 26349 tracks. There will be several JPG or LOG files around, but the total amount could not be more than 50000 files, probably 30000 so well under your limit. Beside that I don’t know how to use ssh and write a limit (to a file?). There are no files to be found on my disk station (NAS) belonging to inotify or Autoscan.
Find all posts by this user
Quote this message in a reply
26-04-2016, 15:05 (This post was last modified: 26-04-2016 15:06 by winxi.)
Post: #152
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
(26-04-2016 14:41)tomfox Wrote:  Hi, I have 1900 albums in the directory /volume1/music and MinimServer counts 26349 tracks. There will be several JPG or LOG files around, but the total amount could not be more than 50000 files, probably 30000 so well under your limit. Beside that I don’t know how to use ssh and write a limit (to a file?). There are no files to be found on my disk station (NAS) belonging to inotify or Autoscan.

Please try the package attached to this post. This will set the limit to 102400 if it is currently lower. Please post a screenshot of the log window again.


Attached File(s)
.spk  AutoRescan-1.0c.spk (Size: 50 KB / Downloads: 10)
Find all posts by this user
Quote this message in a reply
26-04-2016, 15:59
Post: #153
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
Thanks, that worked! see attached screenshot, scanning began when I deleted a title. I sometimes see much bigger music libraries, mine is about 1Tb, so maybe the limit should be bigger than 102400?
Tom


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
26-04-2016, 16:58
Post: #154
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
Thanks for letting me know that i works now.
The number of inotify watches is practically limited by the available RAM. I think that a value of 102400 is a good tradeoff between memory usage and the maximum number of allowed music files. If necessary, the user can increase this limit manually anytime.
Find all posts by this user
Quote this message in a reply
26-04-2016, 17:01
Post: #155
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
I noticed something else: don’t let Finder of OSX look at the watched folder, because it results in a rescan. Probably because OSX manipulates the hidden .DS_Store file. Should the last action not better be excluded as event?
Find all posts by this user
Quote this message in a reply
26-04-2016, 18:31
Post: #156
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
(26-04-2016 17:01)tomfox Wrote:  I noticed something else: don’t let Finder of OSX look at the watched folder, because it results in a rescan. Probably because OSX manipulates the hidden .DS_Store file. Should the last action not better be excluded as event?

It's a good idea to exclude hidden files from the inotify watches. This as well as the other changes we've discussed are available in version 1.1, see the first post of this thread. Thanks for your help with these improvements!
Find all posts by this user
Quote this message in a reply
26-04-2016, 19:50
Post: #157
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
(26-04-2016 18:31)winxi Wrote:  It's a good idea to exclude hidden files from the inotify watches. This as well as the other changes we've discussed are available in version 1.1, see the first post of this thread. Thanks for your help with these improvements!

What about files in @eaDir folders? This can double the nuimber of files that are watched.
Find all posts by this user
Quote this message in a reply
26-04-2016, 19:58
Post: #158
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
(26-04-2016 19:50)simoncn Wrote:  What about files in @eaDir folders? This can double the nuimber of files that are watched.

The files in @eaDir folders have already been excluded from the inotify watches, the hidden files extend now the list of excluded files.
Find all posts by this user
Quote this message in a reply
28-04-2016, 19:46
Post: #159
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
Hi, I'm hoping for some help here. I've a Synology DS213j, DSM v6.0 with Minimserver 0.8.4. I'm having problems installing the Auto Rescan package. When I get to the 'apply' part of the installation, I get an error message (see attached screenshot) saying the inotifywait binary is not available. I followed the instructions on page 1 of this thread, added the URL etc. Is there anything else needed?    
Find all posts by this user
Quote this message in a reply
28-04-2016, 20:08
Post: #160
RE: Auto Rescan package for Synology users (formerly known as Auto Restart package)
(28-04-2016 19:46)garyt Wrote:  Hi, I'm hoping for some help here. I've a Synology DS213j, DSM v6.0 with Minimserver 0.8.4. I'm having problems installing the Auto Rescan package. When I get to the 'apply' part of the installation, I get an error message (see attached screenshot) saying the inotifywait binary is not available. I followed the instructions on page 1 of this thread, added the URL etc. Is there anything else needed?

You need to install inotify-tools. When using the repository mentioned in the first post of this thread, this basically means:
1) Adding the reposity URL as package source.
2) Going to the package center community tab and installing inotify-tools.
Did you do this?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 4 Guest(s)