Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46
  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    11

    SSOD thttpd and localtime

    Hello,

    I have a DS207+ firm 598 and SSOD beta 10 and Slimserver (6.5). I activate the syno tools for see what process activate the disk and the trace is, at each hour:

    May 22 19:13:42 kernel: [/etc/localtime] opened by pid 2051 [u: (/volume1/SSODS/sbin/thttpd), comm: (thttpd)]

    So i think it is a normal trace but i don't know how stop this log in SSOD/sbin/thttpd. If soneone can help me ...

    After, when another PC is running i have also this disk wake up :

    May 22 19:14:20 kernel: [] opened by pid 1318 [u: (/usr/syno/sbin/smbd), comm: (smbd)]

    Can i stop this ?

  2. #2
    Senior Member flipflip's Avatar
    Join Date
    Apr 2006
    Location
    Shameland
    Posts
    1,402
    Quote Originally Posted by taloche View Post
    So i think it is a normal trace but i don't know how stop this log in SSOD/sbin/thttpd. If soneone can help me ...
    Hmm.. I wonder what thttpd does with /etc/localtime.. You might want to check the thttpd website and mailing list. Once your SSODS is configured you could safely disable thttpd (/volume1/SSODS/etc/init.d/thttpd-ssods stop). Maybe there's a config option for thttpd to disable this behaviour (let me know if you find it). To permanently disable thttpd, delete the S... symlink to thttpd-ssods in /volume1/SSODS/etc/init.d

    After, when another PC is running i have also this disk wake up :
    May 22 19:14:20 kernel: [] opened by pid 1318 [u: (/usr/syno/sbin/smbd), comm: (smbd)]
    Can i stop this ?
    Probably not at all (unless you want to disable samba in /usr/syno/etc/rc.d or somewhere around there). I'd check the synology forum for this.

    Anyway, how did you do this "trace"? That's not strace, isn't it?

    flip
    Check out flipflip's Squeezebox Server On (some) DiskStation (SSODS) and on (some) TurboStations (SSOTS) and some other devices! Please do NOT file SSODS bugs in (SD's) bugzilla. Use the forums. And only the forums. Thanks.

  3. #3
    Junior Member
    Join Date
    Jan 2008
    Posts
    11
    Thanks for the reply. I try this night.

    for the trace it is a synology cmd :
    syno_hibernate_debug_tool --enable 10
    and
    syno_hibernate_debug_tool --disable

    find here :
    http://www.synology.com/wiki/index.php/Spindown_issues

  4. #4
    Junior Member ocococ's Avatar
    Join Date
    Jun 2007
    Location
    France
    Posts
    17
    Hello,

    Exactly the same behaviour for me with SSODS 3b12, SqueezeCenter 7.01 and firmware 598 on my CS407.

    SSDOS is actually stopped here, but I confirm every hour sharp, thttpd uses /etc/localtime waking up HDDs.
    See extract of the log below :

    Code:
    May 24 05:48:44 kernel: [/etc/localtime] opened by pid 2707 [u:(/volume1/SSODS/sbin/thttpd), comm:(thttpd)]
    May 24 05:48:56 scemd: SCEMD: disk 1 wake up from hibernation 
    May 24 05:48:56 kernel: [/var/log/messages] opened by pid 1052 [u:(/sbin/syslogd), comm:(syslogd)]
    May 24 05:49:03 scemd: SCEMD: disk 2 wake up from hibernation 
    May 24 05:49:10 scemd: SCEMD: disk 3 wake up from hibernation 
    May 24 05:49:17 scemd: SCEMD: disk 4 wake up from hibernation 
    May 24 06:48:44 kernel: [/etc/localtime] opened by pid 2707 [u:(/volume1/SSODS/sbin/thttpd), comm:(thttpd)]
    May 24 06:48:56 scemd: SCEMD: disk 4 wake up from hibernation 
    May 24 06:48:56 kernel: [/var/log/messages] opened by pid 1052 [u:(/sbin/syslogd), comm:(syslogd)]
    May 24 06:49:03 scemd: SCEMD: disk 1 wake up from hibernation 
    May 24 06:49:10 scemd: SCEMD: disk 2 wake up from hibernation 
    May 24 06:49:17 scemd: SCEMD: disk 3 wake up from hibernation 
    May 24 07:48:44 kernel: [/etc/localtime] opened by pid 2707 [u:(/volume1/SSODS/sbin/thttpd), comm:(thttpd)]
    May 24 07:48:56 scemd: SCEMD: disk 4 wake up from hibernation

    I quickly checked source code of thttpd.
    In config.h, there is a constant STATS_TIME set to 3600.
    It seems this constant has to be undefined before compiling thttpd to disable any stats logging.


    Ocococ
    Last edited by ocococ; 2008-05-24 at 03:12.

  5. #5
    Senior Member flipflip's Avatar
    Join Date
    Apr 2006
    Location
    Shameland
    Posts
    1,402
    Quote Originally Posted by ocococ View Post
    In config.h, there is a constant STATS_TIME set to 3600.
    It seems this constant has to be undefined before compiling thttpd to disable any stats logging.
    Attached you find a version with this flag commented out.
    Attached Files Attached Files
    Check out flipflip's Squeezebox Server On (some) DiskStation (SSODS) and on (some) TurboStations (SSOTS) and some other devices! Please do NOT file SSODS bugs in (SD's) bugzilla. Use the forums. And only the forums. Thanks.

  6. #6
    Junior Member
    Join Date
    Jan 2008
    Posts
    11
    Thanks, It's working. Now we have SSOD web and no HD wake up ! Even if this is not first important for you, thanks again.

  7. #7
    Senior Member flipflip's Avatar
    Join Date
    Apr 2006
    Location
    Shameland
    Posts
    1,402
    Quote Originally Posted by taloche View Post
    Thanks, It's working. Now we have SSOD web and no HD wake up ! Even if this is not first important for you, thanks again.
    Cool. Thanks for reporting and testing. I'll include an updated thttpd in the next release.

    I'm always happy to include suggestions from users. You're report/research has actually been the first useful suggestion, which has been addressed to me, regarding this issue.

    Best regards,
    flip
    Check out flipflip's Squeezebox Server On (some) DiskStation (SSODS) and on (some) TurboStations (SSOTS) and some other devices! Please do NOT file SSODS bugs in (SD's) bugzilla. Use the forums. And only the forums. Thanks.

  8. #8
    Junior Member ocococ's Avatar
    Join Date
    Jun 2007
    Location
    France
    Posts
    17
    Hi,

    I confirm it works for me too.
    Keep up the good work.

    Ocococ
    Last edited by ocococ; 2008-05-25 at 12:06.

  9. #9
    Junior Member
    Join Date
    Jun 2008
    Location
    Copenhagen, Denmark
    Posts
    4

    Question

    Apparently, I must be doing something wrong... :-(

    I upgraded to SSODS Beta 13 - hibernation still didn't work.

    Then I upgraded SC to 7.0.1 - hibernation still didn't work.

    Then (not really to try and solve the problem, but included for completeness) I upgraded the DS to FW DSM 2.0-0600. Surprise: Hibernation STILL doesn't work... :-(

    So I tried finding out what was happening and enabled the syno_hibernate_debug_tool and got this:

    Code:
    Jun  9 23:17:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    Jun  9 23:22:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    Jun  9 23:27:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    Jun  9 23:32:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    Jun  9 23:37:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    Jun  9 23:42:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    Jun  9 23:47:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    Jun  9 23:52:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    Jun  9 23:57:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    So SSODS reads /etc/protocols every five minutes? Or is it maybe a plugin in SC that does it (I disabled almost all plugins in SC)?

    Any ideas? I really would like my disk to spin down... :-)

  10. #10
    Senior Member flipflip's Avatar
    Join Date
    Apr 2006
    Location
    Shameland
    Posts
    1,402
    Quote Originally Posted by Rander View Post
    Code:
    Jun  9 23:17:09 kernel: [/etc/protocols] opened by pid 10943 [u:(/volume1/SSODS/bin/perl), comm:(perl)]
    So SSODS reads /etc/protocols every five minutes?
    Not SSODS read that file. Perl does. It could be SC or any Perl module or plugin in SC or one of the perl modules. You could grep for "/etc/protocols" in all relevant directories (something like "grep -r /etc/protocols /volume1/SqueezeCenter/* /volume1/SSODS/lib/perl5/*).
    Check out flipflip's Squeezebox Server On (some) DiskStation (SSODS) and on (some) TurboStations (SSOTS) and some other devices! Please do NOT file SSODS bugs in (SD's) bugzilla. Use the forums. And only the forums. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •