cant get OpenVPN-AS to run after migration

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Locked
Benman2785
OpenVpn Newbie
Posts: 2
Joined: Wed Apr 26, 2017 12:52 pm

cant get OpenVPN-AS to run after migration

Post by Benman2785 » Wed Apr 26, 2017 12:56 pm

hey - lazy as i am i migrated with rsync to my new server - now i cant run openvpn-as anymore

i first upgraded to newest version -> still not working
then i removed openvpn-as and installed it again -> not working -> getting this error

Code: Select all

dpkg -i openvpn-as-2.1.4-Ubuntu14.amd_64.deb
(Reading database ... 63130 files and directories currently installed.)
Preparing to unpack openvpn-as-2.1.4-Ubuntu14.amd_64.deb ...
Upgrade detected (debian)...
Unpacking openvpn-as (2.1.4-Ubuntu14) over (2.1.4-Ubuntu14) ...
Setting up openvpn-as (2.1.4-Ubuntu14) ...
Regenerating etc openvpnas script...
ERROR: env/config variable 'sa.sock' does not exist: util/options:79,linux/geninit:341,util/env:222,<string>:1,sagent/sagent_entry:30,linux/geninit:353,util/options:79,linux/geninit:341,util/env:222,util/error:61,util/error:44 (GET_ENV_MUST_EXIST)
Regenerating startup/shutdown scripts...
update-rc.d: /etc/init.d/openvpnas: file does not exist
Backing up configuration and DB files to /usr/local/openvpn_as/etc/backup prior to update.
can you help me with that? :)

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: cant get OpenVPN-AS to run after migration

Post by novaflash » Wed May 03, 2017 3:02 pm

Hello Benman2785,

Well, your situation is apparently a little unusual then. What I'd suggest is making a backup of your settings in /usr/local/openvpn_as/etc/db and then wiping the installation of Access Server;

apt-get purge openvpn-as
dpkg -r openvpn-as

And then wiping the folder /usr/local/openvpn_as/:
rm -rf /usr/local/openvpn_as

And also removing the file /etc/init.d/openvpnas if it exists;
rm /etc/init.d/openvpnas

Now try a normal download of OpenVPN Access Server - make sure it's the version that matches your OS - and installing it with the usual commands. Do you have Ubuntu 14? Check with this command to see;
cat /etc/issue

If it's Ubuntu 14 x64 then these are the commands;

apt-get install wget
wget http://swupdate.openvpn.org/as/openvpn- ... amd_64.deb
dpkg -i openvpn-as-2.1.4-Ubuntu14.amd_64.deb

Now see if you've got a working Access Server again. Then stop the openvpnas service, restore the files you backed up earlier, and start the openvpnas service again and see what happens.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

Benman2785
OpenVpn Newbie
Posts: 2
Joined: Wed Apr 26, 2017 12:52 pm

Re: cant get OpenVPN-AS to run after migration

Post by Benman2785 » Thu May 04, 2017 10:35 pm

thank you - it fixes my problem ;)

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: cant get OpenVPN-AS to run after migration

Post by novaflash » Fri May 05, 2017 8:31 am

Woo. Great success.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

tekhead
OpenVpn Newbie
Posts: 1
Joined: Tue Jul 18, 2017 6:31 pm

Re: cant get OpenVPN-AS to run after migration

Post by tekhead » Tue Jul 18, 2017 6:39 pm

I migrated via PCMover Pro from my old laptop to my new laptop (both running Windows 10 Pro-64 bit. The app no longer accepts my password. What is the solution?

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: cant get OpenVPN-AS to run after migration

Post by novaflash » Sun Jul 23, 2017 10:23 am

Hello tekhead,

That has precisely nothing to do with this issue. I think I'm going to close and lock this topic to avoid contamination. I suggest you open a new topic detailing your particular issue as it has zero bearing on this issue discussed in this topic.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

Locked