Menu

Doesn't work on DSM

Help
Dimas
2013-11-22
2013-12-02
  • Dimas

    Dimas - 2013-11-22

    I've installed APM from the "Community package hub". I configured it with advanced mode with these commands:
    - Power on: DAILY at 08:00
    - Power off: DAILY at 02:00
    First I tried the inactivity option, but as the next they the NAS doesn't poweroff I deactivated the option. I've tried to uninstall and reinstall again. Nothing happens.

    I've the DSM 4.3-3810 Update 1.

    Log: https://dl.dropboxusercontent.com/u/171128/lognas.png

     
  • Dimas

    Dimas - 2013-11-23

    More log and a capture. I don't understand :(

    https://dl.dropboxusercontent.com/u/171128/lognas2.png

     
  • Renaud Métrich

    Renaud Métrich - 2013-11-23

    Hello,

    seems like the daemon doing the scheduling is hanged when starting:

    the UI fails to kill the daemon after a change of a setting ("sleeping 1s..." messages, then the "Killed daemon" message).

    As root in a terminal, please send me a full "ps" of the processes. I guess the programming of the Syno BIOS hangs. If so, I'll provide you with a debug binary.

     
  • Dimas

    Dimas - 2013-11-24

    I'm not sure if I've done it well, here is the 'ps' output:

    https://dl.dropboxusercontent.com/u/171128/nas_ps.txt

    Thx!!

     
  • Dimas

    Dimas - 2013-11-26

    Was it what you need?

     
  • Renaud Métrich

    Renaud Métrich - 2013-11-26

    yes thanks. But I don't see the daemon running.
    Could you start the daemon by hand, then issue the ps command again...

    Starting the daemon as root : /var/packages/AdvancedPowerManager/target/sbin/Scheduler.pl start

    ps: ps -w

     
  • Dimas

    Dimas - 2013-11-28

    NAS> /var/packages/AdvancedPowerManager/target/sbin/Scheduler.pl start
    NAS> ps -w
    PID USER VSZ STAT COMMAND
    1 root 3012 S /sbin/init
    2 root 0 SW [kthreadd]
    3 root 0 SW [ksoftirqd/0]
    5 root 0 SW [kworker/u:0]
    6 root 0 SW [migration/0]
    7 root 0 SW [migration/1]
    9 root 0 SW [ksoftirqd/1]
    10 root 0 SW< [khelper]
    11 root 0 SW [kworker/u:1]
    123 root 0 SW [sync_supers]
    125 root 0 SW [bdi-default]
    126 root 0 SW< [kintegrityd]
    127 root 0 SW< [kblockd]
    133 root 0 SW< [ata_sff]
    139 root 0 SW< [md]
    158 root 0 SW< [rpciod]
    176 root 0 SW [kswapd0]
    177 root 0 SW [fsnotify_mark]
    178 root 0 SW< [nfsiod]
    745 root 0 SW< [iscsi_eh]
    755 root 0 SW [scsi_eh_0]
    758 root 0 SW [scsi_eh_1]
    790 root 0 SW [mtdblock0]
    795 root 0 SW [mtdblock1]
    801 root 0 SW [mtdblock2]
    806 root 0 SW [mtdblock3]
    811 root 0 SW [mtdblock4]
    816 root 0 SW [mtdblock5]
    827 root 0 SW [mtdblock6]
    853 root 0 SW [md0_raid1]
    859 root 0 SW [md1_raid1]
    958 root 0 SW [jbd2/md0-8]
    959 root 0 SW< [ext4-dio-unwrit]
    975 root 7888 S /usr/sbin/syslog-ng -F
    2110 root 0 SW [khubd]
    2116 root 0 SW [kethubd]
    2207 root 0 SW< [crypto]
    2385 root 0 SW [ocf_0]
    2386 root 0 SW [ocf_ret_0]
    2387 root 0 SW [ocf_1]
    2388 root 0 SW [ocf_ret_1]
    2484 root 0 SW [ecryptfs-kthrea]
    3066 root 0 SW [md2_raid1]
    3170 root 0 SW< [kdmflush]
    3403 root 9484 S < /usr/syno/bin/findhostd
    3449 root 0 SW [jbd2/dm-0-8]
    3450 root 0 SW< [ext4-dio-unwrit]
    3566 root 19404 S scemd
    5947 root 4048 S /sbin/getty 115200 console
    6856 root 2684 S /usr/syno/sbin/dbus-daemon --system --nopidfile
    6858 root 2684 S /usr/syno/sbin/dbus-daemon --session --fork --print-address
    6874 root 13572 S /usr/syno/sbin/hotplugd
    6890 root 4164 S /usr/sbin/inetd
    6896 root 4164 S /usr/sbin/crond
    6911 root 14816 S /usr/syno/sbin/snmpd -Ln -c /usr/syno/etc/snmpd.conf -p /var/run/snmpd.pid udp:161,udp6:161,tcp:161,tcp6:
    6915 root 13572 S /usr/syno/sbin/ddnsd
    6918 root 12584 S /usr/syno/sbin/heartbeatd
    7097 root 5512 S /usr/syno/bin/usbhid-ups -a ups
    7248 root 7480 S /usr/syno/sbin/upsd
    7259 root 7384 S /usr/syno/sbin/upsmon -b
    7261 root 7384 S /usr/syno/sbin/upsmon -b
    7330 admin 33772 S /usr/syno/pgsql/bin/postgres -D /var/services/pgsql --config_file=/usr/syno/pgsql/etc/postgresql.conf --h
    7336 admin 33772 S postgres: writer process
    7337 admin 33772 S postgres: wal writer process
    7374 root 8772 S /usr/sbin/ntpd -p /var/run/ntpd.pid -g
    7455 root 8908 S /usr/syno/sbin/cupsd -C /usr/local/cups/cupsd.conf
    7564 root 31604 S N /usr/syno/sbin/fileindexd
    7689 root 22352 S /usr/syno/sbin/nmbd -D
    7728 root 28728 S /usr/syno/sbin/smbd -D
    7744 root 28844 S /usr/syno/sbin/smbd -D
    7799 root 15644 S /usr/syno/bin/rsync --daemon
    7806 root 14284 S /usr/syno/bin/synonetbkpd
    7836 root 12944 S /usr/syno/sbin/synosnmpcd
    7852 root 12800 S /usr/syno/sbin/sshd
    7903 root 13844 S /usr/syno/apache/bin/httpd -DSSL -DFrameOptions -f /usr/syno/apache/conf/httpd.conf-sys
    7939 root 13508 S /usr/syno/apache/bin/httpd
    7944 nobody 13508 S /usr/syno/apache/bin/httpd
    7945 nobody 13508 S /usr/syno/apache/bin/httpd
    7946 nobody 13508 S /usr/syno/apache/bin/httpd
    7987 root 14752 S /usr/syno/apache/bin/httpd -DSSL -f /usr/syno/apache/conf/httpd-webdav.conf-sys
    8052 root 4144 S avahi-daemon: running [NAS.local]
    8611 root 14752 S /usr/syno/apache/bin/httpd -DSSL -f /usr/syno/apache/conf/httpd-webdav.conf-sys
    8612 root 14752 S /usr/syno/apache/bin/httpd -DSSL -f /usr/syno/apache/conf/httpd-webdav.conf-sys
    8753 root 26500 S N /usr/syno/sbin/synoindexd
    8778 root 25424 S N /usr/syno/bin/synomkthumbd
    8783 root 25420 S N /usr/syno/sbin/synomkflvd
    9026 root 67452 S < /var/packages/AudioStation/target/sbin/synoaudiod
    9038 root 81228 S < /var/packages/AudioStation/target/bin/pulseaudio
    9140 root 9140 S < /var/packages/AudioStation/target/sbin/synorcd
    9659 root 9196 S N /usr/syno/sbin/synologrotated
    16147 root 29680 S /usr/syno/sbin/smbd -D
    16647 root 14088 S /usr/syno/apache/bin/httpd -DSSL -DFrameOptions -f /usr/syno/apache/conf/httpd.conf-sys
    17275 root 14088 S /usr/syno/apache/bin/httpd -DSSL -DFrameOptions -f /usr/syno/apache/conf/httpd.conf-sys
    17390 root 14088 S /usr/syno/apache/bin/httpd -DSSL -DFrameOptions -f /usr/syno/apache/conf/httpd.conf-sys
    17522 root 14088 S /usr/syno/apache/bin/httpd -DSSL -DFrameOptions -f /usr/syno/apache/conf/httpd.conf-sys
    18914 root 0 SW [kworker/1:0]
    19429 root 14088 S /usr/syno/apache/bin/httpd -DSSL -DFrameOptions -f /usr/syno/apache/conf/httpd.conf-sys
    19594 root 0 SW [kworker/0:0]
    19657 root 1812 S /usr/syno/sbin/minissdpd -i eth0
    19950 root 14088 S /usr/syno/apache/bin/httpd -DSSL -DFrameOptions -f /usr/syno/apache/conf/httpd.conf-sys
    20259 root 0 SW [kworker/0:1]
    20686 root 0 SW [flush-9:0]
    21180 root 0 SW [kworker/1:2]
    21210 root 0 SW [kworker/0:2]
    21523 root 0 SW [flush-253:0]
    21537 root 20392 R sshd: root@pts/1
    21612 root 4168 S -ash
    21692 root 17956 S /usr/syno/synoman/webman/modules/ResourceMonitor/rsrcmonitor2.cgi
    21693 root 4168 R ps -w

     
  • Dimas

    Dimas - 2013-11-30

    I think I know the problem. I've disabled the 'admin' account for security reasons, and I use DSM with another admin account. Is it possible that only 'admin' account can user APM?

     
  • Dimas

    Dimas - 2013-11-30

    Confirmed, if I disable the 'admin' account APM doesn't work. If I enable 'admin' account I can use APM from any other administrator account and it works.

    I really want to have the 'admin' account disabled. Do u know if there is a workaround?

    Thx

     
  • Renaud Métrich

    Renaud Métrich - 2013-12-02

    Good news. I did some work around admin account some time ago when DSM 4.2 was released. I'll provide you with a debug scheduler to screen the issue.

    Thanks for your investigation.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.