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

'./openvpn-install.sh: line 248: openvpn: command not found' on centos8.1 #762

Closed
AlexanderJi opened this issue May 25, 2020 · 4 comments
Closed

Comments

@AlexanderJi
Copy link

OpenVPN installation is ready to begin.
Press any key to continue...
Last metadata expiration check: 2:43:50 ago on Mon 25 May 2020 04:22:51 PM CST.
Package epel-release-8-8.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 2:43:51 ago on Mon 25 May 2020 04:22:51 PM CST.
Package openssl-1:1.1.1c-2.el8_1.1.x86_64 is already installed.
Package ca-certificates-2019.2.32-80.0.el8_1.noarch is already installed.
Package tar-2:1.30-4.el8.x86_64 is already installed.
No match for argument:
Error: Unable to find a match

init-pki complete; you may now create a CA or requests.
Your newly created PKI dir is: /etc/openvpn/server/easy-rsa/pki

Using SSL: openssl OpenSSL 1.1.1c FIPS 28 May 2019
Generating RSA private key, 2048 bit long modulus (2 primes)
...............+++++
.......................................................................+++++
e is 65537 (0x010001)

Using SSL: openssl OpenSSL 1.1.1c FIPS 28 May 2019
Generating a RSA private key
....................+++++
........................................................+++++
writing new private key to '/etc/openvpn/server/easy-rsa/pki/easy-rsa-4637.Ag3jek/tmp.doPW7J'

Using configuration from /etc/openvpn/server/easy-rsa/pki/easy-rsa-4637.Ag3jek/tmp.w8gdtz
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName :ASN.1 12:'server'
Certificate is to be certified until May 23 11:06:45 2030 GMT (3650 days)

Write out database with 1 new entries
Data Base Updated

Using SSL: openssl OpenSSL 1.1.1c FIPS 28 May 2019
Generating a RSA private key
....+++++
...........................+++++
writing new private key to '/etc/openvpn/server/easy-rsa/pki/easy-rsa-4758.FLOXFl/tmp.d20Jtz'

Using configuration from /etc/openvpn/server/easy-rsa/pki/easy-rsa-4758.FLOXFl/tmp.rgc6QC
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName :ASN.1 12:'test'
Certificate is to be certified until May 23 11:06:45 2030 GMT (3650 days)

Write out database with 1 new entries
Data Base Updated

Using SSL: openssl OpenSSL 1.1.1c FIPS 28 May 2019
Using configuration from /etc/openvpn/server/easy-rsa/pki/easy-rsa-4854.f7n76C/tmp.M2UeH6

An updated CRL has been created.
CRL file: /etc/openvpn/server/easy-rsa/pki/crl.pem

./openvpn-install.sh: line 248: openvpn: command not found
success
success
success
success
success
success
Failed to enable unit: Unit file openvpn-server@server.service does not exist.
sed: can't read /etc/openvpn/server/tc.key: No such file or directory

Finished!

The client configuration is available in: /root/test.ovpn
New clients can be added by running this script again.

@Nyr
Copy link
Owner

Nyr commented May 25, 2020

Weird, looks like the OpenVPN package is not getting installed.

What is your hosting provider?

@Nyr Nyr closed this as completed May 25, 2020
@Nyr Nyr reopened this May 25, 2020
@AlexanderJi
Copy link
Author

Weird, looks like the OpenVPN package is not getting installed.

What is your hosting provider?
The the OpenVPN package is actually not getting installed, I tried to run 'yum install -y openvpn' first and reexecute script,it works now. Thks!

@Nyr
Copy link
Owner

Nyr commented May 25, 2020

I still would like to know who is the hosting provider, where is this server hosted.

@Nyr Nyr closed this as completed May 25, 2020
Nyr added a commit that referenced this issue May 25, 2020
Variables which can be empty, shouldn't be quoted in this situation.
@Nyr
Copy link
Owner

Nyr commented May 25, 2020

This was a recently introduced bug. A small change meant that we were passing empty arguments to dnf and it refused to install anything.

This has now been fixed.

fairyhunter13 added a commit to fairyhunter13/openvpn-install that referenced this issue Jul 12, 2020
Variables which can be empty, shouldn't be quoted in this situation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants