-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
The file '/etc/openvpn/vars' was not found #608
Comments
Same thing happened to me. |
for the dummies like me
|
The issue is about kylemanna/openvpn:latest |
Workaround here #605 (comment) |
The same also happing to me, will try @joeky888 reference |
using 2.3 works |
hmmm, I can get the image running by using the 2.3 tag, but upon trying to create a client:
|
@kylemanna hi, i've been using the 2.4 tag from dockerhub for months now without any problem. I see now that you overwrote the 2.4 tag on dockerhub just 14 days ago. Are you aware of the problem described in this thread? |
@ebarault I'm not aware of what the problem remaining is. I fixed a number of issues most importantly the CI tests running on Tavis-CI. No issues are reported on the branch that docker tag points to: https://travis-ci.org/github/kylemanna/docker-openvpn/builds/741565318 Does the problem remain? Can you show me details like docker image hash + error? |
Pretty sure this is fixed, someone can let me know if it's not true. CI builds pass and they'd fail on this if it was a problem. |
Hi Kyle, Thanks a lot for the hard work on this project. I was finding a similar issue with a fork of your repo, but it seems to be an issue with EasyRSA, not any of your binaries. It's fixable by running the bash /usr/local/bin/easyrsa_vars export > /etc/openvpn/vars
bash /usr/local/bin/ovpn_initpki Picked up from references below: StackOverflow Hopefully this should point people having the same issue towards the right direction. I haven't inspected your code yet to see if this is referenced anywhere and if it's skipped somehow. Cheers! |
I understand this was an issue, but I've updated many thing to resolve things like this. Can anyone show me the exact steps to reproduce this on any Docker Hub hosted image (must include hash of image)? The Travis-CI builds work fine with new images and I'm convinced this problem was resolved sometime ago until someone can show me more. |
Hi @kylemanna |
@ebarault I don't see anything like that. Here's my console:
|
Why is this issue closed? Just checked back, the problem is still there. @kylemanna here are the images loaded on my computer: veeveisb@veeveisb-OptiPlex-7010:~/Desktop$ docker inspect kylemanna/openvpn:latest | jq '.[0].Id'
"sha256:d5a2586f86e0d3aff02efc8abc147a1e784c5ef7a8b8a0940ba03faa0d11b6fa"
veeveisb@veeveisb-OptiPlex-7010:~/Desktop$ docker inspect kylemanna/openvpn:2.4 | jq '.[0].Id'
"sha256:4fa457dfce432adb384a04f268cd4b9b73b5d1f660e857a114a2505bbd71ef6e"
veeveisb@veeveisb-OptiPlex-7010:~/Desktop$ docker inspect kylemanna/openvpn:2.3 | jq '.[0].Id'
"sha256:f0a0813c5240026ec823d5aab4393f4674cac553fe1f2a7004e8b3dc4bf1ad01"
Following are the results of creating a client using different image tags:
As you can see only the image with the tag |
* This exists to import/export a number of easy-rsa default values but creates headaches for old volumes due to changes where easy-rsa insists on loading the var file if the environment variable is set. * Going forward people should pass the variables via: `docker run -e EASYRSA_var ...` or * Closes #608
@RafayAK thanks for sharing, now I understand what's going wrong. Can you build the dev image and test it?
Then run the same command replacing |
I'll try this tonight. |
@kylemanna This seems to do the trick! I created an image as you suggested: Ran the command: docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm -it openvpn-test easyrsa build-client-full $CLIENTNAME nopass Now just to check if revocation and removal of a generated client key passes I also ran this command: docker run --rm -it -v $OVPN_DATA:/etc/openvpn openvpn-test ovpn_revokeclient ${CLIENTNAME} remove The output looks like this as follows: This output is slightly different when compared to docker run --rm -it -v $OVPN_DATA:/etc/openvpn kylemanna/openvpn:2.3 ovpn_revokeclient ${CLIENTNAME} remove The last 3 lines which show what files were removed is not showing, probably not a big deal though. PS. Let me know if you need me to run anymore tests |
@RafayAK thanks for testing, I'll merge |
* This exists to import/export a number of easy-rsa default values but creates headaches for old volumes due to changes where easy-rsa insists on loading the var file if the environment variable is set. * Going forward people should pass the variables via: `docker run -e EASYRSA_var ...` * Closes kylemanna#608
Looks like kylemanna/openvpn:latest is broken. Also kylemanna/openvpn:2.3 works fine.
The text was updated successfully, but these errors were encountered: