Systematic error when openvpn client 1 restart: Linux route delete command failed: external program exited

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

GSpock

Senior Member
Hi Folks,
I am getting systematically this error whenever the openvpn client restart (i.e. every hour ...) ; I have the feeling that at the end my ISP cut ma WAN line due to those errors ...

Oct 7 12:01:33 ovpn-client1[20317]: ERROR: Linux route delete command failed: external program exited with error status: 2
Oct 7 12:04:13 ovpn-client1[23299]: ERROR: Linux route delete command failed: external program exited with error status: 2

Any ideas ?
Thx,
GS

PS: this happens only with openvpn client 1 ! not the others ..
 

Attachments

  • Capture d’écran 2020-10-07 120636.png
    Capture d’écran 2020-10-07 120636.png
    345.7 KB · Views: 35
Last edited:

eibgrad

Very Senior Member
I have the feeling that at the end my ISP cut ma WAN line due to those errors ...

More likely, the complete opposite.

When the OpenVPN connection fails, it will often have the immediate effect of removing all references to the tunnel's network interface from the routing tables. And since the OpenVPN client commonly establishes routes using the tunnel's network interface within those tables (specifically w/ the route-up script), by the time the route-down script is called (which would normally delete those same routes), those routes are already GONE, and so the route-pre-down script ends up returning errors. IOW, it's a victim of whatever killed the connection, NOT the other way around.

So I'm not sure what's killing the connection (or failing to restart it), but those specific errors are highly unlikely to represent the cause.
 

GSpock

Senior Member
When the OpenVPN connection fails, it will often have the immediate effect of removing all references to the tunnel's network interface from the routing tables. And since the OpenVPN client commonly establishes routes using the tunnel's network interface within those tables (specifically w/ the route-up script), by the time the route-down script is called (which would normally delete those same routes), those routes are already GONE, and so the route-pre-down script ends up returning errors. IOW, it's a victim of whatever killed the connection, NOT the other way around.

So I'm not sure what's killing the connection (or failing to restart it), but those specific errors are highly unlikely to represent the cause.

Thanks. In this particular case, I was simply applying some change on the openvpn client 1 and that is what has caused the error .... :oops:
 

GSpock

Senior Member
More likely, the complete opposite.

When the OpenVPN connection fails, it will often have the immediate effect of removing all references to the tunnel's network interface from the routing tables. And since the OpenVPN client commonly establishes routes using the tunnel's network interface within those tables (specifically w/ the route-up script), by the time the route-down script is called (which would normally delete those same routes), those routes are already GONE, and so the route-pre-down script ends up returning errors. IOW, it's a victim of whatever killed the connection, NOT the other way around.

So I'm not sure what's killing the connection (or failing to restart it), but those specific errors are highly unlikely to represent the cause.

Would you pls be so nice to to have a look this one:

I guess this is related, and now with your explanation, I understand that the openvpn issue is causing the donwgrade of the WAN line ...
 

Martineau

Part of the Furniture
Hi Folks,
I am getting systematically this error whenever the openvpn client restart (i.e. every hour ...)

Oct 7 12:01:33 ovpn-client1[20317]: ERROR: Linux route delete command failed: external program exited with error status: 2
Oct 7 12:04:13 ovpn-client1[23299]: ERROR: Linux route delete command failed: external program exited with error status: 2

Any ideas ?
Her's a post from 2017....http://www.snbforums.com/threads/beta-asuswrt-merlin-382-1-beta-is-available.41661/post-357571
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top