My Cloud slept for 3 days 5 hours after killing OpenVPN

So after the troubleshooting fiasco a few days ago, killing off OpenVPN and resetting the router, I had let the Cloud go back to sleep.

Today I woke it up and found a nice surprise in the log…

Sep 13 11:03:02 WDMyCloud logger: exit standby after 278144 (since 2015-09-10 05:47:13.315598000 -0700) equating to 

3 days 5 hours and 15 minutes

Of course it would have slept longer if I hadn’t woken it up, but just the fact that this is the first time I have seen a standby that exceeded a day.

So WD2GO.com is down and OpenVPN has been killed… do you think that this has any bearing to a good night sleep for the Cloud?

Hello there Raphael,

Please keep us posted with any other findings on the sleep behaviour. I know you have been on this for quite some time 

Hi there…

funny i was going to post why the MyCloud keeps waking up… more so since the recent firmware update.

All i can hear all night is the drive spin up, whirl for a few mins then turn off and a few mins later starts over.

I have set Twonky to only do scans every 1440 mins (1day)

So is OpenVPN running on the MyC? how did you turn yours off.?

I wanna give it a try… thanks.

Hi there Kazgor,

There is a whole thread on sleep somewhere around here ( click here) including remounting the drive which seems to go hand in hand with killing all the scans.

but for OpenVPN you will need to ssh into the device 

use 

ps -ALL 

to see all the process that are running.  if you see openVPN running then you can 

use

killall openvpn

you can also stop the service by

/etc/init.d/openvpn stop

or restart the service by

/etc/init.d/openvpn start

However remember that openvpn is part of the remote and without it, I think your cloud services won’t work; at least that is what I remember back in the days when I was killing all the services in order to find sleep.

So as I said, this is only one of many services that wakes up the cloud. 

/etc/init.d/nfs-kernel-server stop

/etc/init.d/nfs-common stop

/etc/init.d/upnp_nas stop

/etc/init.d/mDNSResponder stop

/etc/init.d/wdphotodbmergerd stop

/etc/init.d/wdnotifierd stop

/etc/init.d/wdmcserverd stop

/etc/init.d/wddispatcherd stop

Final ingrediants to Sleep (credits goes to Rac8006, so give him the kudos for being persistent)

  1. adding an extra sync to the monitorio script helps a lot with reducing the number of 7 second wake ups down to only one or two per night.

  2. after SSH’ing into the device issue the following mount command… don’t worry nothing untoward will happen and if it does, blame Rac8006 please…

mount -o remount,noatime,nodiratime /dev/root /

you could also use mine

mount -o remount,noatime /dev/root /

The difference is that I assume noatime encompassing nodiratime.

thanks Ralphael very nice write up…

i did take a quick look vi aSSH and didnt see any openVPN process running with name of openVPN. 

Can see the sleep feature is a massive popular topic… 

Going to unplug anything that talks to the MyC… (firestick, phone) and PC is always off at might and hopefully it will place nice tonight.

Cheers. Kz.

Please let Us now if that helped. I had to downgrade to previous version due to constant wake ups after uprade to OS 3