Make library update checker use pause setting (WAS: HDD hourly wake up from hibernation on DS213 NAS)

Issue #775 resolved
Former user created an issue

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)

  1. Former user Account Deleted

    There is another strange thing. I deleted serviio.log and restarted serviio. Now it doesn't create serviio.log at all!

  2. Petr Nejedly 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)

  3. Former user 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...

  4. Former user Account Deleted

    OK log reappeared. Now what setting could be missing and keeps HDD hourly wake up? This is really headache...

  5. Former user 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?

  6. Petr Nejedly 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.

  7. Former user 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?

  8. Former user 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?

  9. Petr Nejedly 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.

  10. Former user 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.

  11. Log in to comment