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

Use this forum to share your VPN or network disasters. Show diagrams, traffic graphs, or whatever else you need (a video of you letting the 'smoke' out of our network gear).

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
vmcosco
OpenVpn Newbie
Posts: 3
Joined: Sun Oct 13, 2019 10:35 pm

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

Post by vmcosco » Sun Oct 13, 2019 10:42 pm

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.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » 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

vmcosco
OpenVpn Newbie
Posts: 3
Joined: Sun Oct 13, 2019 10:35 pm

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

Post by vmcosco » Mon Oct 14, 2019 1:37 am

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

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » 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.

vmcosco
OpenVpn Newbie
Posts: 3
Joined: Sun Oct 13, 2019 10:35 pm

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

Post by vmcosco » Mon Oct 14, 2019 1:19 pm

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.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Mon Oct 14, 2019 2:38 pm

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

The script returned failed to openvpn.

Post Reply