Page 1 of 1

Failed running command (--up/--down): returned error code 1

Posted: Sun Oct 13, 2019 10:42 pm
by vmcosco
Running Windows 10. Trying to get a script running that I found online. I am getting the error in the subject.

I appended the following to the CA Toronto.ovpn file. Does it matter where it goes?

Code: Select all

script-security 2
up "C:\\Program Files\\OpenVPN\\config\\CA Toronto_up.bat"
up-restart
I was able to connect fine without using the script.

Re: Failed running command (--up/--down): returned error code 1

Posted: Mon Oct 14, 2019 12:00 am
by TinCanTech
vmcosco wrote:
Sun Oct 13, 2019 10:42 pm
Trying to get a script running that I found online
That's a great plan ...

NEVER RUN A SCRIPT WHICH YOU FOUND ONLINE

Re: Failed running command (--up/--down): returned error code 1

Posted: Mon Oct 14, 2019 1:37 am
by vmcosco
TinCanTech wrote:
Mon Oct 14, 2019 12:00 am
vmcosco wrote:
Sun Oct 13, 2019 10:42 pm
Trying to get a script running that I found online
That's a great plan ...

NEVER RUN A SCRIPT WHICH YOU FOUND ONLINE
The script was from a reliable source and was shared in the context of automating the PIA port forwarding in Deluge. I appreciate the risk of running scripts. I am wondering if there is an issue with the lines I added to config or what could be causing the error.

Thanks

Re: Failed running command (--up/--down): returned error code 1

Posted: Mon Oct 14, 2019 9:44 am
by TinCanTech
vmcosco wrote:
Mon Oct 14, 2019 1:37 am
The script was from a reliable source
That is not what you said before.
vmcosco wrote:
Mon Oct 14, 2019 1:37 am
I appreciate the risk of running scripts
Really ...
vmcosco wrote:
Mon Oct 14, 2019 1:37 am
I am wondering if there is an issue with the lines I added to config or what could be causing the error
How would we know ?

Considering we do not know or support your script and you have not shared any logs.

Please contact the author of your script.

Re: Failed running command (--up/--down): returned error code 1

Posted: Mon Oct 14, 2019 1:19 pm
by vmcosco
TinCanTech wrote:
Mon Oct 14, 2019 9:44 am
vmcosco wrote:
Mon Oct 14, 2019 1:37 am
The script was from a reliable source
That is not what you said before.
vmcosco wrote:
Mon Oct 14, 2019 1:37 am
I appreciate the risk of running scripts
Really ...
vmcosco wrote:
Mon Oct 14, 2019 1:37 am
I am wondering if there is an issue with the lines I added to config or what could be causing the error
How would we know ?

Considering we do not know or support your script and you have not shared any logs.

Please contact the author of your script.
Ok, I will stop bothering you then. The error had nothing to do with the script. The error I received (title of my post) was from the OpenVPN log. The changes I made to the CA Toronto OPVN config were listed. Sounded like it was an issue with the "up" command in OpenVPN so I thought I would ask on the OpenVPN forum for some help.

Re: Failed running command (--up/--down): returned error code 1

Posted: Mon Oct 14, 2019 2:38 pm
by TinCanTech
Re: Failed running command (--up/--down): returned error code 1

The script returned failed to openvpn.