sbwml / luci-app-mosdns

一个 DNS 转发器 - OpenWrt 🎁 MosDNS v5 is Ready! 🎉
https://github.com/IrineSistiana/mosdns
1.2k stars 231 forks source link

new LuCi2正常运行,仍显示“MosDNS NOT RUNNING” #236

Closed lengfwong closed 3 months ago

lengfwong commented 3 months ago

测试了下new LuCI,发现log显示插件已经正常运行,设置页面仍旧显示"NOT RUNNING"

image image

sbwml commented 3 months ago

什么版本的 OpenWrt

提供一下这个命令的内容输出:service mosdns info

如果条件允许的话,浏览器 F12 - 网络,MosDNS 页面的 ubus 响应内容也可以给一下。

lengfwong commented 3 months ago

什么版本的 OpenWrt

提供一下这个命令的内容输出:service mosdns info

如果条件允许的话,浏览器 F12 - 网络,MosDNS 页面的 ubus 响应内容也可以给一下。

OpenWrt :OpenWrt SNAPSHOT r27076-d604b2699b / LuCI Master 24.212.79282~65b8002

root@OpenWrt:~# service mosdns info
{
        "mosdns": {
                "instances": {
                        "mosdns": {
                                "running": true,
                                "pid": 3974,
                                "command": [
                                        "/usr/bin/mosdns",
                                        "start",
                                        "-c",
                                        "/var/etc/mosdns.json",
                                        "-d",
                                        "/etc/mosdns"
                                ],
                                "term_timeout": 5,
                                "env": {
                                        "QUIC_GO_DISABLE_RECEIVE_BUFFER_WARNING": "true"
                                },
                                "respawn": {
                                        "threshold": 3600,
                                        "timeout": 5,
                                        "retry": 5
                                }
                        }
                },
                "triggers": [
                        [
                                "config.change",
                                [
                                        "if",
                                        [
                                                "eq",
                                                "package",
                                                "mosdns"
                                        ],
                                        [
                                                "run_script",
                                                "/etc/init.d/mosdns",
                                                "reload"
                                        ]
                                ],
                                1000
                        ]
                ]
        }
}
[{"jsonrpc":"2.0","id":52,"result":[0,{"access":true}]}]
sbwml commented 3 months ago

这踏马的 ubus 没有数据,检测不到进程状态,我搞不懂 master 分支和 23.05 之间的变化

你先回到 lua 版本吧 https://github.com/sbwml/luci-app-mosdns/tree/v5-lua

lengfwong commented 3 months ago

这踏马的 ubus 没有数据,检测不到进程状态,我搞不懂 master 分支和 23.05 之间的变化

你先回到 lua 版本吧 https://github.com/sbwml/luci-app-mosdns/tree/v5-lua

感谢付出,我正使用的就是老版本,看你更新了,编译后新建了个虚拟机测试一下。

sbwml commented 3 months ago

https://github.com/sbwml/luci-app-mosdns/commit/84fdff502e409dd711edc7ec088256b73bd991c2 fixed.

QQ_1722769609933