Closed ethaniel86 closed 1 year ago
Dashboard shows "User test revoked!" but user still showing in the list.
admin container logs time="2023-09-04T07:55:10Z" level=debug msg="openvpn-user create --db.path /mnt/easyrsa/pki/users.db --user test --password test123" time="2023-09-04T07:55:10Z" level=debug msg="User test created\n" time="2023-09-04T07:55:10Z" level=info msg="Certificate for user test issued" time="2023-09-04T07:55:10Z" level=info msg="xx.xx.xx.xx:62564 /api/users/list" time="2023-09-04T07:55:17Z" level=info msg="xx.xx.xx.xx:62564 /api/user/revoke" time="2023-09-04T07:55:17Z" level=info msg="Revoke certificate for user test" time="2023-09-04T07:55:17Z" level=debug msg="cd /mnt/easyrsa && echo yes | easyrsa revoke easyrsa 1>/dev/null && test gen-crl 1>/dev/null" time="2023-09-04T07:55:18Z" level=debug msg="exit status 1 : \nEasy-RSA error:\n\nUnable to revoke as the input file is not a valid certificate. Unexpected\ninput in file: /mnt/easyrsa/pki/issued/easyrsa.crt\n" time="2023-09-04T07:55:18Z" level=debug msg="openvpn-user revoke --db-path /mnt/easyrsa/pki/users.db --user test" time="2023-09-04T07:55:18Z" level=debug msg="exit status 1 : openvpn-user: error: unknown long flag '--db-path', try --help\n"
problem caused by mismatch between flags: ovpn-admin use openvpn-user with a bad flag: '--db-path' must correct the ovpn-admin source file (main.go) to '--db.path' according to openvpn-user documentation
Dashboard shows "User test revoked!" but user still showing in the list.
admin container logs time="2023-09-04T07:55:10Z" level=debug msg="openvpn-user create --db.path /mnt/easyrsa/pki/users.db --user test --password test123" time="2023-09-04T07:55:10Z" level=debug msg="User test created\n" time="2023-09-04T07:55:10Z" level=info msg="Certificate for user test issued" time="2023-09-04T07:55:10Z" level=info msg="xx.xx.xx.xx:62564 /api/users/list" time="2023-09-04T07:55:17Z" level=info msg="xx.xx.xx.xx:62564 /api/user/revoke" time="2023-09-04T07:55:17Z" level=info msg="Revoke certificate for user test" time="2023-09-04T07:55:17Z" level=debug msg="cd /mnt/easyrsa && echo yes | easyrsa revoke easyrsa 1>/dev/null && test gen-crl 1>/dev/null" time="2023-09-04T07:55:18Z" level=debug msg="exit status 1 : \nEasy-RSA error:\n\nUnable to revoke as the input file is not a valid certificate. Unexpected\ninput in file: /mnt/easyrsa/pki/issued/easyrsa.crt\n" time="2023-09-04T07:55:18Z" level=debug msg="openvpn-user revoke --db-path /mnt/easyrsa/pki/users.db --user test" time="2023-09-04T07:55:18Z" level=debug msg="exit status 1 : openvpn-user: error: unknown long flag '--db-path', try --help\n"