openvpn3 icon indicating copy to clipboard operation
openvpn3 copied to clipboard

bug for mac

Open Ran-Xing opened this issue 4 years ago • 11 comments

Transport Error: socket_protect error (UDP)

I can link normally with my mobile phone, but not with my Mac, The computer can't link when the mobile phone is off

image

Ran-Xing avatar Jan 18 '21 15:01 Ran-Xing

me too

zhangjiji03 avatar Jun 29 '21 09:06 zhangjiji03

me too

ptdtan avatar Aug 27 '21 17:08 ptdtan

me too

Song-HaiFeng avatar Nov 08 '21 06:11 Song-HaiFeng

me tooooooooooooo

cdcdx avatar Dec 15 '21 14:12 cdcdx

i am use it on m1 and Monterey。same bug

runforprogram avatar Feb 17 '22 03:02 runforprogram

Tunnelblick can work

runforprogram avatar Feb 22 '22 10:02 runforprogram

me to

image

xuxinping avatar Apr 03 '22 16:04 xuxinping

+++

ilqvya avatar Apr 08 '22 18:04 ilqvya

me tooooo

jh-leong avatar Apr 10 '22 13:04 jh-leong

me too

SeanChang avatar Apr 29 '22 12:04 SeanChang

me tooooooooo

evan2884 avatar May 17 '22 11:05 evan2884

me tooooooooo

jiangzhiyun-yun avatar Aug 12 '22 09:08 jiangzhiyun-yun

same here

anton-bubnov-taod avatar Aug 15 '22 11:08 anton-bubnov-taod

Closing this bug since has no actual information and there seem to be only a flood of useless "me too" responses that also have no detailed information.

schwabe avatar Aug 15 '22 12:08 schwabe

Lmao, did u even tried to investigate it ?

ilqvya avatar Aug 15 '22 14:08 ilqvya

I don't know what issue other have, but I was able to solve mine today.

I was getting an error calling protected() method and same logs as mentiones above. I figured out that the file /var/run/agent_ovpnconnect.sock didn't exist and apparently the problem was that for any reason the ovpn agent wasn't running. To solve this I had to start /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent manually (I'm using macOS M1 12.2.1).

Hope it will help someone.

anton-bubnov-taod avatar Aug 15 '22 15:08 anton-bubnov-taod

Interesting. Thanks

ilqvya avatar Aug 15 '22 18:08 ilqvya

Interesting. Thanks

ilqvya avatar Aug 15 '22 18:08 ilqvya

@effolkronium the original error is just failing to connect to a UDP server. Any kind of condition can lead to that like no network connection. So without any further information and just hte error message, there is nothing we can do and that is why I closed the ticket.

schwabe avatar Aug 15 '22 18:08 schwabe

@schwabe then it would be better to extend logging for this error, so guys will have a chance to send meaningful reports. Just an idea

ilqvya avatar Aug 15 '22 19:08 ilqvya

I don't know what issue other have, but I was able to solve mine today.

I was getting an error calling protected() method and same logs as mentiones above. I figured out that the file /var/run/agent_ovpnconnect.sock didn't exist and apparently the problem was that for any reason the ovpn agent wasn't running. To solve this I had to start /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent manually (I'm using macOS 12.2.1).

Hope it will help someone.

thanks so much man, all works well now.

jh-leong avatar Aug 17 '22 01:08 jh-leong

I'm seeing the same problem on an M1 Mac. OpenVPN Connect 3.3.6 (4368): Error calling protect () method on socket. Here's my log:

[Sep 15, 2022, 07:17:13] EVENT: RESOLVE
[Sep 15, 2022, 07:17:13] Contacting
XXX.XXX.XXX.XXX:1194 via UDP
[Sep 15, 2022, 07:17:13] EVENT: WAIT
[Sep 15, 2022, 07:17:13] UnixCommandAgent:
transmitting bypass route to
/var/run/agent_ovpnconnect.sock
"host": "XXX.XXX.XXX.XXX"
"ipv6": false,
"pid": 11202
[Sep 15, 2022, 07:17:13] Transport Error:
socket_protect error (UDP)
[Sep 15, 2022, 07:17:13] Client terminated
restarting in 2000 ms...

alexsmartens avatar Sep 15 '22 14:09 alexsmartens

To solve this I had to start /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent manually (I'm using macOS 12.2.1).

This solved it for me, thanks! It's bummer that we need to lunch this process ourselves though :-/

alexsmartens avatar Sep 15 '22 14:09 alexsmartens

@schwabe do you mind reopening this issue? It still persists and needs to be addressed. We will help with the logs and whatever else you need

alexsmartens avatar Sep 15 '22 14:09 alexsmartens

「設定→バックグラウンド実行を許可」に「openvpn client」を含む項目のチェックを入れてから解決しました。

tdzz1102 avatar Dec 16 '22 08:12 tdzz1102

$ sudo /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent this command is all right! thanks up man! thanks you;

taopanwoaini avatar Dec 19 '22 12:12 taopanwoaini

I don't know what issue other have, but I was able to solve mine today.

I was getting an error calling protected() method and same logs as mentiones above. I figured out that the file /var/run/agent_ovpnconnect.sock didn't exist and apparently the problem was that for any reason the ovpn agent wasn't running. To solve this I had to start /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent manually (I'm using macOS M1 12.2.1).

Hope it will help someone.

Thank you @antonb-taod I've been having this issue for a few days now and it's because I'm using hardware tokens. I've fixed with sudo /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent.

fatihsari avatar Dec 29 '22 17:12 fatihsari

sudo /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent

thanks it work like a charm

fchienvuhoang avatar Jan 05 '23 03:01 fchienvuhoang

sudo /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent

this works!

enderphan94 avatar Jan 11 '23 02:01 enderphan94

I saw a solution on reddit.it solved my problem. My machine is macbook air M1, openvpn is 3.4.1 (4522), which is already the latest version, but I still have this error. Here are the steps mentioned on reddit to fix it. Run these commands in a terminal:

sudo launchctl unload -w /Library/LaunchDaemons/org.openvpn.client.plist
ps auxww | grep ovpnagent

you shouldn't see: /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent

sudo launchctl load -w /Library/LaunchDaemons/org.openvpn.client.plist
ps auxww | grep ovpnagent

you SHOULD see: 1. /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent (owned by root) Reboot the laptop Connect to the VPN

tiny-andr avatar Jan 15 '23 21:01 tiny-andr