badvpn icon indicating copy to clipboard operation
badvpn copied to clipboard

ERROR(udpgw): BConnection_Init failed

Open initux opened this issue 5 years ago • 8 comments

image

initux avatar Nov 11 '20 20:11 initux

Apparently udpgw is failing to accept connections. This may be normal sometimes if a connection is aborted before it could be accepted. But anyway you can run with strace to see the error code.

ambrop72 avatar Nov 12 '20 10:11 ambrop72

Apparently udpgw is failing to accept connections. This may be normal sometimes if a connection is aborted before it could be accepted. But anyway you can run with strace to see the error code.

when 100+ user connected in my server then face this issue....... if 20 / 30 user connected then can't face this issue.... my server is 32 GB RAM, 16 CPU, 1 GB LAN

initux avatar Nov 12 '20 11:11 initux

My guess would be that you need to increase the maximum number of file descriptors (ulimit -n).

ambrop72 avatar Nov 13 '20 14:11 ambrop72

please tell me whose file i need change..... just give me example please

initux avatar Nov 13 '20 14:11 initux

Depends on how you run the program. Generally the limit is raise using ulimit -n (e.g. 10000) but you may need to change system policy if you get "operation not permited". If running from a systemd service, then LimitNOFILE= in the service config file.

ambrop72 avatar Nov 13 '20 14:11 ambrop72

/bin/badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 1000 --max-connections-for-client 1

i will run from this command ......... if you need any change please give me.... i need minimum 1000+ user connected in my vpn server.... badvpn service every time run...... but whatsapp call not working when show like this error..... if exit badvpn & again open then work some time good.... after some time again same issue....

initux avatar Nov 13 '20 15:11 initux

Please brother, please give me any solution for me

initux avatar Nov 13 '20 17:11 initux

image

initux avatar Nov 24 '20 17:11 initux