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

Release 1.7.4 returns 404 on amd64 #81

Closed
EugenMayer opened this issue Nov 18, 2021 · 5 comments · Fixed by #88
Closed

Release 1.7.4 returns 404 on amd64 #81

EugenMayer opened this issue Nov 18, 2021 · 5 comments · Fixed by #88
Assignees
Labels
bug Something isn't working
Milestone

Comments

@EugenMayer
Copy link

On amd64, using 1.7.4 (env based configuration) the service starts, but returns 404 in any case.

Using the same configuration (param based) on 1.7.3 does work without issues

@pashcovich
Copy link
Contributor

could you please provide me with your configuration so that I can check it myself?

@EugenMayer
Copy link
Author

either used

EASYRSA_PATH=/etc/openvpn/easy-rsa
OVPN_INDEX_PATH=/etc/openvpn/easy-rsa/pki/index.txt
OVPN_CCD_PATH=/etc/openvpn/ccd
OVPN_AUTH_DB_PATH=/etc/openvpn/easy-rsa/pki/users.db 

or

/usr/local/share/ovpn-admin/ovpn-admin --easyrsa.index-path=/etc/openvpn/easy-rsa/pki/index.txt --easyrsa.path=/etc/openvpn/easy-rsa --ccd.path=/etc/openvpn/ccd  --auth.db=/etc/openvpn/easy-rsa/pki/users.db

@EugenMayer
Copy link
Author

Maybe to add something to the priority here.

When i use the cli configuration way with 1.7.3 or 1.7.4

./ovpn-admin --easyrsa.index-path=/etc/openvpn/easy-rsa/pki/index.txt --easyrsa.path=/etc/openvpn/easy-rsa --ccd.path=/etc/openvpn/ccd  --auth.db=/etc/openvpn/easy-rsa/pki/users.db --ovpn.server=REDACTED.tld:1194:udp --ovpn.network='172.21.0.0/24' --templates.clientconfig-path=/etc/openvpn/clients/client.tpl --auth.password

In both cases the server starts, just with 1.7.3 i actually see the dashboard, while with 1.7.4 i do not.

If you cannot reproduce this, it most probably is related that you have build the binary version against you own static gcc/network libs.

In my case, i use a debian11 box. It should be enough for you to

docker run --rm -it debian:bullseye bash
apt update
apt install -y coreutils easy-rsa wget
wget https://github.com/flant/ovpn-admin/releases/download/1.7.4/ovpn-admin-linux-amd64.tar.gz
tar xf ovpn-admin-linux-amd64.tar.gz
./ovpn-admin --easyrsa.index-path=/etc/openvpn/easy-rsa/pki/index.txt --easyrsa.path=/etc/openvpn/easy-rsa --ccd.path=/etc/openvpn/ccd  --auth.db=/etc/openvpn/easy-rsa/pki/users.db --ovpn.server=REDACTED.tld:1194:udp --ovpn.network='172.21.0.0/24' --templates.clientconfig-path=/etc/openvpn/clients/client.tpl --auth.password

Sure, you will need to install an OpenVPN server or just use this with docker-compose and connect to one of yours. But this way you should detect that your binary is yet not really x-platform since you probably forgot some of the CGO flags.

Looking at https://github.com/flant/ovpn-admin/blob/master/build.sh#L9

you are missing -tags netgo

@pashcovich pashcovich self-assigned this Nov 25, 2021
@pashcovich pashcovich added the bug Something isn't working label Nov 25, 2021
@pashcovich pashcovich added this to the 1.7.5 milestone Nov 25, 2021
@pashcovich
Copy link
Contributor

@EugenMayer hi, could you please check if everything is ok with the version from the newest release

and thank you for your feedback and tips on using -tags netgo

@EugenMayer
Copy link
Author

Tested today, has been fixed with 1.7.5 - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants