juewuy / ShellCrash

Run sing-box/mihomo as client in shell
7.89k stars 1.36k forks source link

issue: /etc/rc.common: line 1: /data/clash: Permission denied #246

Closed lucewang closed 1 year ago

lucewang commented 1 year ago

基本每使用一天,clash就会连不上网,重启会出现下面错误 /etc/rc.common: line 1: /data/clash: Permission denied , 只能重新安装解决;已经采用软固化且成功。

juewuy commented 1 year ago

@lucewang 提供一下设备信息

lucewang commented 1 year ago

@juewuy Redmi ax6000 ,只是SSH,没有装op

juewuy commented 1 year ago

@lucewang 尝试切换保守模式

kennyzhuce commented 1 year ago

@lucewang 你好,我也出现了同样的问题,能否请教下,后来是具体是怎么解决的?谢谢

kennyzhuce commented 1 year ago

设备ax6000,clash版本1.6.3 1,我尝试启用了,“更多工具”里边的“小米设备软固化ssh”,无法启动clash,也不能开机启动clash。 2,我尝试启用了,“clash进阶设置”里边的“使用保守模式启动”,可以成功启动clash服务了,但是设备reboot以后,依然不能开机启动clash,虽然已经提示“已设置开机启动” 3,另外,我选择“禁用clash开机启动”后,再次选择“允许clash开机启动”后,有报错: “ cat: read error: Is a directory cat: read error: Is a directory cat: read error: Is a directory cat: read error: Is a directory 已设置Clash开机启动! ”

kennyzhuce commented 1 year ago

覆盖升级到1.6.5版本,问题解决了,现在reboot,也可以开机启动了。

lucewang commented 1 year ago

@kennyzhuce 我也是 1.6.5, 用保守模式启动后,目前尚未出现 Permission denied 错误,继续观察。 @juewuy 请问保守模式和标准模式有什么区别,会影响性能吗?

juewuy commented 1 year ago

@lucewang 区别不大

lucewang commented 1 year ago

@juewuy 使用保守模式启动一周,没有出现上述错误了,谢谢。 已启用每天更新订阅重起,不再继续跟踪,该问题关闭。

geekyouth commented 1 year ago

我在小米主路由 ax6s 后台新增端口转发后, image

就出现以下故障:

image

参考 https://github.com/juewuy/ShellClash/issues/226#issue-1373105062 ,也出现类似的重复命令

alias clash="/data/clash/clash.sh"
export clashdir="/data/clash"
alias clash="/data/clash/clash.sh"
export clashdir="/data/clash"
alias clash="/data/clash/clash.sh"
export clashdir="/data/clash"
alias clash="/data/clash/clash.sh"
export clashdir="/data/clash"
alias clash="/data/clash/clash.sh"
export clashdir="/data/clash"
root@XiaoQiang:~# cat /etc/profile

最后我更新到 1.6.5 内测版,可以启动,目前观察中。