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

re-starting container deletes all keys and certs #4

Open
domi-a opened this issue Sep 26, 2019 · 4 comments
Open

re-starting container deletes all keys and certs #4

domi-a opened this issue Sep 26, 2019 · 4 comments

Comments

@domi-a
Copy link

domi-a commented Sep 26, 2019

i start the container and everything works. client can connect.

stop the container and start it again.
directly after the start the folder /etc/openvpn/easy-rsa is deleted.
while all the keys and certificates are in there.
mounting the folder /etc/openvpn outside the container in a volume does not help.

i don't want to wait 40 mins every start nor copy the client.ovpn file to the client every start of the container

@ljishen
Copy link
Owner

ljishen commented Sep 30, 2019

Yes, it is indeed a problem. I have realized that but I don't have time to update the code. Just feel free to submit a pull request if you are willing to help!

@domi-a
Copy link
Author

domi-a commented Oct 1, 2019

i wanted to but i can't build the image.
i cloned the repo. to my rpi 3b. triedd to build the image, but at line/command 14 it gets an error.

it is at "RUN curl -fsSL0 https://install.pivpn.io -...................."
it throws error 255

there is no useful error output
im not shure how to proceed or debug

@ljishen
Copy link
Owner

ljishen commented Oct 6, 2019

If you familiar with debugging bash script, you can manually run:

$ INSTALLER=/tmp/install.sh
$ curl -fsSL0 https://install.pivpn.io -o "${INSTALLER}"
$ sed -i 's/debconf-apt-progress --//g' "${INSTALLER}"
$ sed -i '/systemctl start/d' "${INSTALLER}"
$ sed -i '/setStaticIPv4 #/d' "${INSTALLER}"
$ chmod +x "${INSTALLER}"
$ bash -x "${INSTALLER}" --unattended --reconfigure

Then you will see on which line the error occurs.

@RealHayo
Copy link

RealHayo commented Dec 8, 2019

I have the same problem.
I used your instruction and i want to let you know that the line:
$ bash -x "${INSTALLER}" --unattended --reconfigure
will open PIVPN setup screen (as you would know of course)
And the other lines did not give any error when executed.
When going through the whole set up process of the installer, everything works..

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

No branches or pull requests

3 participants