Skip to content
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

[Bug]: Script not working with Ubuntu 22 LTS #1026

Closed
4 tasks done
NaXal opened this issue Aug 22, 2022 · 6 comments
Closed
4 tasks done

[Bug]: Script not working with Ubuntu 22 LTS #1026

NaXal opened this issue Aug 22, 2022 · 6 comments

Comments

@NaXal
Copy link

NaXal commented Aug 22, 2022

Make sure your check these beforehand!

Server OS

Ubuntu 22 LTS

OpenVPN version

2.5.0

Client

Ubuntu 22 LTS

What is the bug?

Hello,

I have used this script flawlessly with Ubuntu 20 LTS images deployed in AWS / Linode / DigitalOcean. It still works flawlessly but with Ubuntu 22 LTS images deployed at those locations, this script is not starting the OpenVPN after reboot.

Server is not showing OpenVPN NIC or the server IP address

Further, status of OpenVPN is showing "active (exited)"

02

How do I fix this?

Please help troubleshooting it.

Thanks.

Relevant log output

C:\Windows\system32>ssh root@xxx.xxx.xxx.130
root@xxx.xxx.xxx.130's password:
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-46-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Aug 22 11:27:17 PM IST 2022

  System load:           0.46630859375
  Usage of /:            13.6% of 24.04GB
  Memory usage:          16%
  Swap usage:            0%
  Processes:             102
  Users logged in:       0
  IPv4 address for eth0: xxx.xxx.xxx.130
  IPv6 address for eth0: xxx:xxx::fxxxc:9xxx:fxxxc:9xxx


0 updates can be applied immediately.


Last login: Mon Aug 22 23:23:14 2022 from xxx.xxx.xxx.158
root@localhost:~# systemctl status openvpn
● openvpn.service - OpenVPN service
     Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
     Active: active (exited) since Mon 2022-08-22 23:26:23 IST; 6min ago
    Process: 626 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 626 (code=exited, status=0/SUCCESS)
        CPU: 1ms

Aug 22 23:26:23 localhost systemd[1]: Starting OpenVPN service...
Aug 22 23:26:23 localhost systemd[1]: Finished OpenVPN service.
root@localhost:~#
@zefir-git
Copy link

Same here.

Consider setting groups/curves preference with tls-groups instead of forcing a specific curve with ecdh-curve.
Note: Treating option '--ncp-ciphers' as  '--data-ciphers' (renamed in OpenVPN 2.5).
Options error: --ca fails with 'ca.crt': No such file or directory (errno=2)
Options error: --cert fails with 'server_nWei2rYEpgaWYlVd.crt': No such file or directory (errno=2)
WARNING: cannot stat file 'server_nWei2rYEpgaWYlVd.key': No such file or directory (errno=2)
Options error: --key fails with 'server_nWei2rYEpgaWYlVd.key': No such file or directory (errno=2)
Options error: --crl-verify fails with 'crl.pem': No such file or directory (errno=2)
Options error: Please correct these errors.
Use --help for more information.
openvpn@server.service: Main process exited, code=exited, status=1/FAILURE

@AR45H
Copy link

AR45H commented Nov 26, 2022

Any fix for this issue?

@Lboylphd
Copy link

Got the same Problem

@angristan
Copy link
Owner

angristan commented Jan 21, 2023

Duplicate of #1000

@angristan angristan marked this as a duplicate of #1026 Jan 21, 2023
@angristan angristan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2023
@zefir-git
Copy link

Duplicate of #1026

this is #1026

@angristan
Copy link
Owner

Sorry, I meant #1000

@angristan angristan marked this as a duplicate of #1000 Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants