我升级到Openwrt 18.06.1,从lede到17.01.4,使用了"sysupgrade“。现在,我无法在LUCI web界面中打开SQM页面。为什么?
我使用web接口备份并恢复了openwrt配置,并再次安装了luci-app-sqm。
相比之下,UPNP页面(来自额外的包luci-app-upnp)似乎没有任何问题地显示。
我的第一个问题是web接口(https://openwrt/cgi-bin/luci/admin/network/sqm)中的SQM页面显示
404没有找到对不起,您请求的对象没有找到。无法发送:/cgi/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中找不到任何相关的或意外的错误。
我的硬件是网具WNDR3800。
发布于 2018-08-21 10:53:38
在SQM文件中仍然存在陈旧状态。请注意,remove命令没有删除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或更高版本中不能正常。在主要版本升级之后,最好手动创建关键配置文件,从新的默认配置开始,使当前的默认设置成为启动基础。”
https://unix.stackexchange.com/questions/463824
复制相似问题