Issue with Rock on NUC not Automatically Loading Music Folders from Synology NAS (ref#MKHOEL)

What’s happening?

· Something else

How can we help?

· I'm having trouble adding music to my library

Describe the issue

I switched from a Windows 11 core to Rock on NUC I3, i3 / 32GB rAM, 500GB M2, connected to a Synology 916+ NAS, a large 300k+ library, everything works pretty well, the only thing I can't solve is that Rock does not automatically load the music folders that are added to the NAS. You have to do it manually by "forcing" under "Folders" or by restarting the OS. With the server on Windows I never had this problem except when it saturated after adding a lot of folders. Rock does not want to know about recognizing the new folders, am I doing something wrong?

Describe your network setup

I switched from a Windows 11 core to Rock on NUC I3, i3 / 32GB rAM, connected to a Synology 916+ NAS, a large 300k+ library, everything works pretty well, the only thing I can't solve is that Rock does not automatically load the music folders that are added to the NAS. You have to do it manually by "forcing" under "Folders" or by restarting the OS. With the server on Windows I never had this problem except when it saturated after adding a lot of folders. Rock does not want to know about recognizing the new folders, am I doing something wrong?

There are some options noted in the first post on A Roon on (Synology) NAS Primer

1 Like

Please don’t post multiple threads for the same problem, it doesn’t help matters at all.
Thank you for your cooperation.

My mistake I apologize

I tried the script in Synology Scheduler but it doesn’t seem to work. Since under Windows the automatic folder addition works and under Rock it doesn’t work, I deduce that it is a Rock bug and not a Synology NAS problem. I would like to stick with Rock, but does anyone have any other solutions?

Can you post a screenshot of your Roon’s :gear: > Storage screen so that we can see what your Watched Folders are?

What happens when you run

/sbin/sysctl fs.inotify.max_user_watches

please tell me how do i insert it into synology terminal to see the results?

In Control Panel, under “Terminal & SNMP,” ensure that you have “Enable SSH Service” checked.

Then, use a terminal program that supports SSH to access it. If you are using a Mac or *nix based host, you can just type the following command:

ssh -2 {username}@{ipaddress} -p{port}

On Windows, you can follow these instructions:

https://www.linode.com/docs/guides/connect-to-server-over-ssh-on-windows/

ok thanks, the answer is 8192

Is there some reason why you are adding the subfolders under music separately?

If all the subfolders just contain music files, it would be simpler to just add \\DiskStation916\music and that would then automatically include all the subfolders in the single Watched Folder…

I think you need to increase your value per this command:

/sbin/sysctl -n -w fs.inotify.max_user_watches=350000

See this for more:

because I want to keep the real folder structure under Roon, in case Roon goes down one day…

Well, you can keep your folder structure as it is on the NAS and still just add the top-level folder as a single Watched Folder entry in Roon…

Yes that would be nice, but do I lose the original file tracking and tags?

Thanks, I get the following check result: “sysctl: permission denied on key ‘fs.inotify.max_user_watches’”, i.e. it does not let the command operation in Task Scheduler, how do I proceed?

You probably need to run this as root