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

[Bug]: mac arm版本无法开启tun模式,开启后报错 #6460

Open
2 tasks done
S6venA opened this issue Jan 8, 2025 · 11 comments
Open
2 tasks done

[Bug]: mac arm版本无法开启tun模式,开启后报错 #6460

S6venA opened this issue Jan 8, 2025 · 11 comments
Labels
bug Something isn't working

Comments

@S6venA
Copy link

S6venA commented Jan 8, 2025

预期情况

开启tun模式

实际情况

报错/Users/xxx/Library/Application Support/v2rayN/bin/run_as_sudo.sh: line 2: pkexec: command not found

复现方法

点击tun模式按钮

日志信息

2025-01-08 20:51:31.1279-INFO /Users/xxx/Library/Application Support/v2rayN/bin/run_as_sudo.sh
2025-01-08 20:51:31.3172-DEBUG CoreHandler,/Users/xxx/Library/Application Support/v2rayN/bin/run_as_sudo.sh: line 2: pkexec: command not found

2025-01-08 20:51:31.3180-DEBUG at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) in /Users/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Handler/CoreHandler.cs:line 264

额外信息

No response

我确认已更新至最新版本

我确认已查询历史issues

@S6venA S6venA added the bug Something isn't working label Jan 8, 2025
@2dust
Copy link
Owner

2dust commented Jan 9, 2025

目前macos版本还没有实现每次输入密码启动tun的功能,会报错。
你可以在Tun设置中输入密码保存后开Tun,这个已经实现

@S6venA
Copy link
Author

S6venA commented Jan 9, 2025

目前macos版本还没有实现每次输入密码启动tun的功能,会报错。 你可以在Tun设置中输入密码保存后开Tun,这个已经实现

提示这个错误:Password:FATAL[0001] start service: pre-start cache file: open cache.db: read-only file system
无法正常代理

@2dust
Copy link
Owner

2dust commented Jan 9, 2025

cache.db 是sing-box的临时文件,应该在配置文件路径下有,你删除掉试一试。
删除了如果不行,可以给这个文件加上可写权限

@S6venA
Copy link
Author

S6venA commented Jan 9, 2025

删除不行,添加可写权限后可以运行代理,但是貌似没有以tun模式运行,同时还是报错:Password:FATAL[0001] start service: pre-start cache file: open cache.db: read-only file system

@S6venA
Copy link
Author

S6venA commented Jan 9, 2025

iShot_2025-01-09_15 20 39

@2dust
Copy link
Owner

2dust commented Jan 9, 2025

如果不开tun,是不是正常?
你用的sing-box是哪个版本?

@2dust
Copy link
Owner

2dust commented Jan 9, 2025

在设置中有个 启用sing-box 缓存文件,你关闭了再试一试

@S6venA
Copy link
Author

S6venA commented Jan 9, 2025

在设置中有个 启用sing-box 缓存文件,你关闭了再试一试

关闭sing-box 缓存文件之后正常运行了。
不开tun的情况下代理也是正常的。

内核版本1.10.6
iShot_2025-01-09_17 02 49

@2dust
Copy link
Owner

2dust commented Jan 9, 2025

目前这个问题就你反馈了,没有人遇到缓存的问题。
你就关闭缓存用先

@S6venA
Copy link
Author

S6venA commented Jan 9, 2025

目前这个问题就你反馈了,没有人遇到缓存的问题。 你就关闭缓存用先

在Windows和Mac上都测试了下,感觉是singbox的内核有问题,两个系统,用tuicv5协议,启用tun就有问题,经常报错,或者启动后无法连接,但是换成xray支持的协议(vless+reality),开启tun就没事,节点都用shadowrocket在Mac上测试是可以连接的

@YosakuraTohu
Copy link

缓存问题我也出现了
截屏2025-01-10 02 03 09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants