Closed gzw13999 closed 1 month ago
可能权限有问题,我看看
你这个配置文件什么权限,看一下
目前不在那台设备附近,明天查看完回复您。
你这个配置文件什么权限,看一下
文件具体权限如下 File: config.yaml Size: 3048 Blocks: 8 IO Block: 4096 regular file Device: 0,24 Inode: 351 Links: 1 Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-03-18 16:24:43.000000000 +0800 Modify: 2024-03-20 12:59:32.128436567 +0800 Change: 2024-03-20 12:59:32.128436567 +0800 Birth: -
分别测试一下
nohup /etc/openclash/clash -t -d "/etc/openclash" -f "/etc/openclash/config.yaml"
chown root:root /etc/openclash/core/*
nohup /etc/openclash/clash -t -d "/etc/openclash" -f "/etc/openclash/config.yaml"
nohup /etc/openclash/clash -t -d "/etc/openclash" -f "/etc/openclash/config.yaml"
root@iStoreOS:~# nohup /etc/openclash/clash -t -d "/etc/openclash" -f "/etc/openclash/config.yaml"
nohup: ignoring input and appending output to 'nohup.out'
root@iStoreOS:~# ls
nohup.out
root@iStoreOS:~# cat nohup.out
time="2024-03-21T05:04:31.210782056Z" level=error msg="open /etc/openclash/config.yaml: permission denied"
configuration file /etc/openclash/config.yaml test failed
chown root:root /etc/openclash/core/* nohup /etc/openclash/clash -t -d "/etc/openclash" -f "/etc/openclash/config.yaml"
root@iStoreOS:~# chown root:root /etc/openclash/core/*
root@iStoreOS:~# nohup /etc/openclash/clash -t -d "/etc/openclash" -f "/etc/openclash/config.yaml"
nohup: ignoring input and appending output to 'nohup.out'
root@iStoreOS:~#
root@iStoreOS:~# ls
nohup.out
root@iStoreOS:~# cat nohup.out
time="2024-03-21T05:05:48.066935201Z" level=info msg="Start initial configuration in progress"
time="2024-03-21T05:05:48.06816106Z" level=info msg="Geodata Loader mode: memconservative"
time="2024-03-21T05:05:48.068206268Z" level=info msg="Geosite Matcher implementation: succinct"
time="2024-03-21T05:05:48.079287712Z" level=warning msg="Deprecated: Use Sniff instead"
time="2024-03-21T05:05:48.079359753Z" level=info msg="Initial configuration complete, total time: 12ms"
configuration file /etc/openclash/config.yaml test is successful
chown root:root /etc/openclash/core/* 给完权限后已经可以正常运行了,谢谢。
Verify Steps
OpenClash Version
v0.46.003
Bug on Environment
Official OpenWrt
OpenWrt Version
v0.46.003
Bug on Platform
Linux-armv7
Describe the Bug
内核具体日志 2024-03-18 16:24:44 level=error msg="open /etc/openclash/config.yaml: permission denied" 2024-03-18 16:21:54 level=error msg="open /etc/openclash/config.yaml: permission denied" 2024-03-18 16:21:22 level=error msg="open /etc/openclash/config.yaml: permission denied"
To Reproduce
升级v0.46.003 提示升级完提示版本查询失败,于是我就刷新了页面但是页面一刷新就提示页面不存在了,整个刷新服务里面openclash插件的选项都没了,于是我就通过安装包重新安装了插件,刚开始安装的V0.46.001版本服务可以正常运行,我再次升级后服务器就无法揿动了查看内核日志就显示 2024-03-18 16:21:22 level=error msg="open /etc/openclash/config.yaml: permission denied"
OpenClash Log
OpenClash Config
No response
Expected Behavior
1.升级失败BUG,已经不是首次遇到了 2.v0.46.003版本无法读取旧的配置启动服务
Additional Context
No response