Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 找到了造成“错误:Ruby 依赖异常,无法校验配置文件,请确认ruby依赖工作正常后重试!”的原因 #4157

Open
5 of 7 tasks
j999yp opened this issue Nov 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@j999yp
Copy link

j999yp commented Nov 5, 2024

Verify Steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Branch 我知道 OpenClash 的 Dev 分支切换开关位于插件设置-版本更新中,或者我会手动下载并安装 Dev 分支的 OpenClash
  • Latest 我已经使用最新 Dev 版本测试过,问题依旧存在
  • Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • Definite 这确实是 OpenClash 出现的问题
  • Contributors 我有能力协助 OpenClash 开发并解决此问题
  • Meaningless 我提交的是无意义的催促更新或修复请求

OpenClash Version

v0.46.033-beta

Bug on Environment

Official OpenWrt

OpenWrt Version

23.05.3 r23809-234f1a2efa

Bug on Platform

Linux-amd64(x86-64)

Describe the Bug

在官方镜像上自行编译安装ruby和openclash后,openclash无法正常启动,会报 “错误:Ruby 依赖异常,无法校验配置文件,请确认ruby依赖工作正常后重试!” ,通过在shell里一步步模拟执行service openclash start,发现该报错来源于ruby无法正确处理/etc/init.d/openclash第379行中的中文中括号("【"和"】"),报错信息为"invalid multibyte char (US-ASCII)",改成英文中括号后恢复正常

To Reproduce

见上

OpenClash Log

OpenClash Config

No response

Expected Behavior

Additional Context

No response

@j999yp j999yp added the bug Something isn't working label Nov 5, 2024
@vernesong
Copy link
Owner

没遇到过这种报错,因为插件大部分日志都是这种格式,建议你把375-382行的代码拿出来单独执行,再看结果

@j999yp
Copy link
Author

j999yp commented Nov 7, 2024

没遇到过这种报错,因为插件大部分日志都是这种格式,建议你把375-382行的代码拿出来单独执行,再看结果

我就是在sh里逐行执行start脚本才定位到这里的,之前也有很多明明装了ruby却报ruby依赖异常的issue,我觉得很大可能都是这里的问题

@vernesong
Copy link
Owner

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants