Need help with Entware; after upgrade to latest package it is broken

Options
ariek
ariek Posts: 30  Freshman Member
First Anniversary 10 Comments
edited December 2019 in Personal Cloud Storage
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 update
and 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&nbsp; 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&nbsp; 3 13:47:21 UTC 2019<br>Flushing memory buffer<br>&nbsp;&nbsp;&nbsp; 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]&nbsp;&nbsp;&nbsp;&nbsp; Info: Opkg package manager deployment...<br>[13:47:22]&nbsp;&nbsp;&nbsp;&nbsp; Connecting to pkg.entware.net (104.27.177.50:80)<br>[13:47:22]&nbsp;&nbsp;&nbsp;&nbsp; <br>opkg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% |*******************************|&nbsp;&nbsp; 124k&nbsp; 0:00:00 ETA<br>[13:47:22]&nbsp;&nbsp;&nbsp;&nbsp; Connecting to pkg.entware.net (104.27.176.50:80)<br>[13:47:22]&nbsp;&nbsp;&nbsp;&nbsp; <br>opkg.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% |*******************************|&nbsp;&nbsp; 142&nbsp;&nbsp; 0:00:00 ETA<br>[13:47:22]&nbsp;&nbsp;&nbsp;&nbsp; Connecting to pkg.entware.net (104.27.177.50:80)<br>[13:47:22]&nbsp;&nbsp;&nbsp;&nbsp; <br>libgcc_s.so.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% |*******************************| 49120&nbsp;&nbsp; 0:00:00 ETA<br>[13:47:22]&nbsp;&nbsp;&nbsp;&nbsp; Connecting to pkg.entware.net (104.27.176.50:80)<br>[13:47:22]&nbsp;&nbsp;&nbsp;&nbsp; <br>ld-2.22.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% |*******************************|&nbsp;&nbsp; 131k&nbsp; 0:00:00 ETA<br>[13:47:22]&nbsp;&nbsp;&nbsp;&nbsp; Connecting to pkg.entware.net (104.27.176.50:80)<br>[13:47:23]&nbsp;&nbsp;&nbsp;&nbsp; <br>libc-2.22.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% |*******************************|&nbsp; 1198k&nbsp; 0:00:00 ETA<br>[13:47:23]&nbsp;&nbsp;&nbsp;&nbsp; Info: Basic packages installation...<br>[13:47:23]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/Packages.gz.<br>[13:47:23]&nbsp;&nbsp;&nbsp;&nbsp; Updated list of available packages in /opt/var/opkg-lists/packages.<br>[13:47:24]&nbsp;&nbsp;&nbsp;&nbsp; Installing libc (2.23-6) to root...<br>[13:47:24]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/libc_2.23-6_armv7soft.ipk.<br>[13:47:24]&nbsp;&nbsp;&nbsp;&nbsp; Installing libgcc (6.3.0-6) to root...<br>[13:47:24]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/libgcc_6.3.0-6_armv7soft.ipk.<br>[13:47:26]&nbsp;&nbsp;&nbsp;&nbsp; Configuring libgcc.<br>[13:47:26]&nbsp;&nbsp;&nbsp;&nbsp; Configuring libc.<br>[13:47:26]&nbsp;&nbsp;&nbsp;&nbsp; Installing libpthread (2.23-6) to root...<br>[13:47:26]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/libpthread_2.23-6_armv7soft.ipk.<br>[13:47:26]&nbsp;&nbsp;&nbsp;&nbsp; Configuring libpthread.<br>[13:47:26]&nbsp;&nbsp;&nbsp;&nbsp; Installing entware-opt (222108-6) to root...<br>[13:47:27]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/entware-opt_222108-6_armv7soft.ipk.<br>[13:47:27]&nbsp;&nbsp;&nbsp;&nbsp; Installing libssp (6.3.0-6) to root...<br>[13:47:27]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/libssp_6.3.0-6_armv7soft.ipk.<br>[13:47:27]&nbsp;&nbsp;&nbsp;&nbsp; Installing librt (2.23-6) to root...<br>[13:47:27]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/librt_2.23-6_armv7soft.ipk.<br>[13:47:27]&nbsp;&nbsp;&nbsp;&nbsp; Installing libstdcpp (6.3.0-6) to root...<br>[13:47:27]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/libstdcpp_6.3.0-6_armv7soft.ipk.<br>[13:47:28]&nbsp;&nbsp;&nbsp;&nbsp; Installing ldconfig (2.23-6) to root...<br>[13:47:28]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/ldconfig_2.23-6_armv7soft.ipk.<br>[13:47:29]&nbsp;&nbsp;&nbsp;&nbsp; Installing findutils (4.6.0-1) to root...<br>[13:47:29]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/findutils_4.6.0-1_armv7soft.ipk.<br>[13:47:29]&nbsp;&nbsp;&nbsp;&nbsp; Installing terminfo (6.0-1c) to root...<br>[13:47:29]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/terminfo_6.0-1c_armv7soft.ipk.<br>[13:47:29]&nbsp;&nbsp;&nbsp;&nbsp; Installing locales (2.23-6) to root...<br>[13:47:30]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/locales_2.23-6_armv7soft.ipk.<br>[13:47:31]&nbsp;&nbsp;&nbsp;&nbsp; Installing opkg (2011-04-08-9c97d5ec-17a) to root...<br>[13:47:31]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://pkg.entware.net/binaries/armv7/opkg_2011-04-08-9c97d5ec-17a_armv7soft.ipk.<br>[13:47:31]&nbsp;&nbsp;&nbsp;&nbsp; Entware uses separate locale-archive file independent from main system<br>[13:47:31]&nbsp;&nbsp;&nbsp;&nbsp; Creating locale archive - /opt/usr/lib/locale/locale-archive<br>[13:47:31]&nbsp;&nbsp;&nbsp;&nbsp; Adding en_EN.UTF-8<br>[13:47:38]&nbsp;&nbsp;&nbsp;&nbsp; Adding ru_RU.UTF-8<br>[13:47:44]&nbsp;&nbsp;&nbsp;&nbsp; You can download locale sources from http://pkg.entware.net/sources/i18n_glib223.tar.gz<br>[13:47:44]&nbsp;&nbsp;&nbsp;&nbsp; You can add new locales to Entware using /opt/bin/localedef.new<br>[13:47:44]&nbsp;&nbsp;&nbsp;&nbsp; File /opt/etc/opkg.conf upgraded, new repository set!<br>[13:47:44]&nbsp;&nbsp;&nbsp;&nbsp; Please run opkg update + opkg upgrade once more<br>[13:47:44]&nbsp;&nbsp;&nbsp;&nbsp; Configuring libssp.<br>[13:47:44]&nbsp;&nbsp;&nbsp;&nbsp; Configuring librt.<br>[13:47:44]&nbsp;&nbsp;&nbsp;&nbsp; Configuring terminfo.<br>[13:47:44]&nbsp;&nbsp;&nbsp;&nbsp; Configuring ldconfig.<br>[13:47:44]&nbsp;&nbsp;&nbsp;&nbsp; Configuring locales.<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Configuring opkg.<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Configuring libstdcpp.<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Configuring findutils.<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Configuring entware-opt.<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Updated list of available packages in /opt/var/opkg-lists/entware<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Updated list of available packages in /opt/var/opkg-lists/Mijzelf<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Installing profile-hook (0.1) to root...<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Downloading http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/profile-hook_0.1_all.ipk<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Configuring profile-hook.<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Info: Congratulations!<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; Info: If there are no errors above then Entware-ng was successfully initialized.<br>[13:47:45]&nbsp;&nbsp;&nbsp;&nbsp; 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&nbsp; 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&nbsp;&nbsp;&nbsp; 2 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4096 Dec&nbsp; 3 16:46 .<br>drwxr-xr-x&nbsp;&nbsp; 12 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4096 Jan&nbsp; 4&nbsp; 2018 ..<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8 Dec&nbsp; 3 16:46 ash -> /bin/ash<br>-rwxr-xr-x&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 217580 Oct&nbsp; 3 21:10 find<br>-rwxr-xr-x&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 182524 Oct&nbsp; 3 21:10 grep<br>-rwxr-xr-x&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2872 Oct&nbsp; 3 21:10 islebe<br>-rwxr-xr-x&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 31744 Oct&nbsp; 3 21:10 locale.new<br>-rwxr-xr-x&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 284988 Oct&nbsp; 3 21:10 localedef.new<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12 Dec&nbsp; 3 16:46 netstat -> /bin/netstat</div><div><br></div><div>-rwxr-xr-x&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127488 Dec&nbsp; 3 18:45 opkg<br></div><div><br></div><div>-lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 Dec&nbsp; 3 16:46 sh -> /bin/sh<br>-rwxr-xr-x&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 52652 Oct&nbsp; 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

Accepted Solution

  • Mijzelf
    Mijzelf Posts: 2,639  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Answer ✓
    Options
    Ah right. You have to install the package 'profile-hook', and log out and in.

All Replies

  • Mijzelf
    Mijzelf Posts: 2,639  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options
    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'

  • ariek
    ariek Posts: 30  Freshman Member
    First Anniversary 10 Comments
    edited December 2019
    Options
    No, I'm probably doing something wrong.

    Ok, I made the following changes

    pkgcgi.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





  • Mijzelf
    Mijzelf Posts: 2,639  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Answer ✓
    Options
    Ah right. You have to install the package 'profile-hook', and log out and in.

Consumer Product Help Center