vernesong / OpenClash

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

更新后openclash启动失败 #2032

Closed madwood123 closed 2 years ago

madwood123 commented 2 years ago

插件日志: 2022-02-10 00:24:07 第六步:删除 OpenClash 残留文件... 2022-02-10 00:24:07 第五步: 重启 Dnsmasq 程序... 2022-02-10 00:24:07 第四步: 关闭 Clash 主程序... 2022-02-10 00:24:06 第三步: 关闭 OpenClash 守护程序... 2022-02-10 00:24:06 第二步: 删除 OpenClash 防火墙规则... 2022-02-10 00:24:06 第一步: 备份当前策略组状态... 2022-02-10 00:24:06 OpenClash 开始关闭... 2022-02-10 00:24:04 错误: 无法获取General部分的转发端口设置, OpenClash 使用原始配置文件启动失败 2022-02-10 00:24:02 错误: 无法获取DNS部分的运行模式设置, OpenClash 使用原始配置文件启动失败 2022-02-10 00:24:00 错误: 无法获取DNS部分的监听端口设置, OpenClash 使用原始配置文件启动失败 2022-02-10 00:23:59 错误: OpenClash 启动失败,尝试使用原始配置文件启动... 2022-02-10 00:23:55 提示: 检测到配置了 TUN 内核专属功能,调用 TUN 内核启动... 2022-02-10 00:23:54 错误: OpenClash 启动失败,尝试还原第三方规则并重新启动 Clash 主程序... 2022-02-10 00:23:54 第六步: 等待主程序下载外部文件... 2022-02-10 00:23:50 第五步: 检查内核启动状态... 2022-02-10 00:23:50 提示: 检测到配置了 TUN 内核专属功能,调用 TUN 内核启动... 2022-02-10 00:23:50 第四步: 启动主程序... 2022-02-10 00:23:45 第三步: 修改配置文件... 2022-02-10 00:23:44 正在设置Fake-IP黑名单... 2022-02-10 00:23:43 第二步: 组件运行前检查... 2022-02-10 00:23:43 第一步: 获取配置... 2022-02-10 00:23:43 OpenClash 开始启动... 2022-02-10 00:23:43 第六步:删除 OpenClash 残留文件... 2022-02-10 00:23:42 第五步: 重启 Dnsmasq 程序... 2022-02-10 00:23:42 第四步: 关闭 Clash 主程序... 2022-02-10 00:23:42 第三步: 关闭 OpenClash 守护程序... 2022-02-10 00:23:41 第二步: 删除 OpenClash 防火墙规则... 2022-02-10 00:23:41 第一步: 备份当前策略组状态... 2022-02-10 00:23:41 OpenClash 开始关闭... 内核日志: 2022-02-10 08:23:56 level=fatal msg="Parse config error: proxy group[0]: use or proxies missing" 2022-02-10 08:23:51 level=fatal msg="Parse config error: proxy group[0]: use or proxies missing"

OpenClash 调试日志

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



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

主机型号: Phicomm N1
固件版本: OpenWrt SNAPSHOT r3728-9621c3544
LuCI版本: git-21.238.35254-83494a9-1
内核版本: 5.4.148-flippy-64+o
处理器架构: aarch64_cortex-a53

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

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

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

dnsmasq-full: 已安装
coreutils: 已安装
coreutils-nohup: 已安装
bash: 已安装
curl: 已安装
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内核版本: 2022.01.27
Tun内核文件: 存在
Tun内核运行权限: 正常

Dev内核版本: v1.9.0-7-gb1a639f
Dev内核文件: 存在
Dev内核运行权限: 正常

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

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

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

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

#===================== 配置文件 =====================#

proxy-groups:
- name: Auto - UrlTest
  type: url-test
  url: https://cp.cloudflare.com/generate_204
  interval: '600'
  tolerance: '150'
- name: Proxy
  type: select
  proxies:
  - Auto - UrlTest
  - DIRECT
- name: Domestic
  type: select
  proxies:
  - DIRECT
  - Proxy
- name: Others
  type: select
  proxies:
  - Proxy
  - DIRECT
  - Domestic
- name: Microsoft
  type: select
  proxies:
  - DIRECT
  - Proxy
- name: Apple
  type: select
  proxies:
  - DIRECT
  - Proxy
- name: Google FCM
  type: select
  proxies:
  - DIRECT
  - Proxy
- name: Scholar
  type: select
  proxies:
  - DIRECT
  - Proxy
- name: Bilibili
  type: select
  proxies:
  - Asian TV
  - DIRECT
- name: Bahamut
  type: select
  proxies:
  - Global TV
  - DIRECT
- name: HBO Max
  type: select
  proxies:
  - Global TV
  - DIRECT
- name: HBO Go
  type: select
  proxies:
  - Global TV
  - DIRECT
- name: Pornhub
  type: select
  proxies:
  - Global TV
  - DIRECT
- name: Netflix
  type: select
  proxies:
  - Global TV
  - DIRECT
- name: Disney
  type: select
  proxies:
  - Global TV
  - DIRECT
- name: Youtube
  type: select
  disable-udp: true
  proxies:
  - Global TV
  - DIRECT
- name: Spotify
  type: select
  proxies:
  - Global TV
  - DIRECT
- name: Steam
  type: select
  proxies:
  - DIRECT
  - Proxy
- name: AdBlock
  type: select
  proxies:
  - REJECT
  - DIRECT
  - Proxy
- name: Asian TV
  type: select
  proxies:
  - DIRECT
  - Proxy
- name: Global TV
  type: select
  proxies:
  - Proxy
  - DIRECT
- name: Speedtest
  type: select
  proxies:
  - Proxy
  - DIRECT
- name: Telegram
  type: select
  proxies:
  - Proxy
  - DIRECT
- name: PayPal
  type: select
  proxies:
  - DIRECT
  - Proxy
rules:

#===================== 防火墙设置 =====================#

#IPv4 NAT chain

# Generated by iptables-save v1.8.7 on Wed Feb  9 23:49:44 2022
*nat
:PREROUTING ACCEPT [2259:429230]
:INPUT ACCEPT [1750:390629]
:OUTPUT ACCEPT [299:20594]
:POSTROUTING ACCEPT [1186:85553]
:DOCKER - [0:0]
:MINIUPNPD - [0:0]
:MINIUPNPD-POSTROUTING - [0:0]
:postrouting_VPN_rule - [0:0]
:postrouting_lan_rule - [0:0]
:postrouting_rule - [0:0]
:postrouting_vpn_rule - [0:0]
:postrouting_wan_rule - [0:0]
:prerouting_VPN_rule - [0:0]
:prerouting_lan_rule - [0:0]
:prerouting_rule - [0:0]
:prerouting_vpn_rule - [0:0]
:prerouting_wan_rule - [0:0]
:zone_VPN_postrouting - [0:0]
:zone_VPN_prerouting - [0:0]
:zone_lan_postrouting - [0:0]
:zone_lan_prerouting - [0:0]
:zone_vpn_postrouting - [0:0]
:zone_vpn_prerouting - [0:0]
:zone_wan_postrouting - [0:0]
:zone_wan_prerouting - [0:0]
-A PREROUTING -p udp -m udp --dport 53 -j REDIRECT --to-ports 53
-A PREROUTING -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 53
-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
-A PREROUTING -m comment --comment "!fw3: Custom prerouting rule chain" -j prerouting_rule
-A PREROUTING -i eth0 -m comment --comment "!fw3" -j zone_lan_prerouting
-A PREROUTING -i ipsec0 -m comment --comment "!fw3" -j zone_VPN_prerouting
-A PREROUTING -i tun0 -m comment --comment "!fw3" -j zone_vpn_prerouting
-A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
-A POSTROUTING -s 172.31.0.0/24 ! -o docker0 -j MASQUERADE
-A POSTROUTING -m comment --comment "!fw3: Custom postrouting rule chain" -j postrouting_rule
-A POSTROUTING -o eth0 -m comment --comment "!fw3" -j zone_lan_postrouting
-A POSTROUTING -o ipsec0 -m comment --comment "!fw3" -j zone_VPN_postrouting
-A POSTROUTING -o tun0 -m comment --comment "!fw3" -j zone_vpn_postrouting
-A DOCKER -i docker0 -j RETURN
-A zone_VPN_postrouting -m comment --comment "!fw3: Custom VPN postrouting rule chain" -j postrouting_VPN_rule
-A zone_VPN_prerouting -m comment --comment "!fw3: Custom VPN prerouting rule chain" -j prerouting_VPN_rule
-A zone_lan_postrouting -j MINIUPNPD-POSTROUTING
-A zone_lan_postrouting -m comment --comment "!fw3: Custom lan postrouting rule chain" -j postrouting_lan_rule
-A zone_lan_prerouting -j MINIUPNPD
-A zone_lan_prerouting -m comment --comment "!fw3: Custom lan prerouting rule chain" -j prerouting_lan_rule
-A zone_vpn_postrouting -m comment --comment "!fw3: Custom vpn postrouting rule chain" -j postrouting_vpn_rule
-A zone_vpn_postrouting -m comment --comment "!fw3" -j MASQUERADE
-A zone_vpn_prerouting -m comment --comment "!fw3: Custom vpn prerouting rule chain" -j prerouting_vpn_rule
-A zone_wan_postrouting -m comment --comment "!fw3: Custom wan postrouting rule chain" -j postrouting_wan_rule
-A zone_wan_postrouting -m comment --comment "!fw3" -j MASQUERADE
-A zone_wan_prerouting -m comment --comment "!fw3: Custom wan prerouting rule chain" -j prerouting_wan_rule
COMMIT
# Completed on Wed Feb  9 23:49:44 2022

#IPv4 Mangle chain

# Generated by iptables-save v1.8.7 on Wed Feb  9 23:49:44 2022
*mangle
:PREROUTING ACCEPT [36787:16835446]
:INPUT ACCEPT [21212:12104110]
:FORWARD ACCEPT [15573:4730841]
:OUTPUT ACCEPT [16963:8696907]
:POSTROUTING ACCEPT [32474:13422015]
COMMIT
# Completed on Wed Feb  9 23:49:44 2022

#IPv6 NAT chain

# Generated by ip6tables-save v1.8.7 on Wed Feb  9 23:49:44 2022
*nat
:PREROUTING ACCEPT [561083:131593282]
:INPUT ACCEPT [561083:131593282]
:OUTPUT ACCEPT [1767:156331]
:POSTROUTING ACCEPT [1767:156331]
-A PREROUTING -p udp -m udp --dport 53 -j REDIRECT --to-ports 53
-A PREROUTING -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 53
COMMIT
# Completed on Wed Feb  9 23:49:44 2022

#IPv6 Mangle chain

# Generated by ip6tables-save v1.8.7 on Wed Feb  9 23:49:44 2022
*mangle
:PREROUTING ACCEPT [776994:187647687]
:INPUT ACCEPT [776992:187647551]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [8267:849009]
:POSTROUTING ACCEPT [8396:890291]
COMMIT
# Completed on Wed Feb  9 23:49:44 2022

#===================== IPSET状态 =====================#

Name: cn
Name: ct
Name: cnc
Name: cmcc
Name: crtc
Name: cernet
Name: gwbn
Name: othernet
Name: music
Name: mwan3_connected_v4
Name: mwan3_connected_v6
Name: mwan3_source_v6
Name: mwan3_dynamic_v4
Name: mwan3_dynamic_v6
Name: mwan3_custom_v4
Name: mwan3_custom_v6
Name: mwan3_connected

#===================== 路由表状态 =====================#

#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
172.31.0.0      0.0.0.0         255.255.255.0   U     0      0        0 docker0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
#ip route list
default via 192.168.0.1 dev eth0 proto static 
172.31.0.0/24 dev docker0 proto kernel scope link src 172.31.0.1 linkdown 
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.100 
#ip rule show
0:  from all lookup local
32766:  from all lookup main
32767:  from all lookup default

#===================== Tun设备状态 =====================#

#===================== 端口占用状态 =====================#

#===================== 测试本机DNS查询 =====================#

Server:     127.0.0.1
Address:    127.0.0.1:53

Non-authoritative answer:
www.baidu.com   canonical name = www.a.shifen.com
Name:   www.a.shifen.com
Address: 180.101.49.11
Name:   www.a.shifen.com
Address: 180.101.49.12

Non-authoritative answer:
www.baidu.com   canonical name = www.a.shifen.com

#===================== resolv.conf.d =====================#

# Interface lan
nameserver 192.168.0.1

#===================== 测试本机网络连接 =====================#

HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Connection: keep-alive
Content-Length: 277
Content-Type: text/html
Date: Wed, 09 Feb 2022 15:49:45 GMT
Etag: "575e1f60-115"
Last-Modified: Mon, 13 Jun 2016 02:50:08 GMT
Pragma: no-cache
Server: bfe/1.0.8.18

#===================== 测试本机网络下载 =====================#

#===================== 最近运行日志 =====================#

2022-02-09 23:46:25 Step 6: Wait For The File Downloading...
2022-02-09 23:46:26 Error: OpenClash Can Not Start, Try Use Backup Rules Start Again...
2022-02-09 23:46:26 Tip: Detected The Exclusive Function of The TUN Core, Use TUN Core to Start...
time="2022-02-09T23:46:27+08:00" level=fatal msg="Parse config error: proxy group[0]: `use` or `proxies` missing"
2022-02-09 23:46:31 Error: OpenClash Can Not Start, Try Use Raw Config Restart Again...
2022-02-09 23:46:32 Error: Get DNS 'listen' Option Error, OpenClash Can Not Start With Raw Config File
2022-02-09 23:46:33 Warning: Multiple Restart Scripts Running, Exit...
2022-02-09 23:46:34 Error: Get DNS 'enhanced-mode' Option Error, OpenClash Can Not Start With Raw Config File
2022-02-09 23:46:36 Error: Get General 'redir-port' Option Error, OpenClash Can Not Start With Raw Config File
2022-02-09 23:46:38 OpenClash Stoping...
2022-02-09 23:46:38 Step 1: Backup The Current Groups State...
2022-02-09 23:46:38 Step 2: Delete OpenClash Firewall Rules...
2022-02-09 23:46:39 Step 3: Close The OpenClash Daemons...
2022-02-09 23:46:39 Step 4: Close The Clash Core Process...
2022-02-09 23:46:39 Step 5: Restart Dnsmasq...
2022-02-09 23:46:39 Step 6: Delete OpenClash Residue File...
2022-02-09 23:46:52 Start Updating Config File【clash】...
2022-02-09 23:46:52 Error: Config File【clash】Subscribed Failed, Trying to Download Without Agent...
2022-02-09 23:46:52 Error:【clash】Update Error, Please Try Again Later...
2022-02-09 23:49:02 OpenClash Stoping...
2022-02-09 23:49:02 Step 1: Backup The Current Groups State...
2022-02-09 23:49:02 Step 2: Delete OpenClash Firewall Rules...
2022-02-09 23:49:03 Step 3: Close The OpenClash Daemons...
2022-02-09 23:49:03 Step 4: Close The Clash Core Process...
2022-02-09 23:49:03 Step 5: Restart Dnsmasq...
2022-02-09 23:49:04 Step 6: Delete OpenClash Residue File...
2022-02-09 23:49:04 OpenClash Start Running...
2022-02-09 23:49:04 Step 1: Get The Configuration...
2022-02-09 23:49:04 Step 2: Check The Components...
2022-02-09 23:49:05 Tip: Because of the file【 /etc/config/openclash 】modificated, Pause quick start...
2022-02-09 23:49:05 Step 3: Modify The Config File...
2022-02-09 23:49:10 Step 4: Start Running The Clash Core...
2022-02-09 23:49:10 Tip: Detected The Exclusive Function of The TUN Core, Use TUN Core to Start...
2022-02-09 23:49:10 Step 5: Check The Core Status...
time="2022-02-09T23:49:11+08:00" level=fatal msg="Parse config error: proxy group[0]: `use` or `proxies` missing"
2022-02-09 23:49:14 Step 6: Wait For The File Downloading...
2022-02-09 23:49:15 Error: OpenClash Can Not Start, Try Use Backup Rules Start Again...
2022-02-09 23:49:15 Tip: Detected The Exclusive Function of The TUN Core, Use TUN Core to Start...
time="2022-02-09T23:49:16+08:00" level=fatal msg="Parse config error: proxy group[0]: `use` or `proxies` missing"
2022-02-09 23:49:19 Error: OpenClash Can Not Start, Try Use Raw Config Restart Again...
2022-02-09 23:49:20 Error: Get DNS 'listen' Option Error, OpenClash Can Not Start With Raw Config File
2022-02-09 23:49:22 Error: Get DNS 'enhanced-mode' Option Error, OpenClash Can Not Start With Raw Config File
2022-02-09 23:49:24 Error: Get General 'redir-port' Option Error, OpenClash Can Not Start With Raw Config File
2022-02-09 23:49:26 OpenClash Stoping...
2022-02-09 23:49:26 Step 1: Backup The Current Groups State...
2022-02-09 23:49:26 Step 2: Delete OpenClash Firewall Rules...
2022-02-09 23:49:27 Step 3: Close The OpenClash Daemons...
2022-02-09 23:49:27 Step 4: Close The Clash Core Process...
2022-02-09 23:49:27 Step 5: Restart Dnsmasq...
2022-02-09 23:49:27 Step 6: Delete OpenClash Residue File...

#===================== 活动连接信息 =====================#
vernesong commented 2 years ago

配置文件不完整,你重新一键生成

madwood123 commented 2 years ago

配置文件不完整,你重新一键生成

重新生成也无法启动

vernesong commented 2 years ago

你节点呢?策略组里面啥都没有

xyz0217 commented 2 years ago

老铁,我也遇到了这问题,我的解决方法,由于是手动生成的配置文件,省略了 文件里 proxies: 之上的配置,加上就好了,proxies: 那行上面加上下面的 mixed-port: 7890 allow-lan: true bind-address: "*" mode: rule log-level: info external-controller: 127.0.0.1:9090 dns: enable: true ipv6: false default-nameserver:

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