Page 1 of 1

Authcli problem (with solution)

Posted: Fri Feb 26, 2021 12:19 am
by tnelson
Here's my problem:

Code: Select all

/usr/local/openvpn_as/scripts$ ./authcli --help
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/pyovpn/sagent/sagent_entry.py", line 60, in authcli
  File "build/bdist.linux-x86_64/egg/pyovpn/auth/authcli.py", line 18, in <module>
  File "build/bdist.linux-x86_64/egg/pyovpn/auth/authcli.py", line 28, in Options
  File "build/bdist.linux-x86_64/egg/pyovpn/util/env.py", line 243, in get_env
pyovpn.util.error.SimpleError: env/config variable 'sa.sock' does not exist
The only reference I found on the Internet didn't help me, so I signed up to this forum just to say that the answer is "you have to be root; use sudo or something".

Hope this helps someone

Re: Authcli problem (with solution)

Posted: Fri Feb 26, 2021 10:25 am
by openvpn_inc
Hello tnelson,

Just to clarify here for everyone, but all commands on the command line on the Access Server should be run as root, unless you have specifically set things up in some other way where another unprivileged user can run these commands. This is mentioned in our documentation but it's possible you missed it - we don't repeat it on every single occasion a command line parameter is mentioned.

In any case, glad you figured it out.

Kind regards,
Johan