What's new

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

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

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: 137
Last edited:
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.
 
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:
 
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 ...
 
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
 

Similar threads

Sign Up For SNBForums Daily Digest

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