Error linux route delete command failed

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux route delete command failed causes container to restart itself. #1472

Linux route delete command failed causes container to restart itself. #1472

Comments

Describe the problem
About every 30 seconds to 5 minutes, the container restarts inexplicably. Upon reconnecting, there’s a 50/50 chance that the VPN connection will re-establish normally. This only occurs with the latest tag, and does not occur with the 2.14 tag.

Add your docker run command
(Note: besides the username/password, I’m not particular attached to any of the settings here, so I’m happy to experiment/change things as needed)

docker run --cap-add=NET_ADMIN -d \ --restart=always \ --name=transmission \ --dns=1.1.1.1 \ --dns=1.0.0.1 \ -v /mnt/volume/:/data \ -v /home/transmission/:/home/transmission/ \ -v /home/transmission/config/:/config/ \ -v /etc/localtime:/etc/localtime:ro \ -e CREATE_TUN_DEVICE=true \ -e OPENVPN_PROVIDER=PIA \ -e OPENVPN_CONFIG=DE\ Berlin \ -e OPENVPN_USERNAME=REDACTED \ -e OPENVPN_PASSWORD=REDACTED \ -e WEBPROXY_ENABLED=false \ -e TRANSMISSION_HOME=/config/transmission \ -e TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=true \ -e TRANSMISSION_RPC_USERNAME=REDACTED \ -e TRANSMISSION_RPC_PASSWORD=REDACTED \ -e TRANSMISSION_PREALLOCATION=0 \ -e LOCAL_NETWORK=10.0.0.0/16 \ --log-driver json-file \ --log-opt max-size=10m \ -p 9091:9091 \ haugene/transmission-openvpn 

Logs (Only included logs beginning at time of container restart)

Fri Nov 6 12:19:46 2020 event_wait : Interrupted system call (code=4) Fri Nov 6 12:19:46 2020 SIGUSR1[hard,] received, process restarting Fri Nov 6 12:19:51 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts Fri Nov 6 12:19:51 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]154.13.1.131:1198 Fri Nov 6 12:19:51 2020 UDP link local: (not bound) Fri Nov 6 12:19:51 2020 UDP link remote: [AF_INET]154.13.1.131:1198 Fri Nov 6 12:19:51 2020 [berlin424] Peer Connection Initiated with [AF_INET]154.13.1.131:1198 Fri Nov 6 12:19:52 2020 Preserving previous TUN/TAP instance: tun0 Fri Nov 6 12:19:52 2020 NOTE: Pulled options changed on restart, will need to close and reopen TUN/TAP device. RTNETLINK answers: No such process Fri Nov 6 12:19:52 2020 ERROR: Linux route delete command failed: external program exited with error status: 2 RTNETLINK answers: No such process Fri Nov 6 12:19:52 2020 ERROR: Linux route delete command failed: external program exited with error status: 2 Fri Nov 6 12:19:52 2020 /sbin/ip addr del dev tun0 10.14.112.54/24 Fri Nov 6 12:19:52 2020 /etc/openvpn/tunnelDown.sh tun0 1500 1553 10.14.112.54 255.255.255.0 init Sending kill signal to transmission-daemon Fri Nov 6 12:19:53 2020 OpenVPN ROUTE6: OpenVPN needs a gateway parameter for a --route-ipv6 option and no default was specified by either --route-ipv6-gateway or --ifconfig-ipv6 options Fri Nov 6 12:19:53 2020 OpenVPN ROUTE: failed to parse/resolve route for host/network: 2000::/3 Fri Nov 6 12:19:53 2020 TUN/TAP device tun0 opened Fri Nov 6 12:19:53 2020 /sbin/ip link set dev tun0 up mtu 1500 Fri Nov 6 12:19:53 2020 /sbin/ip addr add dev tun0 10.8.112.57/24 broadcast 10.8.112.255 Fri Nov 6 12:19:53 2020 /etc/openvpn/tunnelUp.sh tun0 1500 1553 10.8.112.57 255.255.255.0 init Up script executed with tun0 1500 1553 10.8.112.57 255.255.255.0 init Updating TRANSMISSION_BIND_ADDRESS_IPV4 to the ip of tun0 : 10.8.112.57 Updating Transmission settings.json with values from env variables Using existing settings.json for Transmission /config/transmission/settings.json Over ------------------------------------- Transmission will run as ------------------------------------- User name: root User uid: 0 User gid: 0 ------------------------------------- STARTING TRANSMISSION Provider PIA has a script for automatic port forwarding. Will run it now. If you want to disable this, set environment variable DISABLE_PORT_UPDATER=yes Transmission startup script complete. Fri Nov 6 12:19:53 2020 WARNING: OpenVPN was configured to add an IPv6 route over tun0. However, no IPv6 has been configured for this interface, therefore the route installation may fail or may not work as expected. Fri Nov 6 12:19:53 2020 Initialization Sequence Completed 

Host system:
Ubuntu Server 20.04, 64 bit
Which version of Docker are you using? —> Docker version 19.03.13, build 4484c46d9d, latest pulled version of docker-transmission-openvpn at the time of writing.

Читайте также:  Установка wifi драйвера kali linux

The text was updated successfully, but these errors were encountered:

Источник

VPN: ERROR: Linux route add command failed with status 2

I’m trying to connect throught ovpn but I have the following error, don’t know why: I have ubuntu-gnome and I’m connected throught wifi. .ovpn:

client remote gateway.xxx.com 1194 dev tun proto udp resolv-retry infinite nobind user nobody group nogroup persist-key persist-tun ca ca-cert.pem cert client-xxx-cert.pem key client-xxx-key.pem ns-cert-type server comp-lzo verb 3 auth-user-pass redirect-gateway def1 
sudo openvpn --config gateway.xxxx.com.ovpn Mon Jun 19 23:25:55 2017 OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Feb 2 2016 Mon Jun 19 23:25:55 2017 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08 Enter Auth Username: ****** Enter Auth Password: ****** Mon Jun 19 23:25:58 2017 WARNING: file 'client-xxxx-key.pem' is group or others accessible Mon Jun 19 23:25:58 2017 Socket Buffers: R=[212992->212992] S=[212992->212992] Mon Jun 19 23:25:59 2017 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay Mon Jun 19 23:25:59 2017 UDPv4 link local: [undef] Mon Jun 19 23:25:59 2017 UDPv4 link remote: [AF_INET]xx.xxx.xxx.xxx:xxxx Mon Jun 19 23:25:59 2017 TLS: Initial packet from [AF_INET]xx.xxx.xxx.xxx:xxxx, sid=359b3959 c62dbda9 Mon Jun 19 23:25:59 2017 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this Mon Jun 19 23:25:59 2017 VERIFY OK: depth=1, C=ES, L=xxx, O=xxx, OU=xxx, CN=ca.gateway.xxx.com, emailAddress=xxx@gateway.xxx.com, O=xxx, ST=xxx Mon Jun 19 23:25:59 2017 VERIFY OK: nsCertType=SERVER Mon Jun 19 23:25:59 2017 VERIFY OK: depth=0, C=ES, ST=xxx, L=xxx, O=xxx, O=xxx, OU=xxx, CN=gateway.xxx.com, emailAddress=security@gateway.xxx.com Mon Jun 19 23:26:01 2017 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key Mon Jun 19 23:26:01 2017 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Mon Jun 19 23:26:01 2017 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key Mon Jun 19 23:26:01 2017 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Mon Jun 19 23:26:01 2017 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 2048 bit RSA Mon Jun 19 23:26:01 2017 [gateway.xxx.com] Peer Connection Initiated with [AF_INET]91.126.210.222:1194 Mon Jun 19 23:26:04 2017 SENT CONTROL [gateway.xxx.com]: 'PUSH_REQUEST' (status=1) Mon Jun 19 23:26:04 2017 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS xxx.xxx.xx.xx,dhcp-option WINS 192.168.47.3,dhcp-option DOMAIN xxx.com,route 192.168.47.0 255.255.255.0,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.18 10.8.0.17' Mon Jun 19 23:26:04 2017 OPTIONS IMPORT: timers and/or timeouts modified Mon Jun 19 23:26:04 2017 OPTIONS IMPORT: --ifconfig/up options modified Mon Jun 19 23:26:04 2017 OPTIONS IMPORT: route options modified Mon Jun 19 23:26:04 2017 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified Mon Jun 19 23:26:04 2017 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=wlxc4e9841c8867 HWADDR=c4:e9:84:1c:88:67 Mon Jun 19 23:26:04 2017 TUN/TAP device tun0 opened Mon Jun 19 23:26:04 2017 TUN/TAP TX queue length set to 100 Mon Jun 19 23:26:04 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 Mon Jun 19 23:26:04 2017 /sbin/ip link set dev tun0 up mtu 1500 Mon Jun 19 23:26:04 2017 /sbin/ip addr add dev tun0 local 10.8.0.18 peer 10.8.0.17 Mon Jun 19 23:26:04 2017 /sbin/ip route add xx.xx.xxx.xxx/32 via 192.168.1.1 RTNETLINK answers: File exists Mon Jun 19 23:26:04 2017 ERROR: Linux route add command failed: external program exited with error status: 2 Mon Jun 19 23:26:04 2017 /sbin/ip route add 0.0.0.0/1 via 10.8.0.17 Mon Jun 19 23:26:04 2017 /sbin/ip route add 128.0.0.0/1 via 10.8.0.17 Mon Jun 19 23:26:04 2017 /sbin/ip route add 192.168.47.0/24 via 10.8.0.17 Mon Jun 19 23:26:04 2017 /sbin/ip route add 10.8.0.1/32 via 10.8.0.17 Mon Jun 19 23:26:04 2017 GID set to nogroup Mon Jun 19 23:26:04 2017 UID set to nobody Mon Jun 19 23:26:04 2017 Initialization Sequence Completed ^CMon Jun 19 23:26:23 2017 event_wait : Interrupted system call (code=4) Mon Jun 19 23:26:23 2017 /sbin/ip route del 10.8.0.1/32 RTNETLINK answers: Operation not permitted Mon Jun 19 23:26:23 2017 ERROR: Linux route delete command failed: external program exited with error status: 2 Mon Jun 19 23:26:23 2017 /sbin/ip route del 192.168.47.0/24 RTNETLINK answers: Operation not permitted Mon Jun 19 23:26:23 2017 ERROR: Linux route delete command failed: external program exited with error status: 2 Mon Jun 19 23:26:23 2017 /sbin/ip route del 91.126.210.222/32 RTNETLINK answers: Operation not permitted Mon Jun 19 23:26:23 2017 ERROR: Linux route delete command failed: external program exited with error status: 2 Mon Jun 19 23:26:23 2017 /sbin/ip route del 0.0.0.0/1 RTNETLINK answers: Operation not permitted Mon Jun 19 23:26:23 2017 ERROR: Linux route delete command failed: external program exited with error status: 2 Mon Jun 19 23:26:23 2017 /sbin/ip route del 128.0.0.0/1 RTNETLINK answers: Operation not permitted Mon Jun 19 23:26:23 2017 ERROR: Linux route delete command failed: external program exited with error status: 2 Mon Jun 19 23:26:23 2017 Closing TUN/TAP interface Mon Jun 19 23:26:23 2017 /sbin/ip addr del dev tun0 local 10.8.0.18 peer 10.8.0.17 RTNETLINK answers: Operation not permitted Mon Jun 19 23:26:23 2017 Linux ip addr del failed: external program exited with error status: 2 Mon Jun 19 23:26:23 2017 SIGINT[hard,] received, process exiting 

Источник

Оцените статью
Adblock
detector