Page 1 of 2

SOLVED:Can't Connect to HDA Dashboard after Rebooting Server

Posted: Fri Dec 27, 2013 9:11 am
by galoisienne2
I rebooted my server (after running it uninterrupted without any problems) for the first time in 50+ days.

I'm somewhat surprised b/c I've done this before: When I first installed Amahi back in early November, I rebooted the thing and logged into it several times without much difficulty. Just testing it back then. The last reboot was on November 3, when I shut everything down to physically move my server from one room to its final working location, connecting it to another cable. No problem doing it then, which makes the current situation somewhat surprising.

Here's what I know:

1) My control panel shows my server is running. Green status: "running"

2) My DLNA works. I can access video files on the standard shares via my TV

3) I've turned off and turned back on again my router (Apple Time Machine)

4) I can log into my server via terminal with remote laptops navigate around the various subdirectories, etc.

(5) I can connect, via my Mac's Finder Window, and see my shares. I can click on video files and watch them, etc.

(6) However, I cannot connect via web browser (and via "curl" command) to my hda dashboard -- i.e., to "http://hda/" Safari tells me it cant connect to the server. Similarly, I can't connect to my mediawiki.

(7) My hda has always been located on 10.0.1.10. SInce the beginning (early November), I've always had my DNS setting point to that address on my Time Machine's network settings. That was based on some Amahi forum advice I read in one of the Amahi forums regarding how to handle the idiosyncratic Apple-type routers . Based on that advice I was able to be succesful by not touching DHCP settings, but instead just pointing DNS to the right place. In trying to solve today's problem, I've tried pointing and "un-pointing" DNS to 10.0.1.10, but not helping.

8) Here's some network trouble shooting results: (basically, pinging hda, router, etc. All succeeded except for "curl hda"

ssh pkad@hda
pkad@hda's password:
Last login: Fri Dec 27 10:43:10 2013 from 10.0.1.16
[pkad@localhost ~]$ ping hda
PING hda.amahi.net (10.0.1.10) 56(84) bytes of data.
64 bytes from hda.amahi.net (10.0.1.10): icmp_seq=1 ttl=64 time=0.044 ms
64 bytes from hda.amahi.net (10.0.1.10): icmp_seq=2 ttl=64 time=0.072 ms
^C
--- hda.amahi.net ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.044/0.058/0.072/0.014 ms
[pkad@localhost ~]$ ping router
PING router.amahi.net (10.0.1.1) 56(84) bytes of data.
64 bytes from router.amahi.net (10.0.1.1): icmp_seq=1 ttl=255 time=0.387 ms
64 bytes from router.amahi.net (10.0.1.1): icmp_seq=2 ttl=255 time=0.230 ms
^C
--- router.amahi.net ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.230/0.308/0.387/0.080 ms
[pkad@localhost ~]$ ping 68.180.206.184
PING 68.180.206.184 (68.180.206.184) 56(84) bytes of data.
64 bytes from 68.180.206.184: icmp_seq=1 ttl=51 time=97.1 ms
64 bytes from 68.180.206.184: icmp_seq=2 ttl=51 time=97.6 ms
^C
--- 68.180.206.184 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 97.147/97.396/97.645/0.249 ms
[pkad@localhost ~]$ ping yahoo.com
PING yahoo.com (206.190.36.45) 56(84) bytes of data.
64 bytes from ir1.fp.vip.gq1.yahoo.com (206.190.36.45): icmp_seq=1 ttl=46 time=187 ms
64 bytes from ir1.fp.vip.gq1.yahoo.com (206.190.36.45): icmp_seq=2 ttl=46 time=120 ms
^C
--- yahoo.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 120.385/154.061/187.738/33.678 ms
[pkad@localhost ~]$ curl http://hda
curl: (7) Failed connect to hda:80; Connection refused
[pkad@localhost ~]$ curl 10.0.1.10
curl: (7) Failed connect to 10.0.1.10:80; Connection refused

9) Here is an arp command from my local laptop (no SSH into the server here) which is connected via wifi
picklebarrel$ arp -a
router.amahi.net (10.0.1.1) at 0:26:bb:6c:83:d7 on en0 ifscope [ethernet]
? (10.0.1.2) at 0:e:58:d0:94:5c on en0 ifscope [ethernet]
? (10.0.1.5) at 0:e:58:77:72:80 on en0 ifscope [ethernet]
? (10.0.1.6) at 0:e:58:77:71:68 on en0 ifscope [ethernet]
hda.amahi.net (10.0.1.10) at 0:1e:68:b4:cb:4 on en0 ifscope [ethernet]
sonoszp.amahi.net (10.0.1.187) at 0:e:58:3e:7f:e6 on en0 ifscope [ethernet]
wii.amahi.net (10.0.1.231) at 0:25:a0:7a:c3:e7 on en0 ifscope [ethernet]
? (10.0.1.255) at ff:ff:ff:ff:ff:ff on en0 ifscope [ethernet]

10) Here is the nslookup command from the same local laptop (again, no SSH into the server here):
picklebarrel$ nslookup hda
Server: 10.0.1.10
Address: 10.0.1.10#53

Name: hda
Address: 10.0.1.10

11) Oddly enough, surprised actually, when I ssh into the server I get an "command not found" error for "nslookup hda":
[pkad@localhost ~]$ nslookup hda
-bash: nslookup: command not found

I'd greatly appreciate any advice. Have been at in now for the last few hours. Running out of ideas. I've tried following the various troubleshooting steps related to install, but not able to reconnect to my HDA dashboard, mediawiki, etc.

Thanks !

Re: Can't Connect to my HDA Dashboard after Rebooting Server

Posted: Fri Dec 27, 2013 10:06 am
by bigfoot65
Check out this bug to see if it applies.
https://bugs.amahi.org/issues/1231

Check the httpd log file for errors as well.

Re: Can't Connect to my HDA Dashboard after Rebooting Server

Posted: Fri Dec 27, 2013 11:03 am
by galoisienne2
Thanks. I'm reading thru that bug link now. However, I also ran the following and evidently, there are some errors. Not sure at present if this helps, but here it is:

[pkad@localhost /]$ httpd
httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.modules.d/10-php.conf: Cannot load modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: symbol SSLeay_version, version OPENSSL_1.0.1 not defined in file libcrypto.so.10 with link time reference

[pkad@localhost /]$ service httpd status
Redirecting to /bin/systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: failed (Result: exit-code) since Fri 2013-12-27 12:44:36 EST; 59s ago
Process: 4046 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=1/FAILURE)
Process: 4044 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)

Dec 27 12:44:36 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
Dec 27 12:44:36 localhost.localdomain httpd[4044]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.modules.d/10-php.conf: Cannot loa...ime reference
Dec 27 12:44:36 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Dec 27 12:44:36 localhost.localdomain httpd[4046]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.modules.d/10-php.conf: Cannot loa...ime reference
Dec 27 12:44:36 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
Dec 27 12:44:36 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Dec 27 12:44:36 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.

Re: Can't Connect to my HDA Dashboard after Rebooting Server

Posted: Fri Dec 27, 2013 11:27 am
by bigfoot65
Yes that is the error the bug addresses. If you do the update to the file specified and restart httpd, it should clear it up.

Re: Can't Connect to my HDA Dashboard after Rebooting Server

Posted: Fri Dec 27, 2013 11:39 am
by galoisienne2
All is well. I was reading that post from last week when you sent me the corresponding bug link. Thank you very much. I've been wresting with this since 630 EST ! Specifically I ran the online yum command posted there, and just rebooted my clients. How do I restart httpd ?

Re: Can't Connect to my HDA Dashboard after Rebooting Server

Posted: Fri Dec 27, 2013 11:51 am
by bigfoot65
No problem. to restart httpd, do this as root user:

Code: Select all

systemctl restart httpd.service systemctl status httpd.service
The second command should show it as running if all went well.

Re: Can't Connect to my HDA Dashboard after Rebooting Server

Posted: Fri Dec 27, 2013 11:56 am
by galoisienne2
Thanks again.

Here are the results:
[root@localhost ~]# systemctl restart httpd.service
[root@localhost ~]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: active (running) since Fri 2013-12-27 13:54:47 EST; 23s ago
Process: 6026 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS)
Main PID: 6038 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: name=systemd:/system/httpd.service
├─6038 /usr/sbin/httpd -DFOREGROUND
├─6057 PassengerWatchdog
├─6060 PassengerHelperAgent
├─6062 Passenger spawn server
├─6067 PassengerLoggingAgent
├─6072 /usr/sbin/httpd -DFOREGROUND
├─6073 /usr/sbin/httpd -DFOREGROUND
├─6075 /usr/sbin/httpd -DFOREGROUND
├─6076 /usr/sbin/httpd -DFOREGROUND
└─6077 /usr/sbin/httpd -DFOREGROUND

Re: Can't Connect to my HDA Dashboard after Rebooting Server

Posted: Fri Dec 27, 2013 11:58 am
by bigfoot65
No problem. Glad all is back to normal.

Re: SOLVED:Can't Connect to HDA Dashboard after Rebooting Se

Posted: Fri Dec 27, 2013 12:17 pm
by galoisienne2
Thanks very much again.

I just notice an database search issue with my Mediawiki, which I'm fairly certain was precipitated by this now-resolved server access issue, but whose discussion and solution is better placed in the Applications Fora, here:

viewtopic.php?f=26&t=5084

Re: SOLVED:Can't Connect to HDA Dashboard after Rebooting Se

Posted: Fri Dec 27, 2013 12:42 pm
by bigfoot65
You might wanna check the MediaWiki forums. Sounds like an issue with their software possibly. Also ensure all files in the mediawiki directory are owned by apache:users. That can cause issues if they are not.