Hi,
Upgraded erlite using cli sysupgrade because the GUI gave me warnings: 'operation failed; no right to upload'
cli sysupgrade started but killed the ssh link
Nevertheless, the device booted and I had soon access via ssh again. No GUI though. How to recover?
I build my image like so:
wget https://downloads.openwrt.org/releases/24.10.0-rc2/targets/octeon/generic/openwrt-imagebuilder-24.10.0-rc2-octeon-generic.Linux-x86_64.tar.zst
tar --zstd -xvf openwrt-imagebuilder-24.10.0-rc2-octeon-generic.Linux-x86_64.tar.zst
cd openwrt-imagebuilder-24.10.0-rc2-octeon-generic.Linux-x86_64/
md files
cd files/
untgz /tmp/backup-OpenWrt-*.tar.gz
cd ..
make image PROFILE="ubnt_edgerouter-lite" PACKAGES="mc" FILES="files"
cp -v bin/targets/octeon/generic/*.tar /tmp/
make clean
cd ..
And this was the resulting image I build:
$ ll mkwrt/*24*
-rwxr-xr-x 1 18339840 5 déc 11:49 openwrt-24.10.0-rc2-octeon-generic-ubnt_edgerouter-lite-squashfs-sysupgrade.tar
Has the upgrade finished? Or do you think it failed?
And...
Does the DHCP server work (i.e. can your computer get an IP from the ER)?
If so, are you able to ping the device?
Where did the "files" come from (specifically, what version of OpenWrt)? What was in them? It looks like you took a backup and then built those files into the image... they might not have been compatible, so it would be good to see what you baked in.
Can you connect via ssh?
Hi,
I would think it has finished. The router rebooter and I have internet access again.
And...
Does the DHCP server work (i.e. can your computer get an IP from the ER)?
I use static IPs but yes,
If so, are you able to ping the device?
Yes, no problem
Where did the "files" come from (specifically, what version of OpenWrt)? What was in them? It looks like you took a backup and then built those files into the image... they might not have been compatible, so it would be good to see what you baked in.
Config files from 23.0.5, custom IPs, new firewall rules, ...
Can you connect via ssh?
Sure can
[/quote]
I do have internet access as usual.
I had to install uhttpd, it was not present after upgrade. Likely other packages could be missing.
opkg update
opkg install uhttpd
/etc/init.d/uhttpd restart
Still no GUI. I see that instead:
Index of /
../
modified: Tue, 03 Dec 2024 11:41:20 GMT
directory - 3.41 kbyte
I would recommend using scp to copy a standard/default image to your device, then use ssh to flash it, not preserving settings. Then re-create the configuration -- some things you may be able to copy/paste directly into place, but you should be selective and intentional about it as it is possible some of the syntax has changed.
Thanks,
That would be one of my last options. I have heavy customisation and if my config and network setup isn't preserved, chances are all the IPs will change on reboot and I can't access nothing anymore.
From the installed package list, is there something obviously missing?
root@OpenWrt:/etc$ echo $(opkg list-installed | sed -e "s/\s.*$//")
base-files busybox ca-bundle dnsmasq dropbear e2fsprogs firewall4 fstools fwtool getrandom glib2 jansson4 jshn jsonfilter kernel kmod-crypto-crc32c kmod-crypto-hash kmod-lib-crc-ccitt kmod-lib-crc32c kmod-nf-conntrack kmod-nf-conntrack6 kmod-nf-flow kmod-nf-log kmod-nf-log6 kmod-nf-nat kmod-nf-reject kmod-nf-reject6 kmod-nfnetlink kmod-nft-core kmod-nft-fib kmod-nft-nat kmod-nft-offload kmod-ppp kmod-pppoe kmod-pppox kmod-slhc libattr libblkid1 libblobmsg-json20240329 libc libcomerr0 libe2p2 libext2fs2 libf2fs6 libffi libgcc1 libjson-c5 libjson-script20240329 libmbedtls21 libmnl0 libmount1 libncurses6 libnftnl11 libnl-tiny1 libopenssl3 libpcre2 libpthread librt libss2 libssh2-1 libubox20240329 libubus20241020 libuci20130104 libuclient20201210 libucode20230711 libudebug libustream-mbedtls20201210 libuuid1 logd mc mkf2fs mtd netifd nftables-json odhcp6c odhcpd-ipv6only openwrt-keyring opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail terminfo ubox ubus ubusd uci uclient-fetch ucode ucode-mod-fs ucode-mod-ubus ucode-mod-uci uhttpd urandom-seed urngd usign zlib
I don't see any LuCI stuff installed.
This should be part of the consideration when doing major upgrades... you need to make sure that the file syntax is correct, and it's best to start fresh and then restore the related files.
I also don't recommend baking the files into the image because it could result in a brick if things aren't quite right... instead, just preserve settings on the upgrade, if you believe everything to be safe.
1 Like
My point precisely. What are the required packages?
Typically, this question comes up for snapshots... it should be the same answer for your situation:
Read the link for instructions how to install Luci, which is not installed by default in snapshots.
https://openwrt.org/faq/can_not_connect_via_webbrowser
1 Like
Wow, so much stuff needed to be added!
Installing luci (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci_24.338.58761~e76155d_all.ipk
Installing luci-proto-ipv6 (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-proto-ipv6_24.338.58761~e76155d_all.ipk
Installing rpcd (2024.09.17~9f4b86e7-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/base/rpcd_2024.09.17~9f4b86e7-r1_mips64_octeonplus.ipk
Installing rpcd-mod-file (2024.09.17~9f4b86e7-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/base/rpcd-mod-file_2024.09.17~9f4b86e7-r1_mips64_octeonplus.ipk
Installing rpcd-mod-luci (20240305-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/rpcd-mod-luci_20240305-r1_mips64_octeonplus.ipk
Installing rpcd-mod-ucode (2024.09.17~9f4b86e7-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/base/rpcd-mod-ucode_2024.09.17~9f4b86e7-r1_mips64_octeonplus.ipk
Installing cgi-io (2022.08.10~901b0f04-r21) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/packages/cgi-io_2022.08.10~901b0f04-r21_mips64_octeonplus.ipk
Installing ucode-mod-math (2024.07.22~b610860d-r3) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/base/ucode-mod-math_2024.07.22~b610860d-r3_mips64_octeonplus.ipk
Installing ucode-mod-html (1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/ucode-mod-html_1_mips64_octeonplus.ipk
Installing liblucihttp0 (2023.03.15~9b5b683f-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/liblucihttp0_2023.03.15~9b5b683f-r1_mips64_octeonplus.ipk
Installing liblucihttp-ucode (2023.03.15~9b5b683f-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/liblucihttp-ucode_2023.03.15~9b5b683f-r1_mips64_octeonplus.ipk
Installing luci-base (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-base_24.338.58761~e76155d_mips64_octeonplus.ipk
Installing luci-app-firewall (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-app-firewall_24.338.58761~e76155d_all.ipk
Installing libiwinfo-data (2024.10.20~b94f066e-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/base/libiwinfo-data_2024.10.20~b94f066e-r1_mips64_octeonplus.ipk
Installing libiwinfo20230701 (2024.10.20~b94f066e-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/base/libiwinfo20230701_2024.10.20~b94f066e-r1_mips64_octeonplus.ipk
Installing rpcd-mod-iwinfo (2024.09.17~9f4b86e7-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/base/rpcd-mod-iwinfo_2024.09.17~9f4b86e7-r1_mips64_octeonplus.ipk
Installing luci-mod-status (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-mod-status_24.338.58761~e76155d_mips64_octeonplus.ipk
Installing luci-mod-system (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-mod-system_24.338.58761~e76155d_all.ipk
Installing luci-mod-network (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-mod-network_24.338.58761~e76155d_all.ipk
Installing luci-mod-admin-full (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-mod-admin-full_24.338.58761~e76155d_all.ipk
Installing luci-proto-ppp (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-proto-ppp_24.338.58761~e76155d_all.ipk
Installing luci-theme-bootstrap (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-theme-bootstrap_24.338.58761~e76155d_all.ipk
Installing rpcd-mod-rrdns (20170710) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/rpcd-mod-rrdns_20170710_mips64_octeonplus.ipk
Installing uhttpd-mod-ubus (2023.06.25~34a8a74d-r4) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/base/uhttpd-mod-ubus_2023.06.25~34a8a74d-r4_mips64_octeonplus.ipk
Installing luci-light (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-light_24.338.58761~e76155d_all.ipk
Installing luci-app-package-manager (24.338.58761~e76155d) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/mips64_octeonplus/luci/luci-app-package-manager_24.338.58761~e76155d_all.ipk
Configuring liblucihttp0.
Configuring cgi-io.
Configuring rpcd.
uci: Entry not found
Configuring libiwinfo-data.
Configuring libiwinfo20230701.
Configuring rpcd-mod-file.
Configuring rpcd-mod-luci.
Configuring rpcd-mod-ucode.
Configuring ucode-mod-math.
Configuring ucode-mod-html.
Configuring liblucihttp-ucode.
Configuring luci-base.
Configuring luci-mod-system.
Configuring luci-theme-bootstrap.
/luci-static/bootstrap
/luci-static/bootstrap-dark
/luci-static/bootstrap-light
uci: Entry not found
Configuring rpcd-mod-iwinfo.
Configuring luci-mod-status.
Configuring luci-app-firewall.
Configuring luci-app-package-manager.
Configuring luci-proto-ppp.
Configuring luci-mod-network.
uci: Entry not found
Configuring luci-mod-admin-full.
Configuring luci-proto-ipv6.
Configuring rpcd-mod-rrdns.
Configuring uhttpd-mod-ubus.
uci: Entry not found
Configuring luci-light.
Configuring luci.
Collected errors:
* resolve_conffiles: Existing conffile /etc/config/luci is different from the conffile in the new package. The new conffile will be placed at /etc/config/luci-opkg.
Looks like it's working now.
If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks!
Sure, evaluating right now. Thanks again!
Update script updated to include missing packages + mc:
#/bin/bash
wget https://downloads.openwrt.org/snapshots/targets/octeon/generic/openwrt-imagebuilder-octeon-generic.Linux-x86_64.tar.zst
tar --zstd -xvf openwrt-imagebuilder-*.tar.zst
cd openwrt-imagebuilder-octeon-generic.Linux-x86_64/
rm -rf files
md files
cd files/
untgz /tmp/backup-OpenWrt-*.tar.gz
cd ..
make image PROFILE="ubnt_edgerouter-lite" PACKAGES="mc libgcc libustream-mbedtls nftables luci uhttpd" FILES="files"
cp -v bin/targets/octeon/generic/*.tar /tmp/
make clean
cd ..
This should be fixed!
This should be fixed as well or at least explain it's harmless.
system
Closed
December 15, 2024, 7:39pm
13
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.