I recently updated my OpenVPN configurations (turn off comp-lzo, switch to topology subnet). After a few false starts, everything seemed to be working well. I happened to check the log on my Android OpenVPN client and noticed numerous "TUN write exception: write_some: Invalid argument" errors during connection.
A quick search suggested compression issues. However, I noticed that the server log showed "failed to empirically measure MTU (requires OpenVPN 1.5 or higher at other end of connection)." It turns out I had run into mtu issues while travelling, had added "mtu-test" to the server's UPD profile, and never removed it. After disabling "mtu-test", the Android OpenVPN errors disappeared. I am posting this in case anyone else sees this error message.
OpenVPN on Android Reporting "TUN write exception: write_some: Invalid argument"
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Nov 14, 2018 4:11 pm
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN on Android Reporting "TUN write exception: write_some: Invalid argument"
That is a really nice find, thanks!