Page 1 of 1

SOLVED: Network trouble on clean install Amahi 7

Posted: Sat Aug 03, 2013 11:11 pm
by bellamatt
I just installed Amahi 7 on my server, but am having troubles with the network. httpd doesnt start cleanly on reboot (or on first boot for that matter):

Code: Select all

[root@server ~]# 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 Sun 2013-08-04 16:03:30 EST; 2min 36s ago Process: 601 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS) Process: 451 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Aug 04 16:03:30 server.home.gateway systemd[1]: Starting The Apache HTTP Server... Aug 04 16:03:30 server.home.gateway httpd[451]: AH00557: httpd: apr_sockaddr_info_get() failed for server.home.gateway Aug 04 16:03:30 server.home.gateway httpd[451]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, ...message Aug 04 16:03:30 server.home.gateway systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Aug 04 16:03:30 server.home.gateway httpd[601]: AH00557: httpd: apr_sockaddr_info_get() failed for server.home.gateway Aug 04 16:03:30 server.home.gateway httpd[601]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, ...message Aug 04 16:03:30 server.home.gateway httpd[601]: httpd (no pid file) not running Aug 04 16:03:30 server.home.gateway systemd[1]: Failed to start The Apache HTTP Server. Aug 04 16:03:30 server.home.gateway systemd[1]: Unit httpd.service entered failed state.
It works ok if I start manually. Any ideas on the problem? It's a clean install.

Re: Network trouble on clean install Amahi 7

Posted: Sat Aug 03, 2013 11:27 pm
by bellamatt
Secondary issue - on the network troubleshooter, the first instruction is to run "nslookup hda". nslookup isnt installed by default in the install - you need to install bind-utils to make it work. I understand that Amahi 7 doesnt use bind any more - I think the equivalent is "dig hda"?

edit: dig is not installed by default either. I just installed bind-utils.

Re: Network trouble on clean install Amahi 7

Posted: Sun Aug 04, 2013 12:47 am
by bellamatt
update - I installed the Plex app and it seems to have fully broken httpd - the service won't start manually now after restarts. Status gives the same errors as before, none of which are particularly helpful. Since httpd isnt working I can't roll back Plex to get it going again. Help! In case it's useful, here's the results of my network troubleshooter http://sprunge.us/TJjU - you can see that it was working for a short time until the Plex app was being installed.

Re: Network trouble on clean install Amahi 7

Posted: Sun Aug 04, 2013 6:36 am
by bigfoot65
Sounds like maybe the install was not successful. Recommend you check the log for errors. I think it's located in /tmp or /root directory.

Also the Plex app is not LIVE for Fedora 19. We are still trying to work out some issues with apps. There are only a few LIVE at the moment.

Re: Network trouble on clean install Amahi 7

Posted: Sun Aug 04, 2013 9:49 am
by bellamatt
I managed to get the httpd service working, not sure if the fix is proper but seems ok so far. I googled error code "AH00016: Configuration Failed" from my httpd error log, and tried post 8 from this Fedora forum post
I had the very same problem and solved it changing the content of /etc/hostname to "localhost" as well as putting "localhost" in the "ServerName" option in /etc/httpd/conf/httpd.conf
Did that, and httpd starts nicely. Plex is also working after reinstallation. Not sure why this works but hopefully it helps others debug!