Git Product home page Git Product logo

Comments (6)

bnhf avatar bnhf commented on August 28, 2024

@Luccio96

Assuming you're using Portainer, what is showing at the end of your log after the container launches? For example, mine shows:

2023/04/08 13:10:43.943 [I] [asm_amd64.s:1581]  http server Running on http://:8080

Also what's showing, as far as the openvpn-admin-plus container is concerned, in the Containers section of Portainer?

screenshot-nuc10-pc2-2023 04 14-07_21_33

Is it possible that you already have something running on port 8080?

from openvpn-admin-plus.

lucamancusodev avatar lucamancusodev commented on August 28, 2024

Hi @bnhf

This is my logs:

2023-04-17T07:03:41.026873581Z TERM environment variable not set. 2023-04-17T07:03:41.064898127Z OpenVPN directory set to: /etc/openvpn 2023-04-17T07:03:41.064927584Z Working directory set to: /opt 2023-04-17T07:03:41.136755920Z PiVPN server set to: server_5WvzCbfmkb2jPw63 server_X194SFMGqcUxbZkB 2023-04-17T07:03:41.136869622Z Working directory set to: /opt/openvpn-gui-tap 2023-04-17T07:03:41.173742736Z sed: -e expression #1, char 97: unterminated s' command`

Here the containter, as it shows it's running and I don't have anything running on port 8080.

Senza titolo

from openvpn-admin-plus.

bnhf avatar bnhf commented on August 28, 2024

@Luccio96

Looks like you have an image that was pulled at the end of last year somehow. In Portainer - Stacks, use the slide switch that forces a new container to be pulled with the latest tag. So stop the stack, and then update the stack with the "Re-pull image and redeploy" option:

screenshot-raspberrypi10-2023 04 17-07_13_56

from openvpn-admin-plus.

lucamancusodev avatar lucamancusodev commented on August 28, 2024

@bnhf

I did it but still the same errors and the port is not listening, tried also to change the port...
As I see from Image info the created date is 2023-01-11, is there a newer one?

Screenshot 2023-04-17 alle 20 35 35

from openvpn-admin-plus.

bnhf avatar bnhf commented on August 28, 2024

@Luccio96

I missed it on first-look, but I believe the problem is here (from your logs):

PiVPN server set to: server_5WvzCbfmkb2jPw63 server_X194SFMGqcUxbZkB

You seem to have two values entered for server. Only a single OpenVPN server is supported, and this value needs to match what's being used as the server name, which in turn is the name used for the server certificate and key. If you're not sure what that is, look in your current /etc/openvpn/server.conf file, and there should be a couple of directives that look like this:

cert easy-rsa/pki/issued/NUC10-PC2_ae265e62-cd06-xxxx-4092-bd68-xxxxxxxxxxxx.crt
key easy-rsa/pki/private/NUC10-PC2_ae265e62-cd06-xxxx-4092-bd68-xxxxxxxxxxxx.key

The part including the server's name, but not including the extension, is what you want. So in the above example, the PIVPN_SERVER environment variable would be set to:

    PIVPN_SERVER=NUC10-PC2_ae265e62-cd06-xxxx-4092-bd68-xxxxxxxxxxxx

from openvpn-admin-plus.

lucamancusodev avatar lucamancusodev commented on August 28, 2024

@bnhf

That was the problem, after revoked the certificate the container started.

from openvpn-admin-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.