Make library update checker use pause setting (WAS: HDD hourly wake up from hibernation on DS213 NAS)
With version 1.4 I encountered this problem that, Serviio wakes up NAS every hour from hibernation. There was an issue created for this problem and I have been spending quite a lot of time dealing with this problem. It was said to be resolved in 1.4.1 but yesterday I upgraded to 1.4.1.2-0026 and the problem seems persists.
Comments (15)
-
Account Deleted -
repo owner It is checking for the license only 1x a day. Make sure to turn off all other checking (for plugins and new/updated files)
-
Account Deleted I have set the following: 1. in serviio.sh JAVA_OPTS: -Djava.util.prefs.syncInterval=9999999 -Dplugins.check=false 2. in serviio console: Library tab, disabled 'Serch for updates of currently shared files' Keep library automatically updated, but pause between refreshes set to 7200 min, which is 5 days.
What else could be missing?
Another weird thing is, it doesn't write serviio.log at all...
-
repo owner make sure the log folder is writable. then try to restart the NAS.
-
Account Deleted OK log reappeared. Now what setting could be missing and keeps HDD hourly wake up? This is really headache...
-
Account Deleted I found this when setting log level to DEBUG:
2014-04-09 20:53:02,279 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:00:07 (advertisement duration is 1800 sec.)
Does it matter?
-
repo owner That should not matter. You'll have to find something that appears in the log every hour.
But there was no change since 1.4.1, so I'm not sure what it could be.
-
Account Deleted First of all I made sure it was because of serviio: If I stop serviio there is no such hourly wake up.
Then I have set the following in serviio.sh and restarted serviio:
-Djava.util.prefs.syncInterval=864000
-Dplugins.check=false
In serviio console:
disabled 'Search for updates of currently shared files'
"Keep library automatically updated" ticked, but "pause between refreshes" set to 7200 min, which is 5 days.
What/where else should I check?
-
repo owner That looks fine. Just enable detailed log to see what it's doing every hour.
-
Account Deleted OK, let me wait a couple of hours...
-
Account Deleted I checked detailed log, found following occurs hourly:
2014-04-10 15:04:23,400 DEBUG [LibraryUpdatesCheckerThread] Looking for removed playlist files in repository: /volume2/video/Movies
2014-04-10 15:04:23,401 DEBUG [PlaylistDAOImpl] Reading Playlists for Repository (id = 4)
2014-04-10 15:04:23,401 DEBUG [LibraryUpdatesCheckerThread] Looking for removed/updated files in repository: /volume2/video/Movies
2014-04-10 15:04:23,402 DEBUG [MediaItemDAOImpl] Reading MediaItems for Repository (id = 4)
I have ticked 'Keep library automatically updated' but the 'Pause between refreshes' is set to 7200 minutes, it's 5 days. Why it still checks every hour?
-
repo owner Right, looking at the code, the 1 hours is hardcoded for the update path, so the value in the console is only used for checking for new files.
I'll fix that, but for now you'll have to untick the Update library checkbox.
-
repo owner - changed title to Make library update checker use pause setting (WAS: HDD hourly wake up from hibernation on DS213 NAS)
- changed version to 1.5
- marked as enhancement
- marked as minor
-
Account Deleted I have another suggestion. Each time I upgrade serviio, settings to prevent hourly wake up like I mentioned before is lost. Us it possible to retain them between upgrades? Thanks.
-
repo owner - changed status to resolved
Refresh interval now taken into account for file updates too (when set larger than 1 hour)
- Log in to comment
There is another strange thing. I deleted serviio.log and restarted serviio. Now it doesn't create serviio.log at all!