Refusing connection after some time, apache2 not running detected

Hi,

My WDMyCloud 2T starts working ok after a boot, but in a short time “Refuses Connection”. At the same time it disappears from SmartWare.

Seems to be a commom bug here, but I can´t find a solution.

Content Scan gives an error, but I can´t know more about it.

It actually seems that apache2 and other services are stopping, since last time the problem worked I had enabled SSH and was unable to find apache with ps command.

When the system stops answering to internet, most of it is still running, since the command top in the terminal continue to show changes (apache disappears, though).

Some data about it:

Running v04.04.02-105
Blue Light is steady when systems stops
SSH enabled AFTER the problem to collect some data, no modification done
DHCP fixed in router

In /var/logs my Logs I can find some information that could be useful to someone, as in wdmcserver.log and apache2 errror.log, including a PHP fatal error.

wdmcserver.log (last log)

2016-04-10T11:08:20.501583-03:00 di=NQQbWNid7v info wdmcserver: [7593:0x43d3f460] Error Broken pipe
Traceback:
thrown from /data/workspace/workspace/wdmcserver_stable/src/util/Socket.cpp, line 403
2016-04-10T11:17:21.302411-03:00 di=NQQbWNid7v info wdmcserver: [7593:0x43d3f460] Error Broken pipe
Traceback:
thrown from /data/workspace/workspace/wdmcserver_stable/src/util/Socket.cpp, line 403
2016-04-10T11:17:21.302519-03:00 di=NQQbWNid7v info wdmcserver: [7593:0x43d3f460] Error Broken pipe
Traceback:
thrown from /data/workspace/workspace/wdmcserver_stable/src/util/Socket.cpp, line 403
2016-04-10T11:17:21.302576-03:00 di=NQQbWNid7v info wdmcserver: [7593:0x43d3f460] Error Broken pipe
Traceback:
thrown from /data/workspace/workspace/wdmcserver_stable/src/util/Socket.cpp, line 403
2016-04-10T11:21:01.822058-03:00 di=NQQbWNid7v info wdmcserver: [7593:0x43d3f460] Error Broken pipe
Traceback:
thrown from /data/workspace/workspace/wdmcserver_stable/src/util/Socket.cpp, line 403
2016-04-10T11:21:01.822157-03:00 di=NQQbWNid7v info wdmcserver: [7593:0x43d3f460] Error Broken pipe
Traceback:
thrown from /data/workspace/workspace/wdmcserver_stable/src/util/Socket.cpp, line 403
2016-04-10T11:21:01.822200-03:00 di=NQQbWNid7v info wdmcserver: [7593:0x43d3f460] Error Broken pipe
Traceback:
thrown from /data/workspace/workspace/wdmcserver_stable/src/util/Socket.cpp, line 403
2016-04-10T11:21:43.437103-03:00 di=NQQbWNid7v info wdmcserver: [7593:0x43d3f460] Error Broken pipe
Traceback:
thrown from /data/workspace/workspace/wdmcserver_stable/src/util/Socket.cpp, line 403

apache server error log (selected lines), last time I booted and had an error

Sun Apr 10 02:26:22.342409 2016] [auth_digest:notice] [pid 4722] AH01757: generating secret for digest authentication …
[Sun Apr 10 02:26:23.422595 2016] [mpm_prefork:notice] [pid 4722] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1m configured – resuming normal opera
tions
[Sun Apr 10 02:26:23.423859 2016] [core:notice] [pid 4722] AH00094: Command line: ‘/usr/sbin/apache2’
df: /shares': No such file or directory df: no file systems processed df: /shares’: No such file or directory
df: no file systems processed
[Sun Apr 10 02:26:49.882299 2016] [mpm_prefork:error] [pid 4722] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestW
orkers setting
cat: /tmp/twonky_server: No such file or directory
[Sun Apr 10 02:27:48.709398 2016] [mpm_prefork:notice] [pid 4722] AH00171: Graceful restart requested, doing restart
[Sun Apr 10 02:27:49.384065 2016] [auth_digest:notice] [pid 4722] AH01757: generating secret for digest authentication …
[Sun Apr 10 02:27:49.872498 2016] [mpm_prefork:notice] [pid 4722] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1m configured – resuming normal opera
tions
[Sun Apr 10 02:27:49.872554 2016] [core:notice] [pid 4722] AH00094: Command line: ‘/usr/sbin/apache2’
getNewFirmwareUpgrade.sh: begin script: immediate
getNewFirmwareUpgrade.sh: http: //support.wdc.com/nas/list.asp?devtype=sq&devfw=04.04.02-105&devlang=eng&devsn=&auto=0&devid=*****
getNewFirmwareUpgrade.sh: begin script: immediate
getNewFirmwareUpgrade.sh: begin script: immediate
getNewFirmwareUpgrade.sh: http: //support.wdc.com/nas/list.asp?devtype=sq&devfw=04.04.02-105&devlang=eng&devsn=&auto=0&devid=*****
getNewFirmwareUpgrade.sh: http: //support.wdc.com/nas/list.asp?devtype=sq&devfw=04.04.02-105&devlang=eng&devsn=&auto=0&devid=*****
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
[Sun Apr 10 02:34:31.535931 2016] [core:notice] [pid 4722] AH00052: child pid 8211 exit signal Bus error (7)
getNewFirmwareUpgrade.sh: begin script: immediate
getNewFirmwareUpgrade.sh: http: //support.wdc.com/nas/list.asp?devtype=sq&devfw=04.04.02-105&devlang=eng&devsn=&auto=0&devid=*****
getNewFirmwareUpgrade.sh: begin script: immediate
getNewFirmwareUpgrade.sh: http: //support.wdc.com/nas/list.asp?devtype=sq&devfw=04.04.02-105&devlang=eng&devsn=&auto=0&devid=*****
cat: /tmp/dev_fw_upgrade_link: No such file or directory
cat: /tmp/dev_fw_upgrade_link: No such file or directory
cat: /tmp/dev_fw_upgrade_link: No such file or directory
[Sun Apr 10 03:54:08.695597 2016] [:error] [pid 10431] [client 192.168.2.166:59170] PHP Fatal error: Maximum execution time of 30 seconds exceeded
in /var/www/rest-api/api/Filesystem/includes/mediavolumemgr.inc on line 343, referer: http://192.168.2.45/UI/

Hello,

Have you tried reinstalling the app? If not, please try that.

Yes, I tried that with no success.

However, it is not an app problem, since the Dashboard is refusing connection after some time working.
Actually, Smartware is doing another backup in a USB connected portable HardDisk with no hassles,

Today the behavior is: app working, can see device, Dashboard not working, apache2 server running in the device.

Sorry to revive this topic, but I have a very similar issue. This just started after the latest Firmware upgrade. After rebooting I can get to the Dashboard, but after awhile In can’t. I get connection refused. I can still SSH into the MyCloud and my network shares all work.

2TB MyCloud, Windows 10 64 bit, Chrome browser.

What troubleshooting steps have you tried? Have you tried a 4 second reset or 40 system restore? Has the firmware been modified in any way via SSH? Was the My Cloud drive unbricked at any point in the past?

http://support.wdc.com/KnowledgeBase/answer.aspx?ID=13986

Haven’t tried any Trouble shooting. Not exactly sure how. I have taken some screen shots of the messages and some of the emailed alerts.

Next time it happens I’ll try some of the resets.

The firmware is completely stock and this device has never been bricked.

Only thing I see out of ordinary is that I get an email alert that media scan has stopped. Please restart device to continue media scan. However this appears unrelated to the Connection refused message as I can still access the dashboard.

"Event title:Media Scan Stopped

Event description:The device stopped scanning your media. As a result, some thumbnails will not display when you access it remotely. To resume scanning, please restart your WD My Cloud device.

Severity:Info

Event code:2300

Event time:07-02-2016 01:18:40 PM

Firmware version: 04.04.03-113"

Well, it happened again. I tried 4 second reset but nothing happened. Light stays blue,

I notice that apache doesn’t appear to be running as the OP mentioned. Could sdomeone tell me the command to start apache.

I am ssh’d into mycloud and running top command. Here is a screen shot of that:

I found how to restart Apache2 and did. Now I can connect and log on to the dashboard. There appears to be an issue with apache.

Still having this problem. This all started after the latest firmware upgrade. Just saying.

I have a gen 1 2TB mycloud. When I restart apache2 things usually start working eventually.

I’ve reviewed the apache2 error log and the only thing I see as an error is:‘server reached MaxRequestWorkers setting’.

Anyone think this is the problem?
If so why?
Should I increase ‘MaxRequestWorkers’ setting?

MaxRequestWorkers is set to 10. The usual apache default is 150. I wonder if the last Firmware upgrade changed this.

Suggests it may not be the setting at fault, but simply poor performance causing a backlog.

“simply poor performance” LOL.

Anyway, I increased the parameter to 150. Will monitor and report back.

I suppose I should see what “apps” are running and see if they have anything in the slow log. I’ve been away from Linux for awhile, but am remembering more and more as I work through MyCloud issues.

Update: OK, after I increased the parameter I still had issues. However Saturday (Aug6) I wanted to watch some movies and turned on Twonky. I had it set to not stream. I had to restart apache2 first.

Today apache2 is still running and response via the web interface is excellent.

I’m now thinking that perhaps Twonky was the problem. I’m going to leave things as they are for a few days and then stop Twonky from streaming and see if the problem re-occurs.

I reviewed that link you posted but the referenced locations /srv/users … doesn’t exist on MyCloud.

apache2 still stops sometimes. I’ve been having real issues with my MyCloud in regards to performance. Rebooted again today as usage as shown via top command was really high. See picture:

.

I also changed the max request parm back to its initial setting of 10.

I’ve also had an issue with tacking forever to acknoledge the mounting of a USB hard drive. Perhaps I should open a new thread on this.

OK, it’s been awhile. No problems since I turned off DLNA. I had seen some messages in apache2 error log about or from Twonky. Sorry don’t still have the logs.

Performance is still hit or miss. If media scanning is happening it still takes forever to access dashboard.

HI there High_Sierra - can you tell me how you are restarting the apache process? When I try it I get this:

WDMyCloud:~# /etc/init.d/apache2 start
22120 (process ID) old priority 0, new priority 0
[…] Starting web server: apache2num_certs=1
failed!

I’ve been rebooting the whole wdmycloud every time apache crashes but that takes forever each time.

Also I don’t think I ever had DLNA turned on. I would like to check but I think it is in the web interface - do you know a shortcut to check this through the ssh interface?

i’ve been regularly killing the two cpu hog processes:

WDMyCloud:~# /bin/sh /etc/init.d/wdphotodbmergerd stop
[ ok ] Stopping wdphotodbmerger: wdphotodbmerger.
WDMyCloud:~# /bin/sh /etc/init.d/wdmcserverd stop
[ ok ] Stopping wdmcserver: wdmcserver.

and I think my wonky server is turned off too. I don’t see it in my unix top command. I recently updated the firmware - current version is : 04.04.04-101

appreciate any tips

I use the command: /etc/init.d/apache2 start

or: /etc/init.d/apache2 restart

Both seem to work. I usually check with “top” to see if apache2 is running. I’ve never had any errors. I don’t have the 2 cpu hog resources stopped.

What version of firmware are you using?

1 Like

I would ask why is wdnotifier and upnp_nas_device using so much cpu time? One thing that wdnotifier does is to
indicate that a USB device has been detected. Is there any USB devices connected to the network outside of the MY Cloud?

I have no idea why they use so much CPU. I have no usb device connected to my Mycloud and none connected to my network…