Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS Big sur, TrojanX is not work! #31

Open
kaelinda opened this issue Jul 25, 2020 · 25 comments
Open

MacOS Big sur, TrojanX is not work! #31

kaelinda opened this issue Jul 25, 2020 · 25 comments

Comments

@kaelinda
Copy link

Describe the bug
升级了MacOS Big Sur beta版本后,TrojanX 能正常打开,但是无法访问墙外网络,Google 访问失败。
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]

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.

@kaelinda
Copy link
Author

Welcome to trojan 1.14.1
[2020-07-12 15:30:04] [WARN] trojan service (client) started at 127.0.0.1:1080
[2020-07-12 16:13:10] [WARN] got signal: 15
[2020-07-12 16:13:10] [WARN] trojan service stopped
Welcome to trojan 1.14.1
[2020-07-12 18:46:31] [WARN] trojan service (client) started at 127.0.0.1:1080
[2020-07-12 21:55:42] [WARN] got signal: 15
[2020-07-12 21:55:42] [WARN] trojan service stopped
Welcome to trojan 1.14.1
[2020-07-13 14:42:23] [WARN] trojan service (client) started at 127.0.0.1:1080
[2020-07-13 14:45:07] [WARN] got signal: 15
[2020-07-13 14:45:07] [WARN] trojan service stopped
Welcome to trojan 1.14.1
[2020-07-13 15:53:28] [WARN] trojan service (client) started at 127.0.0.1:1080
[2020-07-15 13:29:17] [ERROR] 127.0.0.1:61300 cannot establish connection to remote server jp2.chuqianglai.com:443: Operation timed out
[2020-07-15 13:29:39] [ERROR] 127.0.0.1:61364 cannot establish connection to remote server jp2.chuqianglai.com:443: Operation timed out
[2020-07-18 14:32:59] [ERROR] 127.0.0.1:51157 SSL handshake failed with jp2.chuqianglai.com:443: Operation timed out
[2020-07-19 11:39:47] [ERROR] 127.0.0.1:58842 SSL handshake failed with jp2.chuqianglai.com:443: Operation timed out
[2020-07-19 11:39:47] [ERROR] 127.0.0.1:58841 SSL handshake failed with jp2.chuqianglai.com:443: Operation timed out
[2020-07-22 09:23:44] [WARN] got signal: 15
[2020-07-22 09:23:44] [WARN] trojan service stopped
Welcome to trojan 1.14.1
[2020-07-22 17:46:39] [WARN] trojan service (client) started at 127.0.0.1:1080
[2020-07-22 17:47:02] [ERROR] 127.0.0.1:64949 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-22 17:47:02] [ERROR] 127.0.0.1:64957 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-22 17:47:02] [ERROR] 127.0.0.1:64971 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-23 15:00:25] [ERROR] 127.0.0.1:51167 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-23 15:00:55] [ERROR] 127.0.0.1:51168 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-23 15:19:26] [ERROR] 127.0.0.1:54084 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-23 15:21:58] [ERROR] 127.0.0.1:54664 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-23 15:21:58] [ERROR] 127.0.0.1:54709 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-23 15:21:58] [ERROR] 127.0.0.1:54710 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-23 15:21:58] [ERROR] 127.0.0.1:54714 cannot resolve remote server hostname jp2.chuqianglai.com: Host not found (authoritative)
[2020-07-23 15:22:12] [ERROR] 127.0.0.1:54518 cannot establish connection to remote server jp2.chuqianglai.com:443: Operation timed out
[2020-07-23 17:19:41] [ERROR] 127.0.0.1:52336 unknown protocol
[2020-07-23 19:48:33] [WARN] got signal: 15
[2020-07-23 19:48:33] [WARN] trojan service stopped

@jacobtangyin
Copy link

+1

3 similar comments
@softfn
Copy link

softfn commented Aug 28, 2020

+1

@jiahao-shen
Copy link

+1

@alexanderqiu
Copy link

+1

@liujb
Copy link

liujb commented Oct 20, 2020

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

@PeterFuscan
Copy link

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

哈哈哈我也是一样的问题,第一个测试版本能用,第二个就打不开(20A5395g),按照这个方案终于解决了

@Hanyuxiaoorz
Copy link

+1

@Hanyuxiaoorz
Copy link

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

我复制了之后也不得行。。。。然后我直接在这个里面配置 config.json 了,用 start.command 启动

@ClarkKryptonite
Copy link

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

这个可以

@Hanyuxiaoorz
Copy link

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

我复制了之后也不得行。。。。然后我直接在这个里面配置 config.json 了,用 start.command 启动

cd ~/Library/Application\ Support/TrojanX/

@k-zha14
Copy link

k-zha14 commented Nov 17, 2020

楼上同学这么操作后,不知道大家现在可以正常使用“复制终端命令”,在终端里走trojan代理吗?我以前可以,现在是"Failed to connect to 127.0.0.1 port 1081: Connection refused".

问题得到初步解决,排查过程及解决方案如下:


lsof -i:1081
发现本来应该用作http监听端口的1081没有被占用,大致确认是http代理未启动的原因;
lsof -i:1080
socks5端口正常工作;

.zshrc文件alias走socks5解决了。

目前感觉big sur之后,trojanX bug有点多,希望社区小伙伴一起努力合并个新版本

@larryspace
Copy link

楼上同学这么操作后,不知道大家现在可以正常使用“复制终端命令”,在终端里走trojan代理吗?我以前可以,现在是"Failed to connect to 127.0.0.1 port 1081: Connection refused".

问题得到初步解决,排查过程及解决方案如下:

lsof -i:1081
发现本来应该用作http监听端口的1081没有被占用,大致确认是http代理未启动的原因;
lsof -i:1080
socks5端口正常工作;

.zshrc文件alias走socks5解决了。

目前感觉big sur之后,trojanX bug有点多,希望社区小伙伴一起努力合并个新版本

你好,请问是还要做其他操作吗
我使用
export http_proxy=socks5://127.0.0.1:1080;
export https_proxy=socks5://127.0.0.1:1080;
还是不行

@hdzhx
Copy link

hdzhx commented Nov 21, 2020

以为我的macos版本太低的原因,我一直没升级系统,可以打开,可以扫import节点,端口1080,一点反应都没有,console下
CGXRemoveWindowFromWindowMovementGroup: window 0x888 is not attached to window 0xb16
so,谁知道除了这个外,还有什么可以用trojan for macos的,谢谢

@devtofu
Copy link

devtofu commented Nov 23, 2020

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

有效

@xiangbohua
Copy link

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

完美解决!thx

@daQiuQiu
Copy link

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

可以的

@zhenzou
Copy link

zhenzou commented Dec 11, 2020

替换后,http代理还是不能使用。可以 http://www.privoxy.org/ 下载一个最新的 3.0.29版,自己编译下,替换trojan X自带的。

@kikiloveswift
Copy link

最根本的原因是 Big Sur 执行脚本 launchctl load -w "$HOME/Library/LaunchAgents/TrojanX.trojan.plist" load error.
年前先准备面试,等年后入职了,我抽时间修复更新提 PR

@x931890193
Copy link

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

就很棒

@1129530686
Copy link

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

有用

@noachianark
Copy link

给BIG sur的同学一个workaround:

  1. 先安装privoxy

brew install privoxy

  1. 然后配置privoxy转发socks5t到http

accept-intercepted-requests 1
listen-address 127.0.0.1:8118
forward-socks5 / 127.0.0.1:1080 .
forward 192.168../ .
forward 10.../ .
forward 127.
../

  1. brew services start privoxy
  2. export http_proxy=http:127.0.0.1:8118; export https_proxy=$http_proxy;

最好把 3)和4)写进alias,这样用一个命令就可以了。
像这样:
alias proxy='brew services start privoxy;export http_proxy=http://127.0.0.1:8118;export https_proxy=$http_proxy;'
alias unproxy='unset http_proxy;unset https_proxy;brew services stop privoxy;'

@ycy3675001
Copy link

bigsur 11.6, 刚开始TrojanX还可以使用,更新之后第二天就不可以了。 用 “下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,”这个方法也不行。如果大家有没更新的就更新系统了;另求小伙伴有解决办法吗?感谢感谢

@creasyimm
Copy link

https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip 下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,亲测好使。

Big Sur 10.6, 好用。
It works.

@creasyimm
Copy link

bigsur 11.6, 刚开始TrojanX还可以使用,更新之后第二天就不可以了。 用 “下载新的Trojan,解压后,把trojan执行文件copy到 ~/Library/Application Support/TrojanX,”这个方法也不行。如果大家有没更新的就更新系统了;另求小伙伴有解决办法吗?感谢感谢

我的是最新的系统版本,亲测好用。
先用命令行自己启动一下,看看有没有报错,如果运行正常,通过 gui 关闭再开启一下试试。

cd ~/Library/Application\ Support/TrojanX/
./trojan -c trojan.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests