Need help with Entware; after upgrade to latest package it is broken
ariek
Posts: 30 Freshman Member
Device NAS520.
Meta Repository uses
http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw5/ Mijzelf
I need help with the Entware package. I upgraded from Entware-ng_2016xxxx_arm_005 to Entware-ng_20181002_arm_006 and now it is broken.
I updated the package list with
opkg updateand this updates the package list but in the GUI the package list is empty (404 not found error; nginx/1.6.2)
Disabling, uninstalling and reinstalling the package didn't fix it either.
Log file 1 (https://pastebin.com/WVM7hrFc ; because the code tags below only show the first line)
Opened logfile at Tue Dec 3 13:43:50 UTC 2019<br>Flushing memory buffer<br>Starting up<br>Flushing done<br>[13:43:50] Create symlink /opt -> /i-data/e162cf92/.PKG/Entware-ng/opt<br>[13:43:50] Execute /opt/etc/init.d/rc.unslung start<br>[13:43:50] Done /opt/etc/init.d/rc.unslung start<br>Closed logfile at Tue Dec 3 13:43:50 UTC 2019<br>
Log file 2 (https://pastebin.com/xvzyPEmC ; same reason)
Opened logfile at Tue Dec 3 13:47:21 UTC 2019<br>Flushing memory buffer<br> Starting up<br>Flushing done<br>[13:47:21] Create symlink /opt -> /i-data/e162cf92/.PKG/Entware-ng/opt<br>[13:47:21] /opt/etc/init.d/rc.unslung is not available, start installer<br>[13:47:22] Info: Opkg package manager deployment...<br>[13:47:22] Connecting to pkg.entware.net (104.27.177.50:80)<br>[13:47:22] <br>opkg 100% |*******************************| 124k 0:00:00 ETA<br>[13:47:22] Connecting to pkg.entware.net (104.27.176.50:80)<br>[13:47:22] <br>opkg.conf 100% |*******************************| 142 0:00:00 ETA<br>[13:47:22] Connecting to pkg.entware.net (104.27.177.50:80)<br>[13:47:22] <br>libgcc_s.so.1 100% |*******************************| 49120 0:00:00 ETA<br>[13:47:22] Connecting to pkg.entware.net (104.27.176.50:80)<br>[13:47:22] <br>ld-2.22.so 100% |*******************************| 131k 0:00:00 ETA<br>[13:47:22] Connecting to pkg.entware.net (104.27.176.50:80)<br>[13:47:23] <br>libc-2.22.so 100% |*******************************| 1198k 0:00:00 ETA<br>[13:47:23] Info: Basic packages installation...<br>[13:47:23] Downloading http://pkg.entware.net/binaries/armv7/Packages.gz.<br>[13:47:23] Updated list of available packages in /opt/var/opkg-lists/packages.<br>[13:47:24] Installing libc (2.23-6) to root...<br>[13:47:24] Downloading http://pkg.entware.net/binaries/armv7/libc_2.23-6_armv7soft.ipk.<br>[13:47:24] Installing libgcc (6.3.0-6) to root...<br>[13:47:24] Downloading http://pkg.entware.net/binaries/armv7/libgcc_6.3.0-6_armv7soft.ipk.<br>[13:47:26] Configuring libgcc.<br>[13:47:26] Configuring libc.<br>[13:47:26] Installing libpthread (2.23-6) to root...<br>[13:47:26] Downloading http://pkg.entware.net/binaries/armv7/libpthread_2.23-6_armv7soft.ipk.<br>[13:47:26] Configuring libpthread.<br>[13:47:26] Installing entware-opt (222108-6) to root...<br>[13:47:27] Downloading http://pkg.entware.net/binaries/armv7/entware-opt_222108-6_armv7soft.ipk.<br>[13:47:27] Installing libssp (6.3.0-6) to root...<br>[13:47:27] Downloading http://pkg.entware.net/binaries/armv7/libssp_6.3.0-6_armv7soft.ipk.<br>[13:47:27] Installing librt (2.23-6) to root...<br>[13:47:27] Downloading http://pkg.entware.net/binaries/armv7/librt_2.23-6_armv7soft.ipk.<br>[13:47:27] Installing libstdcpp (6.3.0-6) to root...<br>[13:47:27] Downloading http://pkg.entware.net/binaries/armv7/libstdcpp_6.3.0-6_armv7soft.ipk.<br>[13:47:28] Installing ldconfig (2.23-6) to root...<br>[13:47:28] Downloading http://pkg.entware.net/binaries/armv7/ldconfig_2.23-6_armv7soft.ipk.<br>[13:47:29] Installing findutils (4.6.0-1) to root...<br>[13:47:29] Downloading http://pkg.entware.net/binaries/armv7/findutils_4.6.0-1_armv7soft.ipk.<br>[13:47:29] Installing terminfo (6.0-1c) to root...<br>[13:47:29] Downloading http://pkg.entware.net/binaries/armv7/terminfo_6.0-1c_armv7soft.ipk.<br>[13:47:29] Installing locales (2.23-6) to root...<br>[13:47:30] Downloading http://pkg.entware.net/binaries/armv7/locales_2.23-6_armv7soft.ipk.<br>[13:47:31] Installing opkg (2011-04-08-9c97d5ec-17a) to root...<br>[13:47:31] Downloading http://pkg.entware.net/binaries/armv7/opkg_2011-04-08-9c97d5ec-17a_armv7soft.ipk.<br>[13:47:31] Entware uses separate locale-archive file independent from main system<br>[13:47:31] Creating locale archive - /opt/usr/lib/locale/locale-archive<br>[13:47:31] Adding en_EN.UTF-8<br>[13:47:38] Adding ru_RU.UTF-8<br>[13:47:44] You can download locale sources from http://pkg.entware.net/sources/i18n_glib223.tar.gz<br>[13:47:44] You can add new locales to Entware using /opt/bin/localedef.new<br>[13:47:44] File /opt/etc/opkg.conf upgraded, new repository set!<br>[13:47:44] Please run opkg update + opkg upgrade once more<br>[13:47:44] Configuring libssp.<br>[13:47:44] Configuring librt.<br>[13:47:44] Configuring terminfo.<br>[13:47:44] Configuring ldconfig.<br>[13:47:44] Configuring locales.<br>[13:47:45] Configuring opkg.<br>[13:47:45] Configuring libstdcpp.<br>[13:47:45] Configuring findutils.<br>[13:47:45] Configuring entware-opt.<br>[13:47:45] Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz<br>[13:47:45] Updated list of available packages in /opt/var/opkg-lists/entware<br>[13:47:45] Downloading http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz<br>[13:47:45] Updated list of available packages in /opt/var/opkg-lists/Mijzelf<br>[13:47:45] Installing profile-hook (0.1) to root...<br>[13:47:45] Downloading http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/profile-hook_0.1_all.ipk<br>[13:47:45] Configuring profile-hook.<br>[13:47:45] Info: Congratulations!<br>[13:47:45] Info: If there are no errors above then Entware-ng was successfully initialized.<br>[13:47:45] Info: Found a Bug? Please report at https://github.com/Entware-ng/Entware-ng/issues<br>[13:47:45] Execute /opt/etc/init.d/rc.unslung start<br>[13:47:45] Done /opt/etc/init.d/rc.unslung start<br>Closed logfile at Tue Dec 3 13:47:46 UTC 2019<br>Reopened logfile at Tue Dec 3 13:54:42 UTC 2019<br>[13:54:42] Execute /opt/etc/init.d/rc.unslung stop<br>[13:54:42] Done /opt/etc/init.d/rc.unslung stop<br>Closed logfile at Tue Dec 3 13:54:42 UTC 2019<br>I want to start with a fresh installation but also want to be sure that there are no traces of previous installed Entware-ng packages left on the system.
I don't think it is related but I als have a lot of file and directory permission issues. I need to be the root user otherwise can't do anything (this isn't a problem when I use Putty to access the NAS, but drag and drop with FileZilla (Windows > NAS) is a pain in the ass as I do have to chown -R root:everyone and chmod -R 666 files and directories to make changes to files and directories.
Edit: looks like the environment variables are not correctly set.
<div>root@NAS520:/i-data/e162cf92/.PKG/Entware-ng/opt/bin# ls -all<br>drwxr-xr-x 2 root root 4096 Dec 3 16:46 .<br>drwxr-xr-x 12 root root 4096 Jan 4 2018 ..<br>lrwxrwxrwx 1 root root 8 Dec 3 16:46 ash -> /bin/ash<br>-rwxr-xr-x 1 root root 217580 Oct 3 21:10 find<br>-rwxr-xr-x 1 root root 182524 Oct 3 21:10 grep<br>-rwxr-xr-x 1 root root 2872 Oct 3 21:10 islebe<br>-rwxr-xr-x 1 root root 31744 Oct 3 21:10 locale.new<br>-rwxr-xr-x 1 root root 284988 Oct 3 21:10 localedef.new<br>lrwxrwxrwx 1 root root 12 Dec 3 16:46 netstat -> /bin/netstat</div><div><br></div><div>-rwxr-xr-x 1 root root 127488 Dec 3 18:45 opkg<br></div><div><br></div><div>-lrwxrwxrwx 1 root root 7 Dec 3 16:46 sh -> /bin/sh<br>-rwxr-xr-x 1 root root 52652 Oct 3 21:10 xargs<br>root@NAS520:/i-data/e162cf92/.PKG/Entware-ng/opt/bin# opkg update<br>sh: opkg: not found<br>root@NAS520:/i-data/e162cf92/.PKG/Entware-ng/opt/bin# /opt/bin/opkg update<br>Downloading http://pkg.entware.net/binaries/armv7/Packages.gz.<br>Updated list of available packages in /opt/var/opkg-lists/packages.<br>Downloading http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz.<br>Updated list of available packages in /opt/var/opkg-lists/Mijzelf.<br>root@NAS520:/i-data/e162cf92/.PKG/Entware-ng/opt/bin#</div>
#NAS_Dec_2019
0
Accepted Solution
-
Ah right. You have to install the package 'profile-hook', and log out and in.
1
All Replies
-
but in the GUI the package list is empty (404 not found error; nginx/1.6.2)
Is that the only problem? That is a cosmetic problem. The webinterface somehow gets the version of the installed Entware-ng (armv5 or armv7), and inserts that in the entware-ng package list url. Something like http://entware-ng.org/armv7/packages/. That url is loaded in an iframe in the webinterface.
Now you upgraded it to Entware, and the version is armv7-k2.6, or something like that. That listing doesn't exist on the Entware-ng package server, and so you get a 404.
You can get the same listing with 'opkg list'
0 -
No, I'm probably doing something wrong.Ok, I made the following changespkgcgi.cgi:
<iframe src="http://pkg.entware.net/binaries/$ARCH/Packages.html" height="600" width="99%"></iframe>
to<iframe src="http://pkg.entware.net/binaries/armv7/Packages.html" height="600" width="99%"></iframe>
Unfortunately hardcoded but it 'll load the package list html page for now.opkg.conf to<div></div><div>src/gz entware http://bin.entware.net/armv7sf-k2.6</div>
src/gz Mijzelf http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7
Side note: I made a backup of the old HHD and performed a fresh install by formatting the HDD, and created a new volume. The packages Tweaks and MetaRespository are working just fine.I installed the Entware package (Entware-ng_20181002_arm_006) and ran into some issues.This issue remains:The environmental variables (with paths etc.) are not loaded/set.root@NAS520:/i-data/b14a6a95/.PKG/Entware-ng/opt# opkg
sh: opkg: not found
root@NAS520:/i-data/b14a6a95/.PKG/Entware-ng/opt# /bin/opkg
sh: /bin/opkg: not found
root@NAS520:/i-data/b14a6a95/.PKG/Entware-ng/opt# /opt/bin/opkg [only the full path works]
opkg must have one sub-command argument
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:
Edit: profile-hook solved the issue
0 -
Ah right. You have to install the package 'profile-hook', and log out and in.
1
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 145 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 239 USG FLEX H Series
- 267 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 247 Service & License
- 384 News and Release
- 83 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight