-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[email protected] failed because the control process exited with error code. #1214
Comments
Getting the same issue here, failing with:
There is a simple solution to this problem: sudo chown -R openvpn:network /etc/openvpn/* if it doesn't work do this: |
I have the same issue on arch with only the default options |
Same here on Arch Linux. I tried everything even to downgrade Openvpn with no success. |
The problem is here on a clean Arch installation. I can't find a way to fix it. I installed Linux Mint and it's working fine. Very strange... |
When I start it like this: I tried different solutions from the web for the "Cannot pre-load keyfile (tls-crypt.key)" error but nothing helps. If I start it with: |
Just intsalled Manjaro - still the same error. |
I had a similar issue with the tls-crypt.key file and have modified the /etc/openvpn/server.conf file to use absolute paths to some of the files:
|
Thank you but it doesn't work for me: |
Can you show me the latest error from:
|
Here is my attempt for a workaround on Arch: $ curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh First remove any previous installation with the 3rd option. $ sudo ./openvpn-install.sh The only thing I am changing from the defaults is the custom port on which to have the vpn server listening. I get this error, same as you do:
Then, I inspect the error:
So now I fix the permission denied errors with: I restart the server and observer journalctl again: [anton@archlinux ~]$ journalctl -u [email protected] -n 15
Now, to fix the capabilities errors, I run: $ sudo systemctl restart openvpn-server@server And now when I run journalctl, all looks good:
Now I can finally connect to the openvpn server successfully :) Hope this can help you as well. |
Here it is:
Yes, it's working! Thank you very much!!! |
I now compared a bit more carefully all capabilities that the service is using and I see I might have missed one in my previous comment: CAP_IPC_LOCK
So I will set capabilities like that so the CAP_IPC_LOCK is also included:
|
Thank you for your splendid work :) |
===========solution============ note- make sure user is root |
holyyy, thank you so much my man! |
Hello
Running the latest version of script on debian debian-12.5.0-amd64. Script with all default setting except for port, port is free on the system, Unable to start openvpn Job for [email protected] failed because the control process exited with error code.
"journalctl -xe" showing:
Mar 25 20:48:41 MN openvpn[184094]: Options error: In [CMD-LINE]:1: Error opening configuration file: server.conf
Mar 25 20:48:41 MN openvpn[184094]: Use --help for more information.
Mar 25 20:48:41 MN systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit [email protected] has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Mar 25 20:48:41 MN systemd[1]: [email protected]: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit [email protected] has entered the 'failed' state with result 'exit-code'.
Mar 25 20:48:41 MN systemd[1]: Failed to start OpenVPN service for server.
░░ Subject: A start job for unit [email protected] has failed
In other places showing error opening configration file, nothing has been done manually but all of the script.
Any help?
Regards
Hassan
The text was updated successfully, but these errors were encountered: