Environment:
Ubuntu 18.04
OpenVPN 2.4.4 x86_64-pc-linux-gnu
Issue:
I use a script vpn_cmd.sh that
- create a network namespace
- run openvpn under a given namespace using a opvn files given by a VPN providers
- execute a command line (collecting information on the web)
- close the namespace
- kill the openvpn related to this namespace
I use network namespaces to be able to parallelize commands like :
$>seq 10000 | parallel -j 5 vpn_cmd.sh curl
www.website.com/page{}
such approach works well for short tasks (< 1h)
but for long task (e.g. 8h), I start to see some errors. The output is filled with thousand lines :
read from TUN/TAP : File descriptor in bad state (code=77)
read from TUN/TAP : File descriptor in bad state (code=77)
read from TUN/TAP : File descriptor in bad state (code=77)
and it consume all the spaces
maybe it's related to a race condition to get a openvpn related ressource but maybe not.. I dont know.
- How to debug such thing ?
- Any idea about how to resolve such issue ?
Thanks !
Nicolas