Page 1 of 4

RESOLVED: OpenVPN ALS installation broke server

Posted: Thu Feb 27, 2014 2:50 am
by intellected
Hi all,

I have been playing with the Amahi server for a short period now. Yesterday I bought and installed OpenVPN ALS.

Immediatly after installation I lost connection with my server and the dashboard was not accesable nor could I login trough SSH.

After a reboot, I went to http://HDA/ internally and got directed to the Adito login page which is on port 4443, so this made me think something was wrong.

I googled and found little help, there was just one person who also had this and with him it was solved after stopping the Adito service trough SSH and restart the httpd service on the server.

Code: Select all

# service httpd restart Redirecting to /bin/systemctl restart httpd.service Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
I tried that but when I try to restart the httpd service it gives me a failure, stopping the service doesnt work neither. So I am stuck now with the Adito VPN login screen and cant connect to the HDA dashboard.

Code: Select all

# 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 Thu 2014-02-27 13:02:32 CET; 22s ago Process: 22116 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited , status=1/FAILURE) Process: 22115 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, s tatus=1/FAILURE) Feb 27 13:02:32 intellected-server.lan systemd[1]: Starting The Apache HTTP S... Feb 27 13:02:32 intellected-server.lan httpd[22115]: httpd: Syntax error on l... Feb 27 13:02:32 intellected-server.lan systemd[1]: httpd.service: main proces... Feb 27 13:02:32 intellected-server.lan httpd[22116]: httpd: Syntax error on l... Feb 27 13:02:32 intellected-server.lan systemd[1]: httpd.service: control pro... Feb 27 13:02:32 intellected-server.lan systemd[1]: Failed to start The Apache... Feb 27 13:02:32 intellected-server.lan systemd[1]: Unit httpd.service entered...
And after a yum -y update openssl

Code: Select all

Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * fedora: ftp.tudelft.nl * rpmfusion-free: mirror.nl.leaseweb.net * rpmfusion-free-updates: mirror.nl.leaseweb.net * updates: ftp.tudelft.nl No packages marked for update
Trying to install openSSL:

Code: Select all

Package 1:openssl-1.0.1e-37.fc19.x86_64 already installed and latest version Nothing to do
Check status again:

Code: Select all

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 Thu 2014-02-27 13:02:32 CET; 1min 58s ago Process: 22116 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=1/FAILURE) Process: 22115 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Feb 27 13:02:32 intellected-server.lan systemd[1]: Starting The Apache HTTP Server... Feb 27 13:02:32 intellected-server.lan httpd[22115]: httpd: Syntax error on line 56 of /etc...de Feb 27 13:02:32 intellected-server.lan systemd[1]: httpd.service: main process exited, code...RE Feb 27 13:02:32 intellected-server.lan httpd[22116]: httpd: Syntax error on line 56 of /etc...de Feb 27 13:02:32 intellected-server.lan systemd[1]: httpd.service: control process exited, c...=1 Feb 27 13:02:32 intellected-server.lan systemd[1]: Failed to start The Apache HTTP Server. Feb 27 13:02:32 intellected-server.lan systemd[1]: Unit httpd.service entered failed state.
Please help.

PS: Also the OpenVPN ALS app doesnt work like it should. It doesnt work because the certificate which comes with it is expired, so my sessions wont start.

Re: OpenVPN ALS installation broke server

Posted: Thu Feb 27, 2014 6:19 am
by bigfoot65
Sorry to hear you are having problems. I presume this is Amahi 7. Have you tried a reboot?

First thing I would do is stop the service. Next go to /etc/httpd/conf.d and look for the ####-adito.conf file and remove it. Then try restarting httpd service. Also if you could provide the full description of the httpd status message that would help too. It's cut off in your post.

If that works, then uninstall the app. Please file a bug report at https://bugs.amahi.org.

BTW, the expired certificate should have no affect on being able to access the app. You may see a warning it is expired, but most browsers will still allow access. What browser are you using? I have tested and works fine with Firefox.

Re: OpenVPN ALS installation broke server

Posted: Thu Feb 27, 2014 2:28 pm
by intellected
Hi, thanks for the relpy!
Yes this is a bit of a challenge.
I have tried several reboots and also what you suggested.
Deleted the adito conf file but I still cant restart the httpd service.

Code: Select all

[root@intellected-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 Thu 2014-02-27 22:26:39 CET; 3s ago Process: 13587 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=1/FAILURE) Process: 13586 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Feb 27 22:26:39 intellected-server.lan systemd[1]: Starting The Apache HTTP Server... Feb 27 22:26:39 intellected-server.lan httpd[13586]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf...pt_encode Feb 27 22:26:39 intellected-server.lan systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Feb 27 22:26:39 intellected-server.lan httpd[13587]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf...pt_encode Feb 27 22:26:39 intellected-server.lan systemd[1]: httpd.service: control process exited, code=exited status=1 Feb 27 22:26:39 intellected-server.lan systemd[1]: Failed to start The Apache HTTP Server. Feb 27 22:26:39 intellected-server.lan systemd[1]: Unit httpd.service entered failed state. [root@intellected-server ~]#

Re: OpenVPN ALS installation broke server

Posted: Thu Feb 27, 2014 2:55 pm
by bigfoot65
Have you applied the Fedora 19 updates? As root user do:

Code: Select all

yum update
Once they are finished, reboot for good measure.

Re: OpenVPN ALS installation broke server

Posted: Thu Feb 27, 2014 3:34 pm
by intellected
Yea, I was surfing the documentation on the website and stumbled upon a command to update fedora.
I dont exactly know if it was the same command as you stated but a bunch of files got updated.
And when I do 'yum update' now it says there are no packages to update.
So I gues Ive updated the same way you said.

The httpd service is running again and adito works too, but I get a 'apache' front page now when I got to http://hda instead of the dashboard.

Also the certificate problem is not because of the browser but because of java's security settings. Which I have adjusted so it works now. But when I make a web forward to http://hda/ I end up at a search engine and a message that 172.0.0.1 cant be reached. It may be because I am in internal lan now.

Re: OpenVPN ALS installation broke server

Posted: Thu Feb 27, 2014 3:52 pm
by bigfoot65
Yes and ensure you are only running one DHCP and DNS server. The router's should be turned off.

Re: OpenVPN ALS installation broke server

Posted: Fri Feb 28, 2014 2:21 pm
by intellected
Ok thanks so far but how do I get the dashboard back instead of the fedora test page which it shows now when I go the http://hda/ ?

Re: OpenVPN ALS installation broke server

Posted: Fri Feb 28, 2014 2:34 pm
by bigfoot65
Ok, so I guess that answers my question about DHCP/DNS. Did you clear your browser cache. Also try accessing it via IP Address. If that works, then it narrows it down a bit.

Re: OpenVPN ALS installation broke server

Posted: Fri Feb 28, 2014 4:28 pm
by intellected
Via IP same page.
Via DDNS same page.
The online control panel shows status stopped.
I can reach Adito login seperatly. So that also works.
I think my or a folder like that is empty,

I checked with
ls /var/www/html/
and it is empty...

Re: OpenVPN ALS installation broke server

Posted: Fri Feb 28, 2014 4:41 pm
by bigfoot65
Web apps are located in /var/hda/web-apps/appname.

Post a list of the /etc/httpd/conf.d directory as well. Maybe you are missing a file.