OpenVPN not starting

uumickey
Posts: 3
Joined: Sun Feb 09, 2014 9:42 am

OpenVPN not starting

Postby uumickey » Sun Feb 09, 2014 9:44 am

Hi, all.

I just got my Amahi system up and running. I purchased the OpenVPN app and installed it on the system, however, the service will not start. Every time I press Start or Restart in the web control panel it spins for a bit and then comes back with a red light, not running.

I can't find any logs that might tell me why it is refusing to start. Note, this is not connectivity related but just trying to start the process.

Any ideas on where I can look to see what's failing?

User avatar
bigfoot65
Project Manager
Posts: 11241
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN not starting

Postby bigfoot65 » Sun Feb 09, 2014 9:49 am

Hello,

The dashboard server may not be accurately reporting the status. Recommend you try this from the command line as root:

Code: Select all

systemctl status openvpn\@amahi.service
If it reports all is ok, then don't worry about the dashboard status for now. Would also request that you add your experience to this bug report.
https://bugs.amahi.org/issues/1204
ßîgƒσστ65
Applications Manager

User avatar
bigfoot65
Project Manager
Posts: 11241
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN not starting

Postby bigfoot65 » Sun Feb 09, 2014 11:34 am

BTW, it appears there is a permission issue that can be resolved by doing the following as root user:

Code: Select all

chmod 755 -R /var/run/openvpn
Once you do that, the server will show as running. We are working on a permanent solution as a reboot is likely to cause the issue to reappear.
ßîgƒσστ65
Applications Manager

uumickey
Posts: 3
Joined: Sun Feb 09, 2014 9:42 am

Re: OpenVPN not starting

Postby uumickey » Sun Feb 09, 2014 6:00 pm

Thank you for the advice. I did this and there doesn't appear to be any change:

Code: Select all

[root@localhost ~]# chmod 755 -R /var/run/openvpn [root@localhost ~]# systemctl status openvpn\@amahi.service openvpn@amahi.service - OpenVPN Robust And Highly Flexible Tunneling Application On amahi Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; disabled) Active: inactive (dead)
OpenVPN service still shows as down in the control panel. However, I notice from the startup scripts that it is looking for interface tun0. I don't have a tun0:

Code: Select all

[root@localhost ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:25:22:b3:79:6a brd ff:ff:ff:ff:ff:ff inet 192.168.XX.XXX/24 brd 192.168.11.255 scope global em1 valid_lft forever preferred_lft forever inet6 fe80::225:22ff:feb3:796a/64 scope link valid_lft forever preferred_lft forever
Suggestion? This is after a reboot, BTW.

User avatar
bigfoot65
Project Manager
Posts: 11241
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN not starting

Postby bigfoot65 » Sun Feb 09, 2014 6:20 pm

Hmmmm. Please add this to the bug:
https://bugs.amahi.org/issues/1204

Not sure what else you can do other than uninstall, reboot, then reinstall. We will have to take a look at the app to see what the problem could be once we have your input.

Please provide as many details as possible. Also check /var/log/amahi-app-installer.log for errors.
ßîgƒσστ65
Applications Manager

uumickey
Posts: 3
Joined: Sun Feb 09, 2014 9:42 am

Re: OpenVPN not starting

Postby uumickey » Sun Feb 09, 2014 7:25 pm

Aha! I shoulda looked at the bug report earlier :)

As stated in the bug:

Code: Select all

cd /lib/systemd/system cp openvpn\@.service openvpn\@amahi.service systemctl --system daemon-reload systemctl restart openvpn\@amahi.service
Got the service to start. I will install a client in the morning and see if I can connect.

Thanks for the assist.

User avatar
bigfoot65
Project Manager
Posts: 11241
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN not starting

Postby bigfoot65 » Sun Feb 09, 2014 7:48 pm

Glad it is working for you now. Hopefully it will stay after reboot as well.

Please let us know if all is working correctly and update the bug accordingly.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 1 guest