vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
16.89k stars 3.1k forks source link

openclash自动更新订阅失败,且需要删除当前配置文件重新手动更新才能正常启动 #1212

Closed yubanmeiqin9048 closed 2 years ago

yubanmeiqin9048 commented 3 years ago

在arm64设备上运行openclash出现的问题,启动时使用默认配置(在配置文件订阅中添加订阅地址+神机转换模板后没有作过任何修改)

1.OpenClash 调试日志

生成时间: 2021-02-09 11:34:03 插件版本: v0.41.14-beta 隐私提示: 上传此日志前请注意检查、屏蔽公网IP、节点、密码等相关敏感信息



#===================== 系统信息 =====================#

主机型号: Phicomm N1
固件版本: OpenWrt SNAPSHOT r3056-9bc05c5ce
LuCI版本: git-20.343.54716-6fc079f-1
内核版本: 5.4.93-flippy-52+o
处理器架构: aarch64_cortex-a53

#此项在使用Tun模式时应为ACCEPT
防火墙转发: ACCEPT

#此项有值时建议到网络-接口-lan的设置中禁用IPV6的DHCP
IPV6-DHCP: server

#此项结果应仅有配置文件的DNS监听地址
Dnsmasq转发设置: 

#===================== 依赖检查 =====================#

dnsmasq-full: 已安装
coreutils: 已安装
coreutils-nohup: 已安装
bash: 已安装
curl: 已安装
jsonfilter: 已安装
ca-certificates: 已安装
ipset: 已安装
ip-full: 已安装
iptables-mod-tproxy: 已安装
kmod-ipt-tproxy: 已安装
iptables-mod-extra: 已安装
kmod-ipt-extra: 已安装
libcap: 已安装
libcap-bin: 已安装
ruby: 已安装
ruby-yaml: 已安装
ruby-psych: 已安装
ruby-pstore: 已安装
ruby-dbm: 已安装
kmod-tun(TUN模式): 已安装
luci-compat(Luci-19.07): 已安装

#===================== 内核检查 =====================#

运行状态: 未运行
已选择的架构: linux-armv8

#下方无法显示内核版本号时请确认您的内核版本是否正确或者有无权限
Tun内核版本: 2021.01.01.g0ab75c5
Tun内核文件: 存在
Tun内核运行权限: 正常

Game内核版本: v0.17.0-232-ge389e33
Game内核文件: 存在
Game内核运行权限: 正常

Dev内核版本: v1.3.5-4-g6fedd7e
Dev内核文件: 存在
Dev内核运行权限: 正常

#===================== 插件设置 =====================#

当前配置文件: /etc/openclash/config/config.yaml
启动配置文件: /etc/openclash/config.yaml
运行模式: fake-ip-mix
默认代理模式: rule
UDP流量转发(tproxy): 停用
DNS劫持: 启用
自定义DNS: 启用
IPV6-DNS解析: 启用
禁用Dnsmasq缓存: 启用
自定义规则: 停用
仅允许内网: 停用
仅代理命中规则流量: 停用
仅允许常用端口流量: 停用
绕过中国大陆IP: 停用

#启动异常时建议关闭此项后重试
混合节点: 停用
保留配置: 停用

#启动异常时建议关闭此项后重试
第三方规则: 停用

2.ssh capsh --print
root@OpenWrt:~# capsh --print
Current: =ep
Bounding set =cap_chown,cap_dac_override,cap_dac_read_search,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,cap_linux_immutable,cap_net_bind_service,cap_net_broadcast,cap_net_admin,cap_net_raw,cap_ipc_lock,cap_ipc_owner,cap_sys_module,cap_sys_rawio,cap_sys_chroot,cap_sys_ptrace,cap_sys_pacct,cap_sys_admin,cap_sys_boot,cap_sys_nice,cap_sys_resource,cap_sys_time,cap_sys_tty_config,cap_mknod,cap_lease,cap_audit_write,cap_audit_control,cap_setfcap,cap_mac_override,cap_mac_admin,cap_syslog,cap_wake_alarm,cap_block_suspend,cap_audit_read
Ambient set =
Current IAB: 
Securebits: 00/0x0/1'b0
 secure-noroot: no (unlocked)
 secure-no-suid-fixup: no (unlocked)
 secure-keep-caps: no (unlocked)
 secure-no-ambient-raise: no (unlocked)
uid=0(root) euid=0(root)
gid=0(root)
groups=
Guessed mode: UNCERTAIN (0)

3.最近运行日志
2021-02-09 04:00:49 Error: Get General 'redir-port' Option Error, OpenClash Can Not Start With Raw Config File
2021-02-09 04:00:49 Error: Get DNS 'enhanced-mode' Option Error, OpenClash Can Not Start With Raw Config File
2021-02-09 04:00:49 Error: Get DNS 'listen' Option Error, OpenClash Can Not Start With Raw Config File
2021-02-09 04:00:49 Error: OpenClash Can Not Start, Try Use Raw Config Restart Again
2021-02-09 04:01:03 level=fatal msg="Parse config error: rules[418] [DOMAIN,impservice.dictapp.youdao.com,🛡Guar] error: proxy [🛡Guar] not found"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider 🧯Fallback"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider 🕹AutoTest"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider 🛡Guard"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider 🎞Streaming"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider 🧭Final"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider 🎞StreamingSE"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider 🎮Game"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider 🌑Proxy"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider 🌐Direct"
2021-02-09 04:01:03 level=info msg="Start initial compatible provider ⛔️Reject"
2021-02-09 04:00:01 Config 【config】 Update Successful
2021-02-08 04:00:00 Updated Config【config】 No Change, Do Nothing
2021-02-08 00:00:00 GEOIP Database Update Error
2021-02-08 00:00:00 Other Rules Not Enable, Update Stop
2021-02-07 04:01:06 Warning: OpenClash Start Successful, Please Note That Network May Abnormal With IPV6's DHCP Server
2021-02-07 04:01:32 History:【config.yaml】 Restore Successful
2021-02-07 04:01:24 level=info msg="DNS server listening at: 0.0.0.0:7874"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider 🧭Final"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider 🎞StreamingSE"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider 🎞Streaming"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider ⛔️Reject"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider 🌐Direct"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider 🎮Game"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider 🛡Guard"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider 🌑Proxy"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider 🧯Fallback"
2021-02-07 04:01:24 level=info msg="Start initial compatible provider 🕹AutoTest"
2021-02-07 04:00:00 Config 【config】 Update Successful
vernesong commented 3 years ago

[DOMAIN,impservice.dictapp.youdao.com,🛡Guar] error: proxy [🛡Guar] not found" 策略组名字错了

yubanmeiqin9048 commented 3 years ago

[DOMAIN,impservice.dictapp.youdao.com,🛡Guar] error: proxy [🛡Guar] not found" 策略组名字错了

订阅转换模板也会出现这种问题吗?

vernesong commented 3 years ago

原因不明,你可以测试下确认后去sub那反馈

yubanmeiqin9048 commented 3 years ago

原因不明,你可以测试下确认后去sub那反馈

好的,我这重装了三次系统,隔三差五出现这个问题

master-lzh commented 3 years ago

我amd64的上面也会出现这种问题,自动更新订阅后openclash守护程序经常会关闭,但我查看订阅链接又没问题

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

anjue39 commented 2 years ago

到现在问题依然存在,更新订阅,如果订阅地址不变,会提示配置文件没更新。需要重新读取配置或者删除服务节点'策略,配置文件才可以,难道不可以点更新订阅后自动刷新列表吗?还可以加入一个选择。可以保留上次节点。可以自动去重

zangliu2077 commented 1 year ago

试试关掉openclash再更新订阅,有时运行着插件更新就会出现这个问题

anjue39 commented 1 year ago

ycad面板里的确实能自动更新,但是服务器与策略组管理下面订阅的服务器节点是不会自动更新的,需要删掉然后读取才可以。我主要指的这里

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: zangliu2077 @.> 发送时间: 2022年10月20日 23:56 收件人: vernesong/OpenClash @.> 抄送: anjue39 @.>, Comment @.> 主题: Re: [vernesong/OpenClash] openclash自动更新订阅失败,且需要删除当前配置文件重新手动更新才能正常启动 (#1212)

试试关掉openclash再更新订阅,有时运行着插件更新就会出现这个问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

anjue39 commented 1 year ago

image

anjue39 commented 1 year ago

切换节点必断网,能解决吗?很多时候因为自动切换节点就会中断,比如git pull时

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: zangliu2077 @.> 发送时间: 2022年10月20日 23:56 收件人: vernesong/OpenClash @.> 抄送: anjue39 @.>, Comment @.> 主题: Re: [vernesong/OpenClash] openclash自动更新订阅失败,且需要删除当前配置文件重新手动更新才能正常启动 (#1212)

试试关掉openclash再更新订阅,有时运行着插件更新就会出现这个问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

zangliu2077 commented 1 year ago

切换节点必断网,能解决吗?很多时候因为自动切换节点就会中断,比如git pull时 发自我的iPhone ... ------------------ 原始邮件 ------------------ 发件人: zangliu2077 @.> 发送时间: 2022年10月20日 23:56 收件人: vernesong/OpenClash @.> 抄送: anjue39 @.>, Comment @.> 主题: Re: [vernesong/OpenClash] openclash自动更新订阅失败,且需要删除当前配置文件重新手动更新才能正常启动 (#1212) 试试关掉openclash再更新订阅,有时运行着插件更新就会出现这个问题 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

等作者还有其他大佬回复吧,我也不是很懂,只是这几天发现这个问题,我是订阅更新经常更新失败,然后发现关了能解决,我是直接走配置,服务节点配置这里没动

anjue39 commented 1 year ago

👌,谢谢你。配置到订阅,自动更新到ycad没问题。

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: zangliu2077 @.> 发送时间: 2022年10月21日 01:14 收件人: vernesong/OpenClash @.> 抄送: anjue39 @.>, Comment @.> 主题: Re: [vernesong/OpenClash] openclash自动更新订阅失败,且需要删除当前配置文件重新手动更新才能正常启动 (#1212)

切换节点必断网,能解决吗?很多时候因为自动切换节点就会中断,比如git pull时 发自我的iPhone ... ------------------ 原始邮件 ------------------ 发件人: zangliu2077 @.> 发送时间: 2022年10月20日 23:56 收件人: vernesong/OpenClash @.> 抄送: anjue39 @.>, Comment @.> 主题: Re: [vernesong/OpenClash] openclash自动更新订阅失败,且需要删除当前配置文件重新手动更新才能正常启动 (#1212) 试试关掉openclash再更新订阅,有时运行着插件更新就会出现这个问题 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

等作者还有其他大佬回复吧,我也不是很懂,只是这几天发现这个问题,我是订阅更新经常更新失败,然后发现关了能解决,我是直接走配置,服务节点配置这里没动

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

changxiaokang commented 1 year ago

我也同样遇到这个问题 更新订阅后 需要手动操作才会生效 这点 clash客户端不存在这样的问题 希望作者可以修复一下这个bug

kingsleygithub001 commented 1 year ago

设置了每天定时更新订阅,但是每天都不更新,请问有知道原因的吗