vernesong / OpenClash

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

Ruby 依赖异常 请确认ruby依赖工作正常后重试 #1146

Closed 00LT00 closed 3 years ago

00LT00 commented 3 years ago

openwrt版本是 19.07.5 r11257-5090152ae3 openclash版本试过最新的0.41.14,0.41.07 都是这个报错,但是直接用ruby -v命令可以看到ruby是正常安装的 运行日志里可以看到报错是 Error: Ruby Works Abnormally, Please Check The Ruby Library Depends And Try Again!

vernesong commented 3 years ago

ruby -ryaml -E UTF-8 -e "YAML.load_file('/usr/share/openclash/res/default.yaml')"

 输入命令查看错误信息
00LT00 commented 3 years ago

依赖问题,重装ruby后解决了,现在的问题是没法下载内核,没法获取配置文件,看起来是不能联网,调试日志的最后部分是这样的

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

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

#===================== 最近运行日志 =====================#
2021-01-07 22:53:50 Warning: OpenClash Now Disabled, Need Start From Luci Page, Exit...
2021-01-07 22:58:01 Error: OpenClash 【Dev】 Core Update Error
2021-01-07 22:58:09 Error: Config 【stc-club】 Download Faild
2021-01-07 22:58:09 Error: Config 【stc-club】Update Error
2021-01-07 22:58:26 Error: 【Tun】Core Version Check Error, Please Try Again After A few Seconds
2021-01-07 22:58:26 Error: OpenClash 【Game】 Core Update Error
2021-01-07 22:58:26 Error: OpenClash 【Dev】 Core Update Error
2021-01-07 22:58:36 OpenClash Version Check Error, Please Try Again After A few seconds
2021-01-07 22:59:40 Error: OpenClash 【Dev】 Core Update Error

尝试后发现wget可以联网,但是curl不可以,会报错:

Error relocating /usr/lib/libcurl.so.4: wolfSSL_UseALPN: symbol not found
Error relocating /usr/lib/libcurl.so.4: wolfSSL_ALPN_GetProtocol: symbol not found

没搜到这个相关解决办法,重装curl也没效果,是不是这个不能联网导致的下载失败呀,有什么解决办法吗

vernesong commented 3 years ago

issues里面搜索下curl的内容

00LT00 commented 3 years ago

重刷了固件解决了curl问题,现在是启动一切正常,但是完全不能用,ipv6也关了,不知道怎么回事,调试日志:

OpenClash 调试日志

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


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

主机型号: Newifi-D2
固件版本: OpenWrt 19.07.5 r11257-5090152ae3
LuCI版本: git-20.341.57626-51f55b5-1
内核版本: 4.14.209
处理器架构: mipsel_24kc

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

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

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

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

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): 已安装

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

运行状态: 运行中
进程pid: 11208
运行权限: 11208: cap_dac_override,cap_net_bind_service,cap_net_admin,cap_net_raw,cap_sys_resource=eip
运行用户: nobody
已选择的架构: linux-mipsle-softfloat

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

Game内核版本: 
Game内核文件: 不存在
Game内核运行权限: 否

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

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

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

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

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

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

mixed-port: 7893
allow-lan: true
mode: direct
log-level: silent
external-controller: 0.0.0.0:9090
proxy-groups:

xxxxxxxxxxxx
xxxxxx

- GEOIP,CN,Domestic
- MATCH,Others
redir-port: 7892
port: 7890
socks-port: 7891
bind-address: "*"
external-ui: "/usr/share/openclash/dashboard"
dns:
  enable: true
  ipv6: false
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  listen: 127.0.0.1:7874
  fake-ip-filter:
  - "*.lan"
  - time.windows.com
  - time.nist.gov
  - time.apple.com
  - time.asia.apple.com
  - "*.ntp.org.cn"
  - "*.openwrt.pool.ntp.org"
  - time1.cloud.tencent.com
  - time.ustc.edu.cn
  - pool.ntp.org
  - ntp.ubuntu.com
  - ntp.aliyun.com
  - ntp1.aliyun.com
  - ntp2.aliyun.com
  - ntp3.aliyun.com
  - ntp4.aliyun.com
  - ntp5.aliyun.com
  - ntp6.aliyun.com
  - ntp7.aliyun.com
  - time1.aliyun.com
  - time2.aliyun.com
  - time3.aliyun.com
  - time4.aliyun.com
  - time5.aliyun.com
  - time6.aliyun.com
  - time7.aliyun.com
  - "*.time.edu.cn"
  - time1.apple.com
  - time2.apple.com
  - time3.apple.com
  - time4.apple.com
  - time5.apple.com
  - time6.apple.com
  - time7.apple.com
  - time1.google.com
  - time2.google.com
  - time3.google.com
  - time4.google.com
  - music.163.com
  - "*.music.163.com"
  - "*.126.net"
  - musicapi.taihe.com
  - music.taihe.com
  - songsearch.kugou.com
  - trackercdn.kugou.com
  - "*.kuwo.cn"
  - api-jooxtt.sanook.com
  - api.joox.com
  - joox.com
  - y.qq.com
  - "*.y.qq.com"
  - streamoc.music.tc.qq.com
  - mobileoc.music.tc.qq.com
  - isure.stream.qqmusic.qq.com
  - dl.stream.qqmusic.qq.com
  - aqqmusic.tc.qq.com
  - amobile.music.tc.qq.com
  - "*.xiami.com"
  - "*.music.migu.cn"
  - music.migu.cn
  - "*.msftconnecttest.com"
  - "*.msftncsi.com"
  - localhost.ptlogin2.qq.com
  - "+.srv.nintendo.net"
  - "+.stun.playstation.net"
  - xbox.*.microsoft.com
  - "+.xboxlive.com"
  - proxy.golang.org
  - stun.*.*
  - stun.*.*.*
  - heartbeat.belkin.com
  - "*.linksys.com"
  - "*.linksyssmartwifi.com"
  nameserver:
  - 114.114.114.114
  - 119.29.29.29
  fallback:
  - https://cloudflare-dns.com/dns-query
  - https://dns.google/dns-query
  - https://1.1.1.1/dns-query
  - tls://8.8.8.8:853
  fallback-filter:
    geoip: false
    ipcidr:
    - 0.0.0.0/8
    - 10.0.0.0/8
    - 100.64.0.0/10
    - 127.0.0.0/8
    - 169.254.0.0/16
    - 172.16.0.0/12
    - 192.0.0.0/24
    - 192.0.2.0/24
    - 192.88.99.0/24
    - 192.168.0.0/16
    - 198.18.0.0/15
    - 198.51.100.0/24
    - 203.0.113.0/24
    - 224.0.0.0/4
    - 240.0.0.0/4
    - 255.255.255.255/32
    domain:
    - "+.google.com"
    - "+.facebook.com"
    - "+.youtube.com"
    - "+.githubusercontent.com"
ipv6: false
interface-name: wlan0

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

#NAT chain

# Generated by iptables-save v1.8.3 on Wed Jan 13 19:54:07 2021
*nat
:PREROUTING ACCEPT [88:21129]
:INPUT ACCEPT [174:9564]
:OUTPUT ACCEPT [316:19026]
:POSTROUTING ACCEPT [316:19026]
:openclash - [0:0]
:openclash_output - [0:0]
:postrouting_lan_rule - [0:0]
:postrouting_rule - [0:0]
:postrouting_wan_rule - [0:0]
:prerouting_lan_rule - [0:0]
:prerouting_rule - [0:0]
:prerouting_wan_rule - [0:0]
:zone_lan_postrouting - [0:0]
:zone_lan_prerouting - [0:0]
:zone_wan_postrouting - [0:0]
:zone_wan_prerouting - [0:0]
-A PREROUTING -d 8.8.4.4/32 -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 7892
-A PREROUTING -d 8.8.8.8/32 -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 7892
-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 comment --comment "!fw3: Custom prerouting rule chain" -j prerouting_rule
-A PREROUTING -i br-lan -m comment --comment "!fw3" -j zone_lan_prerouting
-A PREROUTING -i pppoe-wan -m comment --comment "!fw3" -j zone_wan_prerouting
-A PREROUTING -p tcp -j openclash
-A OUTPUT -j openclash_output
-A POSTROUTING -m comment --comment "!fw3: Custom postrouting rule chain" -j postrouting_rule
-A POSTROUTING -o br-lan -m comment --comment "!fw3" -j zone_lan_postrouting
-A POSTROUTING -o pppoe-wan -m comment --comment "!fw3" -j zone_wan_postrouting
-A openclash -m set --match-set localnetwork dst -j RETURN
-A openclash -p tcp -j REDIRECT --to-ports 7892
-A openclash_output -m set --match-set localnetwork dst -j RETURN
-A openclash_output -d 198.18.0.0/16 -p tcp -m owner ! --uid-owner 65534 -j REDIRECT --to-ports 7892
-A openclash_output -m owner ! --uid-owner 65534 -m set ! --match-set common_ports dst -j RETURN
-A openclash_output -p tcp -m owner ! --uid-owner 65534 -j REDIRECT --to-ports 7892
-A zone_lan_postrouting -m comment --comment "!fw3: Custom lan postrouting rule chain" -j postrouting_lan_rule
-A zone_lan_prerouting -m comment --comment "!fw3: Custom lan prerouting rule chain" -j prerouting_lan_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 Jan 13 19:54:07 2021

#Mangle chain

# Generated by iptables-save v1.8.3 on Wed Jan 13 19:54:07 2021
*mangle
:PREROUTING ACCEPT [134752:46206468]
:INPUT ACCEPT [64356:7705277]
:FORWARD ACCEPT [68991:38271764]
:OUTPUT ACCEPT [85713:12165865]
:POSTROUTING ACCEPT [154545:50431089]
-A FORWARD -o pppoe-wan -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
-A FORWARD -i pppoe-wan -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
COMMIT
# Completed on Wed Jan 13 19:54:07 2021

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

Name: localnetwork
Name: common_ports

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

#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.106.128.1    0.0.0.0         UG    0      0        0 pppoe-wan
10.106.128.1    0.0.0.0         255.255.255.255 UH    0      0        0 pppoe-wan
192.168.9.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
#ip route list
default via 10.106.128.1 dev pppoe-wan proto static 
10.106.128.1 dev pppoe-wan proto kernel scope link src 10.106.248.79 
192.168.9.0/24 dev br-lan proto kernel scope link src 192.168.9.1 
#ip rule show
0:  from all lookup local 
32766:  from all lookup main 
32767:  from all lookup default 

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

tcp        0      0 :::7893                 :::*                    LISTEN      11208/clash
tcp        0      0 :::9090                 :::*                    LISTEN      11208/clash
tcp        0      0 :::7890                 :::*                    LISTEN      11208/clash
tcp        0      0 :::7891                 :::*                    LISTEN      11208/clash
tcp        0      0 :::7892                 :::*                    LISTEN      11208/clash
udp        0      0 127.0.0.1:7874          0.0.0.0:*                           11208/clash
udp        0      0 :::7891                 :::*                                11208/clash
udp        0      0 :::7892                 :::*                                11208/clash
udp        0      0 :::7893                 :::*                                11208/clash

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

Server:     127.0.0.1
Address:    127.0.0.1#53

Name:      www.baidu.com
Address 1: 198.18.0.4
*** Can't find www.baidu.com: No answer

#===================== resolv.conf.auto =====================#

# Interface wan
nameserver 211.140.13.188
nameserver 211.140.188.188
# Interface wan_6
nameserver 2409:8028:2000::1111
nameserver 2409:8028:2000::2222

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

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

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

time="2021-01-13T11:29:40Z" level=info msg="Start initial compatible provider STC-CLUBS"
time="2021-01-13T11:29:40Z" level=info msg="Start initial compatible provider Domestic"
time="2021-01-13T11:29:40Z" level=info msg="Start initial compatible provider Others"
2021-01-13 19:29:50 History:【stc-club.yaml】 Restore Successful
2021-01-13 19:29:07 OpenClash Start Successful
time="2021-01-13T11:40:10Z" level=info msg="Start initial compatible provider STC-CLUBS"
time="2021-01-13T11:40:10Z" level=info msg="Start initial compatible provider Domestic"
time="2021-01-13T11:40:10Z" level=info msg="Start initial compatible provider Others"
2021-01-13 19:40:19 History:【stc-club.yaml】 Restore Successful
2021-01-13 19:39:38 OpenClash Start Successful
2021-01-13 19:43:21 History:【stc-club.yaml】 Update Successful
time="2021-01-13T11:44:18Z" level=info msg="Start initial compatible provider STC-CLUBS"
time="2021-01-13T11:44:18Z" level=info msg="Start initial compatible provider Domestic"
time="2021-01-13T11:44:18Z" level=info msg="Start initial compatible provider Others"
2021-01-13 19:44:27 History:【stc-club.yaml】 Restore Successful
2021-01-13 19:43:46 OpenClash Start Successful
time="2021-01-13T11:49:48Z" level=info msg="Start initial compatible provider STC-CLUBS"
time="2021-01-13T11:49:48Z" level=info msg="Start initial compatible provider Domestic"
time="2021-01-13T11:49:48Z" level=info msg="Start initial compatible provider Others"
2021-01-13 19:49:56 History:【stc-club.yaml】 Restore Successful
2021-01-13 19:49:15 OpenClash Start Successful
time="2021-01-13T11:52:49Z" level=info msg="Start initial compatible provider STC-CLUBS"
time="2021-01-13T11:52:49Z" level=info msg="Start initial compatible provider Domestic"
time="2021-01-13T11:52:49Z" level=info msg="Start initial compatible provider Others"
2021-01-13 19:52:57 History:【stc-club.yaml】 Restore Successful
2021-01-13 19:52:16 OpenClash Start Successful

不知道哪里设置错了 路由表是这样的: image

hcym commented 3 years ago

慢慢来吧,我也是醉了一年多才会😂

vernesong commented 3 years ago

@00LT00 默认代理模式: direct

abclq commented 3 years ago

依赖问题,重装ruby后解决了,现在的问题是没法下载内核,没法获取配置文件,看起来是不能联网,调试日志的最后部分是这样的

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

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

#===================== 最近运行日志 =====================#
2021-01-07 22:53:50 Warning: OpenClash Now Disabled, Need Start From Luci Page, Exit...
2021-01-07 22:58:01 Error: OpenClash 【Dev】 Core Update Error
2021-01-07 22:58:09 Error: Config 【stc-club】 Download Faild
2021-01-07 22:58:09 Error: Config 【stc-club】Update Error
2021-01-07 22:58:26 Error: 【Tun】Core Version Check Error, Please Try Again After A few Seconds
2021-01-07 22:58:26 Error: OpenClash 【Game】 Core Update Error
2021-01-07 22:58:26 Error: OpenClash 【Dev】 Core Update Error
2021-01-07 22:58:36 OpenClash Version Check Error, Please Try Again After A few seconds
2021-01-07 22:59:40 Error: OpenClash 【Dev】 Core Update Error

尝试后发现wget可以联网,但是curl不可以,会报错:

Error relocating /usr/lib/libcurl.so.4: wolfSSL_UseALPN: symbol not found
Error relocating /usr/lib/libcurl.so.4: wolfSSL_ALPN_GetProtocol: symbol not found

没搜到这个相关解决办法,重装curl也没效果,是不是这个不能联网导致的下载失败呀,有什么解决办法吗

这个东西依赖咋安装的啊

00LT00 commented 3 years ago

@00LT00 默认代理模式: direct

@vernesong 不是呀,我开启openclash后连百度都上不去了,就是完全的断网状态,代理模式换了跟没换没啥区别

00LT00 commented 3 years ago

依赖问题,重装ruby后解决了,现在的问题是没法下载内核,没法获取配置文件,看起来是不能联网,调试日志的最后部分是这样的

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

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

#===================== 最近运行日志 =====================#
2021-01-07 22:53:50 Warning: OpenClash Now Disabled, Need Start From Luci Page, Exit...
2021-01-07 22:58:01 Error: OpenClash 【Dev】 Core Update Error
2021-01-07 22:58:09 Error: Config 【stc-club】 Download Faild
2021-01-07 22:58:09 Error: Config 【stc-club】Update Error
2021-01-07 22:58:26 Error: 【Tun】Core Version Check Error, Please Try Again After A few Seconds
2021-01-07 22:58:26 Error: OpenClash 【Game】 Core Update Error
2021-01-07 22:58:26 Error: OpenClash 【Dev】 Core Update Error
2021-01-07 22:58:36 OpenClash Version Check Error, Please Try Again After A few seconds
2021-01-07 22:59:40 Error: OpenClash 【Dev】 Core Update Error

尝试后发现wget可以联网,但是curl不可以,会报错:

Error relocating /usr/lib/libcurl.so.4: wolfSSL_UseALPN: symbol not found
Error relocating /usr/lib/libcurl.so.4: wolfSSL_ALPN_GetProtocol: symbol not found

没搜到这个相关解决办法,重装curl也没效果,是不是这个不能联网导致的下载失败呀,有什么解决办法吗

这个东西依赖咋安装的啊

建议重刷。。。我把ruby卸了又装还是没用,最后重刷一边固件

00LT00 commented 3 years ago

@vernesong 我感觉是dns设置的问题,本机和路由器都能ping通IP地址,但是dns都没法获取 image 这图下面是开了openclash后的,ping百度没问题,我dns设置是完全没动过的,是哪里设置有问题吗 image

hcym commented 3 years ago

1907用老版本,新的一直用master编译的,都没有什么问题

abclq commented 3 years ago

害 我也是重新安装了系统发自我的iPhone------------------ 原始邮件 ------------------发件人: Zi Lin notifications@github.com发送时间: 2021年1月17日 20:37收件人: vernesong/OpenClash OpenClash@noreply.github.com抄送: abclq wjwj436508@gmail.com, Comment comment@noreply.github.com主题: 回复:[vernesong/OpenClash] Ruby 依赖异常 请确认ruby依赖工作正常后重试 (#1146)

依赖问题,重装ruby后解决了,现在的问题是没法下载内核,没法获取配置文件,看起来是不能联网,调试日志的最后部分是这样的

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

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

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

2021-01-07 22:53:50 Warning: OpenClash Now Disabled, Need Start From Luci Page, Exit... 2021-01-07 22:58:01 Error: OpenClash 【Dev】 Core Update Error 2021-01-07 22:58:09 Error: Config 【stc-club】 Download Faild 2021-01-07 22:58:09 Error: Config 【stc-club】Update Error 2021-01-07 22:58:26 Error: 【Tun】Core Version Check Error, Please Try Again After A few Seconds 2021-01-07 22:58:26 Error: OpenClash 【Game】 Core Update Error 2021-01-07 22:58:26 Error: OpenClash 【Dev】 Core Update Error 2021-01-07 22:58:36 OpenClash Version Check Error, Please Try Again After A few seconds 2021-01-07 22:59:40 Error: OpenClash 【Dev】 Core Update Error

尝试后发现wget可以联网,但是curl不可以,会报错: Error relocating /usr/lib/libcurl.so.4: wolfSSL_UseALPN: symbol not found Error relocating /usr/lib/libcurl.so.4: wolfSSL_ALPN_GetProtocol: symbol not found

没搜到这个相关解决办法,重装curl也没效果,是不是这个不能联网导致的下载失败呀,有什么解决办法吗

这个东西依赖咋安装的啊

建议重刷。。。我把ruby卸了又装还是没用,最后重刷一边固件

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/vernesong/OpenClash/issues/1146#issuecomment-761805557", "url": "https://github.com/vernesong/OpenClash/issues/1146#issuecomment-761805557", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

vernesong commented 3 years ago

curl的问题

523295116 commented 3 years ago

同样的问题,卸载ruby重装还是一样,

AdoShan commented 3 years ago

我这也提示ruby依赖异常,rubny -v报错Error relocating /usr/lib/libruby.so.3.0: copy_file_range: symbol not found 但是日志就只有 luci-compat(Luci-19.07) 未安装,安装就好多提示文件被其他包提供,完全装不上

OpenClash 调试日志

生成时间: 2021-08-20 13:12:49 插件版本: v0.43.01-beta 隐私提示: 上传此日志前请注意检查、屏蔽公网IP、节点、密码等相关敏感信息


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

主机型号: QEMU Standard PC (i440FX + PIIX, 1996)
固件版本: 
LuCI版本: git-19.126.55403-8648f7e-1
内核版本: 4.14.115
处理器架构: x86_64

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

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

#此项结果应仅有配置文件的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): 未安装

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

运行状态: 运行中
进程pid: 
运行权限: 
运行用户: 
已选择的架构: linux-amd64

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

Game内核版本: 20210310-83-g5eab7b1
Game内核文件: 存在
Game内核运行权限: 正常

Dev内核版本: v1.6.5-24-g426ca36
Dev内核文件: 存在
Dev内核运行权限: 正常

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

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

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

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

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

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

#NAT chain

# Generated by iptables-save v1.8.2 on Fri Aug 20 13:12:50 2021
*nat
:PREROUTING ACCEPT [9:965]
:INPUT ACCEPT [9:965]
:OUTPUT ACCEPT [5:302]
:POSTROUTING ACCEPT [4:240]
:MINIUPNPD - [0:0]
:MINIUPNPD-POSTROUTING - [0:0]
:postrouting_lan_rule - [0:0]
:postrouting_rule - [0:0]
:postrouting_wan_rule - [0:0]
:prerouting_lan_rule - [0:0]
:prerouting_rule - [0:0]
:prerouting_wan_rule - [0:0]
:zone_lan_postrouting - [0:0]
:zone_lan_prerouting - [0:0]
:zone_wan_postrouting - [0:0]
:zone_wan_prerouting - [0:0]
-A PREROUTING -m comment --comment "!fw3: Custom prerouting rule chain" -j prerouting_rule
-A PREROUTING -i br-lan -m comment --comment "!fw3" -j zone_lan_prerouting
-A PREROUTING -i eth1 -m comment --comment "!fw3" -j zone_wan_prerouting
-A POSTROUTING -m comment --comment "!fw3: Custom postrouting rule chain" -j postrouting_rule
-A POSTROUTING -o br-lan -m comment --comment "!fw3" -j zone_lan_postrouting
-A POSTROUTING -o eth1 -m comment --comment "!fw3" -j zone_wan_postrouting
-A zone_lan_postrouting -m comment --comment "!fw3: Custom lan postrouting rule chain" -j postrouting_lan_rule
-A zone_lan_postrouting -j MINIUPNPD-POSTROUTING
-A zone_lan_postrouting -m comment --comment "!fw3" -j MASQUERADE
-A zone_lan_prerouting -m comment --comment "!fw3: Custom lan prerouting rule chain" -j prerouting_lan_rule
-A zone_lan_prerouting -j MINIUPNPD
-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 FULLCONENAT
-A zone_wan_prerouting -m comment --comment "!fw3: Custom wan prerouting rule chain" -j prerouting_wan_rule
-A zone_wan_prerouting -m comment --comment "!fw3" -j FULLCONENAT
COMMIT
# Completed on Fri Aug 20 13:12:50 2021

#Mangle chain

# Generated by iptables-save v1.8.2 on Fri Aug 20 13:12:50 2021
*mangle
:PREROUTING ACCEPT [232:29073]
:INPUT ACCEPT [232:29073]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [339:322022]
:POSTROUTING ACCEPT [339:322022]
-A FORWARD -o eth1 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
COMMIT
# Completed on Fri Aug 20 13:12:50 2021

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

Name: mwan3_connected_v4
Name: mwan3_connected_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.2.1     0.0.0.0         UG    0      0        0 br-lan
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
#ip route list
default via 192.168.2.1 dev br-lan proto static 
192.168.2.0/24 dev br-lan proto kernel scope link src 192.168.2.3 
#ip rule show
0:  from all lookup local 
32766:  from all lookup main 
32767:  from all lookup default 

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

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

Name:      www.baidu.com
Address 1: 36.152.44.96 localhost
Address 2: 36.152.44.95 localhost

#===================== resolv.conf.auto =====================#

# Interface lan
nameserver 192.168.2.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: Fri, 20 Aug 2021 05:12:51 GMT
Etag: "575e1f7c-115"
Last-Modified: Mon, 13 Jun 2016 02:50:36 GMT
Pragma: no-cache
Server: bfe/1.0.8.18

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

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

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

我这也提示ruby依赖异常,rubny -v报错Error relocating /usr/lib/libruby.so.3.0: copy_file_range: symbol not found 但是日志就只有 luci-compat(Luci-19.07) 未安装,安装就好多提示文件被其他包提供,完全装不上

OpenClash 调试日志

生成时间: 2021-08-20 13:12:49 插件版本: v0.43.01-beta 隐私提示: 上传此日志前请注意检查、屏蔽公网IP、节点、密码等相关敏感信息


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

主机型号: QEMU Standard PC (i440FX + PIIX, 1996)
固件版本: 
LuCI版本: git-19.126.55403-8648f7e-1
内核版本: 4.14.115
处理器架构: x86_64

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

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

#此项结果应仅有配置文件的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): 未安装

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

运行状态: 运行中
进程pid: 
运行权限: 
运行用户: 
已选择的架构: linux-amd64

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

Game内核版本: 20210310-83-g5eab7b1
Game内核文件: 存在
Game内核运行权限: 正常

Dev内核版本: v1.6.5-24-g426ca36
Dev内核文件: 存在
Dev内核运行权限: 正常

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

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

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

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

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

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

#NAT chain

# Generated by iptables-save v1.8.2 on Fri Aug 20 13:12:50 2021
*nat
:PREROUTING ACCEPT [9:965]
:INPUT ACCEPT [9:965]
:OUTPUT ACCEPT [5:302]
:POSTROUTING ACCEPT [4:240]
:MINIUPNPD - [0:0]
:MINIUPNPD-POSTROUTING - [0:0]
:postrouting_lan_rule - [0:0]
:postrouting_rule - [0:0]
:postrouting_wan_rule - [0:0]
:prerouting_lan_rule - [0:0]
:prerouting_rule - [0:0]
:prerouting_wan_rule - [0:0]
:zone_lan_postrouting - [0:0]
:zone_lan_prerouting - [0:0]
:zone_wan_postrouting - [0:0]
:zone_wan_prerouting - [0:0]
-A PREROUTING -m comment --comment "!fw3: Custom prerouting rule chain" -j prerouting_rule
-A PREROUTING -i br-lan -m comment --comment "!fw3" -j zone_lan_prerouting
-A PREROUTING -i eth1 -m comment --comment "!fw3" -j zone_wan_prerouting
-A POSTROUTING -m comment --comment "!fw3: Custom postrouting rule chain" -j postrouting_rule
-A POSTROUTING -o br-lan -m comment --comment "!fw3" -j zone_lan_postrouting
-A POSTROUTING -o eth1 -m comment --comment "!fw3" -j zone_wan_postrouting
-A zone_lan_postrouting -m comment --comment "!fw3: Custom lan postrouting rule chain" -j postrouting_lan_rule
-A zone_lan_postrouting -j MINIUPNPD-POSTROUTING
-A zone_lan_postrouting -m comment --comment "!fw3" -j MASQUERADE
-A zone_lan_prerouting -m comment --comment "!fw3: Custom lan prerouting rule chain" -j prerouting_lan_rule
-A zone_lan_prerouting -j MINIUPNPD
-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 FULLCONENAT
-A zone_wan_prerouting -m comment --comment "!fw3: Custom wan prerouting rule chain" -j prerouting_wan_rule
-A zone_wan_prerouting -m comment --comment "!fw3" -j FULLCONENAT
COMMIT
# Completed on Fri Aug 20 13:12:50 2021

#Mangle chain

# Generated by iptables-save v1.8.2 on Fri Aug 20 13:12:50 2021
*mangle
:PREROUTING ACCEPT [232:29073]
:INPUT ACCEPT [232:29073]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [339:322022]
:POSTROUTING ACCEPT [339:322022]
-A FORWARD -o eth1 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
COMMIT
# Completed on Fri Aug 20 13:12:50 2021

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

Name: mwan3_connected_v4
Name: mwan3_connected_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.2.1     0.0.0.0         UG    0      0        0 br-lan
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
#ip route list
default via 192.168.2.1 dev br-lan proto static 
192.168.2.0/24 dev br-lan proto kernel scope link src 192.168.2.3 
#ip rule show
0:    from all lookup local 
32766:    from all lookup main 
32767:    from all lookup default 

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

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

Name:      www.baidu.com
Address 1: 36.152.44.96 localhost
Address 2: 36.152.44.95 localhost

#===================== resolv.conf.auto =====================#

# Interface lan
nameserver 192.168.2.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: Fri, 20 Aug 2021 05:12:51 GMT
Etag: "575e1f7c-115"
Last-Modified: Mon, 13 Jun 2016 02:50:36 GMT
Pragma: no-cache
Server: bfe/1.0.8.18

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

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

#===================== 活动连接信息 =====================#

这种缺指令符的只能重新编译固件

tony-wh commented 2 years ago

openwrt版本是 19.07.5 r11257-5090152ae3 openclash版本试过最新的0.41.14,0.41.07 都是这个报错,但是直接用ruby -v命令可以看到ruby是正常安装的 运行日志里可以看到报错是 Error: Ruby Works Abnormally, Please Check The Ruby Library Depends And Try Again!

18.06遇到同样的问题,反复重装ruby无法解决。后来了解到是18.06的libc有个bug会导致ruby加载动态库时会判断为库版本不兼容,18.06之后的libc已解决了这个问题。 讨论链接:https://github.com/openwrt/packages/issues/9297

解决方案

  1. 升级为19.07或以上版本;
  2. 替换libc;
  3. 修改ruby代码(dln.c第1333行)https://github.com/ruby/ruby/blob/39ee412b14cbd60e108a2de62715c254f41f6bb2/dln.c#L1325-L1334
abclq commented 2 years ago

tony-wh @.***>于2021年10月7日 周四下午11:11写道:

openwrt版本是 19.07.5 r11257-5090152ae3 openclash版本试过最新的0.41.14,0.41.07 都是这个报错,但是直接用ruby -v命令可以看到ruby是正常安装的 运行日志里可以看到报错是 Error: Ruby Works Abnormally, Please Check The Ruby Library Depends And Try Again!

18.06遇到同样的问题,反复重装ruby无法解决。后来了解到是18.06的libc有个bug会导致ruby加载动态库时会判断为库版本不兼容,18.06之后的libc已解决了这个问题。 讨论链接:https://github.com/openwrt/packages/issues/9297

解决方案

  1. 升级为19.07或以上版本;
  2. 替换libc;
  3. 修改ruby代码(dln.c第1333行) https://github.com/ruby/ruby/blob/39ee412b14cbd60e108a2de62715c254f41f6bb2/dln.c#L1325-L1334

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vernesong/OpenClash/issues/1146#issuecomment-937887379, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXKLSGXKCN4EKKDBNG63UDUFW2AJANCNFSM4VX6EZJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

谢谢 老板😁

atois commented 1 year ago

mark