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

can't stat '/etc/openvpn/config/easy-rsa.vars': No such file or directory #14

Open
singhragvendra503 opened this issue Feb 10, 2024 · 5 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@singhragvendra503
Copy link

openvpn |
openvpn | Notice
openvpn | ------
openvpn | 'init-pki' complete; you may now create a CA or requests.
openvpn |
openvpn | Your newly created PKI dir is:
openvpn | * /usr/share/easy-rsa/pki
openvpn |
openvpn | Using Easy-RSA configuration:
openvpn | * undefined
openvpn |
openvpn | cp: can't stat '/etc/openvpn/config/easy-rsa.vars': No such file or directory

@leginreklaw
Copy link

I can confirm this issue also

@d3vilh d3vilh self-assigned this Mar 22, 2024
@d3vilh
Copy link
Owner

d3vilh commented Mar 22, 2024

Hi @singhragvendra503 @leginreklaw,
what container version are you guys using (docker inspect --format='{{json .Config.Labels}}' d3vilh/openvpn-server:latest)? Does it fail to create PKI?

Some of the old versions has this issue but it was fixed in "0.5.1".
Could you share the console log of the installation? Would help a lot.

@d3vilh d3vilh added the help wanted Extra attention is needed label Mar 22, 2024
@m61x
Copy link

m61x commented Mar 30, 2024

I have the same error and am using 0.5.1

root@vps0:~/vpn# docker compose up -d
[+] Running 2/3
 ⠙ Network vpn_default   Created                                                                                                     0.2s
 ✔ Container openvpn     Started                                                                                                     0.2s
 ✔ Container openvpn-ui  Started                                                                                                     0.1s
root@vps0:~/vpn# docker logs 826907c6aa9503428ffb7a72b9145fa856fd958cb8ca6f2bf273e0fae181f505
EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
Setting up public key infrastructure...

Notice
------
'init-pki' complete; you may now create a CA or requests.

Your newly created PKI dir is:
* /usr/share/easy-rsa/pki

Using Easy-RSA configuration:
* undefined

cp: can't stat '/etc/openvpn/config/easy-rsa.vars': No such file or directory

root@vps0:~/vpn# docker inspect --format='{{json .Config.Labels}}' d3vilh/openvpn-server:latest
{"maintainer":"Mr.Philipp <d3vilh@github.com>","version":"0.5.1"}

@m61x
Copy link

m61x commented Mar 30, 2024

I found a workaround. To resolve the issue, follow these steps:

  1. Access the easy-rsa.vars file in the GitHub repository.
  2. Manually copy this file into the designated configuration folder. (/etc/openvpn/config/)
  3. Once the file is in place, the problem should be resolved.

@Kubion70
Copy link

I found a workaround. To resolve the issue, follow these steps:

  1. Access the easy-rsa.vars file in the GitHub repository.
  2. Manually copy this file into the designated configuration folder. (/etc/openvpn/config/)
  3. Once the file is in place, the problem should be resolved.

Worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants