Page 1 of 1

OpenVPN Connect Client installer creation error

Posted: Thu Feb 11, 2021 7:04 am
by theap
hello,

I try to generate installer
OpenVPN Access Server ver. 2.8.7

Code: Select all

/usr/local/openvpn_as/scripts/sacli --itype "mac_v3" -o ./ GetGenericInstaller
ERROR: exceptions.KeyError: 'mac_v3' (9000)

Code: Select all

/usr/local/openvpn_as/scripts/sacli --itype msi_v3 -o ./ GetGenericInstaller
ERROR: exceptions.KeyError: 'win_v3' (9000)
please help

Re: OpenVPN Connect Client installer creation error

Posted: Tue Feb 16, 2021 12:35 pm
by openvpn_inc
Hello,

I have just tested this on OpenVPN Access Server 2.8.7 - copy pasted the exact commands you posted - and it works just fine here.

Is it possible that your system does not meet minimum system requirements of 1GB memory? Or that your system is out of free hard disk space? Both cases could possibly lead to strange problems when trying to create these installers. Can you tell us what operating system this is on? Does downloading the installer through the web interface work normally? Perhaps your installers are not present (forgot to install them or uninstalled them?) - try checking contents of directory where client installers should be with command: ls -alR /usr/local/openvpn_as/etc/exe/ and post the results.

Kind regards,
Johan

Re: OpenVPN Connect Client installer creation error

Posted: Wed Feb 24, 2021 3:28 pm
by theap
- Centos 7 (disk size is sufficient)
- This directory is empty /usr/local/openvpn_as/etc/exe/ (I don't know what happened to this)
- how can i restore it?

Re: OpenVPN Connect Client installer creation error

Posted: Wed Feb 24, 2021 5:51 pm
by openvpn_inc
Hello theap,

Well that explains why things don't work for you. I am not entirely sure how you managed to have an empty directory there. When I tried to remove the package openvpn-as-bundled-clients that contains the files that belong in that directory, it will also offer to automatically remove openvpn-as, the main OpenVPN Access Server package, as one depends on the other. Perhaps if the package was forcibly removed via rpm instead of yum that this situation could have occurred. It is not an expected situation in any case.

It might be superfluous to mention this but I would recommend you backup your Access Server files in /usr/local/openvpn_as/etc/db/ as it contains your important certificates and configurations and put that backup somewhere safe before you do anything else.

To try and reproduce your problem I just went ahead and wiped the files in /usr/local/openvpn_as/etc/exe to simulate this on my own CentOS7 installation. There's two things that I can think of that can be wrong. One is where the package 'openvpn-as-bundled-clients' is simply not present at all, which would be strange, but, then the fix is easy. And the other is that the directory was emptied for some reason, but the system still thinks the package is installed and won't allow installing it.

Just run this to try to install the package if it is somehow missing:

Code: Select all

yum install openvpn-as-bundled-clients
And then the files should come back in the etc/exe dir.

If it doesn't do anything and says you already have this installed, then you can try telling rpm to 'forget' this package without affecting dependencies, and then do the above command again, to force a reinstall of the package.

'Forget' the package openvpn-as-bundled-clients and try reinstalling again:

Code: Select all

rpm -e --justdb --nodeps openvpn-as-bundled-clients
yum install openvpn-as-bundled-clients
This resolved the issue on my CentOS7 machine.

Kind regards,
Johan

Re: OpenVPN Connect Client installer creation error

Posted: Thu Feb 25, 2021 9:31 am
by theap
Yes. This fixed my issue. Thanks!

Re: OpenVPN Connect Client installer creation error

Posted: Thu Feb 25, 2021 10:11 am
by openvpn_inc
Hi theap,

Great to hear.

Have a nice day,
Johan