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] 0.45.129更新0.46.046后插件设置标签页无法打开,重启OpenWRT后恢复 #4320

Open
5 of 7 tasks
huangsijun17 opened this issue Feb 9, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@huangsijun17
Copy link

huangsijun17 commented Feb 9, 2025

Verify Steps

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

OpenClash Version

0.46.046

Bug on Environment

Official OpenWrt

OpenWrt Version

OpenWrt R22.7.7 / LuCI Master (git-22.211.60098-feaa27a)

Bug on Platform

Linux-amd64(x86-64)

Describe the Bug

原有OpenClash0.45.129,启动时下载文件失败,故对本项目更新。
下载ipk文件安装后更新成功,但打开插件设置标签页时报错如下:

/usr/lib/lua/luci/dispatcher.lua:474: Failed to execute cbi dispatcher target for entry '/admin/services/openclash/settings'.
The called action terminated with an exception:
/usr/lib/lua/luci/model/cbi/openclash/settings.lua:19: attempt to call field 'lanip' (a nil value)
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:474: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:126: in function </usr/lib/lua/luci/dispatcher.lua:125>

考虑为luci缓存错误导致的lua错误,故重启OpenWRT。重启后该问题自然恢复。

To Reproduce

在OpenWRT上从0.45.129升级到0.46.046,不重启OpenWRT。

OpenClash Log

暂无

OpenClash Config

Expected Behavior

  1. 在更新后清理缓存。
  2. 在本项目wiki中的常见问题里加上对于类似情况时重启OpenWRT的建议。

Additional Context

No response

@huangsijun17 huangsijun17 added the bug Something isn't working label Feb 9, 2025
@xiaoyangdkj
Copy link

更新前关闭openclash即可
openclash在自更新之前会运行关闭脚本
你在手动安装之前没有关闭openclash

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