我使用“sysupgrade”从 lede-17.01.4 升级到 Openwrt 18.06.1。现在我无法在 LUCI Web 界面中打开 SQM 页面。为什么?
我使用 Web 界面备份并恢复了 openwrt 配置,然后luci-app-sqm
再次安装。
相比之下,UPNP 页面(来自额外包luci-app-upnp
)似乎显示没有任何问题。
我的第一个问题是 Web 界面 ( https://openwrt/cgi-bin/luci/admin/network/sqm
) 中的 SQM 页面显示
404 未找到
抱歉,未找到您请求的对象。无法调度:/cgi-bin/luci/admin/network/sqm
另外,我尝试删除 LUCI 缓存 ( rm -r /tmp/luci-indexcache /tmp/luci-modulecache
)。我认为这通常是显示新菜单项所必需的。这次它从菜单中消失了 SQM 项目:(。
我也试过了rm /etc/config/sqm
,然后删除并重新安装sqm
。这没有任何帮助,但它显示了一些错误。也许它们是相关的。
# opkg remove luci-app-sqm sqm
Removing package luci-app-sqm from root...
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23
uci: Entry not found
# opkg install luci-app-sqm
Installing luci-app-sqm (1.2.3-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/packages/luci-app-sqm_1.2.3-1_all.ipk
Configuring luci-app-sqm.
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23
uci: Entry not found
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23
uci: Entry not found
我在 中找不到任何相关或意外的错误logread
。
我的硬件是 Netgear WNDR3800。
答案1
SQM 文件中仍然存在陈旧状态。请注意,您的删除命令并未删除sqm
包。
正确的名字是sqm-scripts
.然后问题就解决了,经过以下操作:
# opkg remove luci-app-sqm sqm-scripts
Removing package luci-app-sqm from root...
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23
uci: Entry not found
Removing package sqm-scripts from root...
/usr/lib/sqm/run.sh: .: line 12: can't open '/etc/sqm/sqm.conf': No such file or directory
Not deleting modified conffile /etc/sqm/sqm.conf.
Not deleting modified conffile /etc/config/sqm.
Collected errors:
* file_sha256sum_alloc: Failed to open file /etc/sqm/sqm.conf: No such file or directory.
* file_sha256sum_alloc: Failed to open file /etc/config/sqm: No such file or directory.
# opkg install luci-app-sqm
Installing luci-app-sqm (1.2.3-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/packages/luci-app-sqm_1.2.3-1_all.ipk
Installing sqm-scripts (1.2.3-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/packages/sqm-scripts_1.2.3-1_all.ipk
Configuring sqm-scripts.
Configuring luci-app-sqm.
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23
我认为陈旧的状态是/etc/sqm/sqm.conf
.
您可以检查系统中是否有与默认值不同的包配置文件,如下所示:
# opkg list-changed-conffiles
/etc/group
/etc/hosts
/etc/passwd
/etc/profile
/etc/services
/etc/shadow
/etc/sysctl.conf
/etc/config/ddns
/etc/config/dhcp
/etc/dropbear/dropbear_rsa_host_key
/etc/config/firewall
/etc/config/luci
/etc/config/ucitrack
/etc/config/upnpd
/etc/opkg/customfeeds.conf
/etc/config/snmpd
/etc/config/sqm
/etc/sqm/sqm.conf
/etc/config/uhttpd
Collected errors:
* file_sha256sum_alloc: Failed to open file /etc/config/sqm: No such file or directory.
* file_sha256sum_alloc: Failed to open file /etc/sqm/sqm.conf: No such file or directory.
其中一些名字可能令人震惊。 ala“用户/组、网络、交换机等配置中的一些主要设置可能已更改,因此 15.05(或 17.01)的旧设置在 17.01 或 18.06 或更高版本中将无法使用。主要版本升级后可能最好从新的默认配置开始手动从头开始创建关键配置文件,以便当前的默认设置形成起始基础。”