shadowsocks / ShadowsocksX-NG

Next Generation of ShadowsocksX
GNU General Public License v3.0
32.34k stars 7.94k forks source link

macOS big sur not working properly #1352

Open kalsolio opened 3 years ago

kalsolio commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

System and Shadowsocksx-NG version: (please complete the following information):

Diagnoisis file:

Please first upgrade to the latest version. Then export the diagnosis file and upload it to here.

ss-local.log

Please upload the ss-local.log file here the file is in ~/Library/Logs 1) Open 'Advanced Settings -> enable Verbose Mode' 2) Continue run Shadowsocksx-NG for 5 minutes 3) Upload the ~/Library/Logs/ss-local.log here (with or without compress)

Application log

Open the Console.app and search Shadowsocksx-NG Copy paste the log here

Crash Log

If the app crashes and pop up a crash log, please copy and paste here

Additional context Add any other context about the problem here.

xiaoyu2006 commented 3 years ago

@kalsolio What does not working properly mean?

dragonKing-lzl commented 3 years ago

I also encountered the same problem. After upgrading the Mac to 11.0.1 Big Sur, shadowsocksx-ng cannot be used. The version fo the shadowsocksx-ng is 1.9.4 (1), and the v2ray-plugin is v1.2.0.

The content of ss-local.log is as follows:

2020-11-15 11:22:18 INFO: plugin "plugins/v2ray-plugin" enabled 2020-11-15 11:22:18 INFO: using tcp fast open 2020-11-15 11:22:18 INFO: initializing ciphers... aes-256-gcm 2020-11-15 11:22:18 INFO: listening at 127.0.0.1:1086 2020-11-15 11:22:18 INFO: tcp port reuse enabled 2020-11-15 11:22:18 ERROR: plugin service exit unexpectedly

kalsolio commented 3 years ago

2020-11-15 12:35:55 INFO: plugin "plugins/v2ray-plugin" enabled 2020-11-15 12:35:55 INFO: using tcp fast open 2020-11-15 12:35:55 INFO: initializing ciphers... chacha20-ietf-poly1305 2020-11-15 12:35:55 INFO: listening at 127.0.0.1:1086 2020-11-15 12:35:55 INFO: tcp port reuse enabled 2020-11-15 12:35:55 INFO: udprelay enabled 2020-11-15 12:35:55 INFO: udp port reuse enabled 2020-11-15 12:36:07 INFO: connect to api.github.com:443 2020-11-15 12:36:07 ERROR: getpeername: Invalid argument 2020-11-15 12:36:07 INFO: connect to api.github.com:443

kalsolio commented 3 years ago

2020-11-15 12:37:23 INFO: plugin "plugins/v2ray-plugin" enabled 2020-11-15 12:37:23 INFO: using tcp fast open 2020-11-15 12:37:23 INFO: initializing ciphers... chacha20-ietf-poly1305 2020-11-15 12:37:23 INFO: listening at 127.0.0.1:1086 2020-11-15 12:37:23 INFO: tcp port reuse enabled 2020-11-15 12:37:23 INFO: udprelay enabled 2020-11-15 12:37:23 INFO: udp port reuse enabled 2020-11-15 12:37:23 ERROR: plugin service exit unexpectedly 2020-11-15 12:37:23 INFO: closed gracefully

SmallTianTian commented 3 years ago

I have the same problem.

version: 1.9.4 plugin-version: v2ray:v1.2.0 Mac-version: 11.0.1 Big Sur

But it works without plug(v2ray).

seancheung commented 3 years ago

I can't even get the logs to show up

yhprumslaw commented 3 years ago

遇到同样的问题,已经解决。

自己clone一下v2ray-plugin,然后go build(这一步需要网络通畅)编译,再替换一下shadowsocks里的文件。

xielehe commented 3 years ago

遇到同样的问题,已经解决。

自己clone一下v2ray-plugin,然后go build(这一步需要网络通畅)编译,再替换一下shadowsocks里的文件。

厉害,重新编译后果然可以用了。😊

leebaok commented 3 years ago

遇到同样的问题,已经解决。

自己clone一下v2ray-plugin,然后go build(这一步需要网络通畅)编译,再替换一下shadowsocks里的文件。

赞! 如果 go build 下载不了包,可以通过设置 GOPROXY 解决。

cwt8805 commented 3 years ago

遇到同样的问题,已经解决。

自己clone一下v2ray-plugin,然后go build(这一步需要网络通畅)编译,再替换一下shadowsocks里的文件。

这是为啥?我直接下载v2ray-plugin-darwin-amd64-v1.3.1.tar.gz然后替换为啥不行

jwxc commented 3 years ago

我也遇见了同样的问题,但是无法解决。

cwt8805 commented 3 years ago

我也遇见了同样的问题,但是无法解决。

下载v2ray-plugin自己编译真的可以解决问题

seancheung commented 3 years ago

注意不要替换错了,是换Application Support下的插件,不是应用包Contents里的 路径为~/Library/Application Support/ShadowsocksX-NG/v2ray-plugin_1.2.0 也可以从软件里打开(打开后还有一个symlink,点击显示原身再替换) image image image

我提供下新编译的v2ray-plugin,解压后用它替换那个目录下同名的

v2ray-plugin.zip

PostgreSQL1989 commented 3 years ago

注意不要替换错了,是换Application Support下的插件,不是应用包Contents里的 路径为~/Library/Application Support/ShadowsocksX-NG/v2ray-plugin_1.2.0 也可以从软件里打开(打开后还有一个symlink,点击显示原身再替换) image image image

我提供下新编译的v2ray-plugin,解压后用它替换那个目录下同名的

v2ray-plugin.zip

感谢分享经验,总算恢复了

supreme429 commented 3 years ago

注意不要替换错了,是换Application Support下的插件,不是应用包Contents里的 路径为~/Library/Application Support/ShadowsocksX-NG/v2ray-plugin_1.2.0 也可以从软件里打开(打开后还有一个symlink,点击显示原身再替换) image image image

我提供下新编译的v2ray-plugin,解压后用它替换那个目录下同名的

v2ray-plugin.zip

大感谢!!!恢复了!

Xbigfat commented 3 years ago

hello everyone, after upgrade to macOS Big Sur, kcptun can't working anymore. The parameters I entered seems not working. If anyone knows plz tell me. The log here:

2020/11/21 22:54:56 version: 20190905
2020/11/21 22:54:56 initiating key derivation
2020/11/21 22:54:56 listening on: 127.0.0.1:56521
2020/11/21 22:54:56 encryption: aes
2020/11/21 22:54:56 nodelay parameters: 0 30 2 1
2020/11/21 22:54:56 remote address: my ip address:29900
2020/11/21 22:54:56 sndwnd: 128 rcvwnd: 512 (doesn't changed)
2020/11/21 22:54:56 compression: true
2020/11/21 22:54:56 mtu: 1350
2020/11/21 22:54:56 datashard: 10 parityshard: 3
2020/11/21 22:54:56 acknodelay: false
2020/11/21 22:54:56 dscp: 0
2020/11/21 22:54:56 sockbuf: 4194304
2020/11/21 22:54:56 smuxbuf: 4194304
2020/11/21 22:54:56 keepalive: 10
2020/11/21 22:54:56 conn: 1
2020/11/21 22:54:56 autoexpire: 0
2020/11/21 22:54:56 scavengettl: 600
2020/11/21 22:54:56 snmplog: 
2020/11/21 22:54:56 snmpperiod: 60
2020/11/21 22:54:56 quiet: false
2020/11/21 22:54:56 tcp: false
2020/11/21 22:54:56 connection: 0.0.0.0:64818 -> my ip adress:29900

the parameters I entered is "key=very fast;crypt=aes;mode=fast2;mtu=1350;sndwnd=1024;rcvwnd=1024;datashard=70;parityshard=30;dscp=40;nocomp=true;"

I can see the sndwnd and rcvwnd doesn't changed.(Works normally on macOS HighSierra)

YZZZZZ2333 commented 3 years ago

我这又是什么奇怪的问题,按照上面的替换了v2ray-plugin文件,自己编译也不行 2020-12-03 12:02:36 INFO: plugin "plugins/v2ray-plugin" enabled 2020-12-03 12:02:36 INFO: using tcp fast open 2020-12-03 12:02:36 INFO: initializing ciphers... aes-256-gcm Permission denied 2020-12-03 12:02:36 INFO: listening at 127.0.0.1:1086 2020-12-03 12:02:36 INFO: tcp port reuse enabled 2020-12-03 12:02:36 ERROR: plugin service exit unexpectedly 2020-12-03 12:02:36 INFO: closed gracefully

supreme429 commented 3 years ago

我这又是什么奇怪的问题,按照上面的替换了v2ray-plugin文件,自己编译也不行 2020-12-03 12:02:36 INFO: plugin "plugins/v2ray-plugin" enabled 2020-12-03 12:02:36 INFO: using tcp fast open 2020-12-03 12:02:36 INFO: initializing ciphers... aes-256-gcm Permission denied 2020-12-03 12:02:36 INFO: listening at 127.0.0.1:1086 2020-12-03 12:02:36 INFO: tcp port reuse enabled 2020-12-03 12:02:36 ERROR: plugin service exit unexpectedly 2020-12-03 12:02:36 INFO: closed gracefully

不用编译的。只需替换、然后重启一下子。问题解决

YZZZZZ2333 commented 3 years ago

我这又是什么奇怪的问题,按照上面的替换了v2ray-plugin文件,自己编译也不行 2020-12-03 12:02:36 INFO: plugin "plugins/v2ray-plugin" enabled 2020-12-03 12:02:36 INFO: using tcp fast open 2020-12-03 12:02:36 INFO: initializing ciphers... aes-256-gcm Permission denied 2020-12-03 12:02:36 INFO: listening at 127.0.0.1:1086 2020-12-03 12:02:36 INFO: tcp port reuse enabled 2020-12-03 12:02:36 ERROR: plugin service exit unexpectedly 2020-12-03 12:02:36 INFO: closed gracefully

不用编译的。只需替换、然后重启一下子。问题解决

我全部文件删掉重新下载了一个就好了😂😂

x82423990 commented 3 years ago

遇到同样的问题,已经解决。

自己clone一下v2ray-plugin,然后go build(这一步需要网络通畅)编译,再替换一下shadowsocks里的文件。

我草, 果然, 厉害, 编译命令献上,go build -o /tmp/v2ray-plugin, 也可以用自带的编译脚本build-release.sh, 他会编译每个版本, 然后选择自己版本就可以了,

cuijianjun commented 3 years ago

2021-01-08 22:49:15 INFO: tcp port reuse enabled 2021-01-08 22:49:17 INFO: using tcp fast open 2021-01-08 22:49:17 INFO: initializing ciphers... aes-256-ctr 2021-01-08 22:49:17 INFO: listening at 127.0.0.1:1086 2021-01-08 22:49:17 INFO: tcp port reuse enabled 2021-01-08 22:54:21 INFO: using tcp fast open 2021-01-08 22:54:21 INFO: initializing ciphers... aes-256-ctr 2021-01-08 22:54:21 INFO: listening at 127.0.0.1:1086 2021-01-08 22:54:21 INFO: tcp port reuse enabled 2021-01-08 23:03:28 INFO: using tcp fast open 2021-01-08 23:03:28 INFO: initializing ciphers... aes-256-ctr 2021-01-08 23:03:28 INFO: listening at 127.0.0.1:1086 2021-01-08 23:03:28 INFO: tcp port reuse enabled 2021-01-08 23:04:53 INFO: using tcp fast open 2021-01-08 23:04:53 INFO: initializing ciphers... aes-256-ctr 2021-01-08 23:04:53 INFO: listening at 127.0.0.1:1086 2021-01-08 23:04:53 INFO: tcp port reuse enabled 2021-01-08 23:12:52 INFO: using tcp fast open 2021-01-08 23:12:52 INFO: initializing ciphers... aes-256-ctr 2021-01-08 23:12:52 INFO: listening at 127.0.0.1:1086 2021-01-08 23:12:52 INFO: tcp port reuse enabled

please help me

cuijianjun commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

System and Shadowsocksx-NG version: (please complete the following information):

  • OS Version: [e.g. 10.13.1]
  • Version [e.g. 22]

Diagnoisis file:

Please first upgrade to the latest version. Then export the diagnosis file and upload it to here.

ss-local.log

Please upload the ss-local.log file here the file is in ~/Library/Logs

  1. Open 'Advanced Settings -> enable Verbose Mode'
  2. Continue run Shadowsocksx-NG for 5 minutes
  3. Upload the ~/Library/Logs/ss-local.log here (with or without compress)

Application log

Open the Console.app and search Shadowsocksx-NG Copy paste the log here

Crash Log

If the app crashes and pop up a crash log, please copy and paste here

Additional context Add any other context about the problem here.

2021-01-08 22:49:15 INFO: tcp port reuse enabled 2021-01-08 22:49:17 INFO: using tcp fast open 2021-01-08 22:49:17 INFO: initializing ciphers... aes-256-ctr 2021-01-08 22:49:17 INFO: listening at 127.0.0.1:1086 2021-01-08 22:49:17 INFO: tcp port reuse enabled 2021-01-08 22:54:21 INFO: using tcp fast open 2021-01-08 22:54:21 INFO: initializing ciphers... aes-256-ctr 2021-01-08 22:54:21 INFO: listening at 127.0.0.1:1086 2021-01-08 22:54:21 INFO: tcp port reuse enabled 2021-01-08 23:03:28 INFO: using tcp fast open 2021-01-08 23:03:28 INFO: initializing ciphers... aes-256-ctr 2021-01-08 23:03:28 INFO: listening at 127.0.0.1:1086 2021-01-08 23:03:28 INFO: tcp port reuse enabled 2021-01-08 23:04:53 INFO: using tcp fast open 2021-01-08 23:04:53 INFO: initializing ciphers... aes-256-ctr 2021-01-08 23:04:53 INFO: listening at 127.0.0.1:1086 2021-01-08 23:04:53 INFO: tcp port reuse enabled 2021-01-08 23:12:52 INFO: using tcp fast open 2021-01-08 23:12:52 INFO: initializing ciphers... aes-256-ctr 2021-01-08 23:12:52 INFO: listening at 127.0.0.1:1086 2021-01-08 23:12:52 INFO: tcp port reuse enabled

vivihappy commented 3 years ago

注意不要替换错了,是换Application Support下的插件,不是应用包Contents里的 路径为~/Library/Application Support/ShadowsocksX-NG/v2ray-plugin_1.2.0 也可以从软件里打开(打开后还有一个symlink,点击显示原身再替换) image image image

我提供下新编译的v2ray-plugin,解压后用它替换那个目录下同名的

v2ray-plugin.zip

请问我下载以后显示无法打开该文件是怎么回事...

shmilyoo commented 3 years ago

哈哈,我下载了v2ray 的1.3.1 版本release,然后把plugin里面的软链接指向了 上级目录下面新建的 1.3.1目录里面的新版v2ray , 然后 ss应用都启动不了。 然后果然上面哥们说的go build 编辑就行了, 国内build还要加proxy,蛋疼。

话说排查这个问题,真是蛋疼啊, 先是死活上不了,直接显示 connect error。 ss服务器上看ng log,根本没有连接过来, 本地页面显示错误太快,请求肯定没发出去。发现自己另一个使用 obfs的ss就可以。然后本地抓包 1086端口,发现请求立刻被rst了。 telent发现使用v2ray 1086端口就没开。 想起来前两天刚升级了big sur。 跑来查issue,果然有坑。 这个repo好久没发release了,求更新啊。

还有,谁能告诉我怎么打开log,我在目录中还有/var/log中都没看到有log文件, 也没看到对应的配置, 软件点击图标显示日志也没反应, 谁能告诉我下。 who can tell me where I can see the log file

jearton commented 3 years ago

注意不要替换错了,是换Application Support下的插件,不是应用包Contents里的 路径为~/Library/Application Support/ShadowsocksX-NG/v2ray-plugin_1.2.0 也可以从软件里打开(打开后还有一个symlink,点击显示原身再替换) image image image

我提供下新编译的v2ray-plugin,解压后用它替换那个目录下同名的

v2ray-plugin.zip

厉害,可以了

http600 commented 3 years ago

The basic idea is v2ray-plugin shipped with ShadowsocksX-NG has some wrong(which I do not know, but I do know how to fix the problem), so what do we need to do it replacing v2ray-plugin inside ShadowsocksX-NG with another one, what is another one? here we took from brew system default

  1. install shadowsocksx-ng
  2. install v2ray-plugin, I know shadowsocksx-ng has v2ray-plugin, but we need another one now
  3. replace v2ray-plugin inside shadowsocksx-ng with another one in step 2

here is the demo, by the time you run those commands, it might slightly different with version number or url location etc. you can check it out yourself

➜  ~ brew install shadowsocksx-ng
==> Downloading https://github.com/shadowsocks/ShadowsocksX-NG/releases/download/v1.9.4/ShadowsocksX-NG.1.9.4.zip
==> Downloading from https://github-releases.githubusercontent.com/60844036/38762500-0a36-11ea-9005-6dbb85ecde70?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4C
######################################################################## 100.0%
==> Installing Cask shadowsocksx-ng
==> Moving App 'ShadowsocksX-NG.app' to '/Applications/ShadowsocksX-NG.app'
🍺  shadowsocksx-ng was successfully installed!
➜  ~ brew install v2ray-plugin 
Warning: v2ray-plugin 1.3.1 is already installed and up-to-date.
To reinstall 1.3.1, run:
  brew reinstall v2ray-plugin
➜  ~ brew list v2ray-plugin
/usr/local/Cellar/v2ray-plugin/1.3.1/bin/v2ray-plugin
➜  ~ install /usr/local/Cellar/v2ray-plugin/1.3.1/bin/v2ray-plugin Library/Application\ Support/ShadowsocksX-NG/v2ray-plugin_1.2.0/v2ray-plugin

then start ShadowsocksX-NG, enjoy!

MahdiAbdi commented 3 years ago

Also, make sure, your plugin name is v2ray-plugin and nothing else like v2ray.

nthack commented 3 years ago

注意不要替换错了,是换Application Support下的插件,不是应用包Contents里的 路径为~/Library/Application Support/ShadowsocksX-NG/v2ray-plugin_1.2.0 也可以从软件里打开(打开后还有一个symlink,点击显示原身再替换) image image image

我提供下新编译的v2ray-plugin,解压后用它替换那个目录下同名的

v2ray-plugin.zip

Thanks a FK lot, too well for this!!!! It works for Bug Sur(Big Sur with bugs) 太TM谢谢您了,真的有效了!!! 搞了半天发现这个issue,果然是Bug Sur不支持旧的v2ray-plugin的问题,原本用的是V2rayU客户端,一直在抛io错误、websocket关闭,查看日志一直找不到问题。应该是Bug Sur改了一些Websocket的东西导致这种情况,替换后一切正常。 后面转到ShadowsocksX-NG看verbose日志,发现chacha20-ietf-poly1305没有,搜索就来到这里了。太感谢,已经能成功连通。

解决了

app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe

V2ray的问题。 最后:Bug sur 果然很Bug Sur。

nthack commented 3 years ago

The basic idea is v2ray-plugin shipped with ShadowsocksX-NG has some wrong(which I do not know, but I do know how to fix the problem), so what do we need to do it replacing v2ray-plugin inside ShadowsocksX-NG with another one, what is another one? here we took from brew system default

  1. install shadowsocksx-ng
  2. install v2ray-plugin, I know shadowsocksx-ng has v2ray-plugin, but we need another one now
  3. replace v2ray-plugin inside shadowsocksx-ng with another one in step 2

here is the demo, by the time you run those commands, it might slightly different with version number or url location etc. you can check it out yourself

➜  ~ brew install shadowsocksx-ng
==> Downloading https://github.com/shadowsocks/ShadowsocksX-NG/releases/download/v1.9.4/ShadowsocksX-NG.1.9.4.zip
==> Downloading from https://github-releases.githubusercontent.com/60844036/38762500-0a36-11ea-9005-6dbb85ecde70?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4C
######################################################################## 100.0%
==> Installing Cask shadowsocksx-ng
==> Moving App 'ShadowsocksX-NG.app' to '/Applications/ShadowsocksX-NG.app'
🍺  shadowsocksx-ng was successfully installed!
➜  ~ brew install v2ray-plugin 
Warning: v2ray-plugin 1.3.1 is already installed and up-to-date.
To reinstall 1.3.1, run:
  brew reinstall v2ray-plugin
➜  ~ brew list v2ray-plugin
/usr/local/Cellar/v2ray-plugin/1.3.1/bin/v2ray-plugin
➜  ~ install /usr/local/Cellar/v2ray-plugin/1.3.1/bin/v2ray-plugin Library/Application\ Support/ShadowsocksX-NG/v2ray-plugin_1.2.0/v2ray-plugin

then start ShadowsocksX-NG, enjoy!

Thanks, man, don't need go build, using brew to install the latest v2ray-plugin is good. Thx a lot.

dmitri-vlasov commented 2 years ago

Can anyone help please? macOS Monterey 12.5 (21G72). Nothing works -

Plugin is pointed correctly Снимок экрана 2022-08-03 в 14 03 24

Created an issue https://github.com/shadowsocks/ShadowsocksX-NG/issues/1422