« Back to all recent discussions

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

ariekariek Posts: 9  Junior Member
edited December 4 in Questions
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  3 13:43:50 UTC 2019
Log file 2 (https://pastebin.com/xvzyPEmC ; same reason)
Opened logfile at Tue Dec  3 13:47:21 UTC 2019
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 bunny 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.

[email protected]:/i-data/e162cf92/.PKG/Entware-ng/opt/bin# ls -all
drwxr-xr-x    2 root     root          4096 Dec  3 16:46 .
drwxr-xr-x   12 root     root          4096 Jan  4  2018 ..
lrwxrwxrwx    1 root     root             8 Dec  3 16:46 ash -> /bin/ash
-rwxr-xr-x    1 root     root        217580 Oct  3 21:10 find
-rwxr-xr-x    1 root     root        182524 Oct  3 21:10 grep
-rwxr-xr-x    1 root     root          2872 Oct  3 21:10 islebe
-rwxr-xr-x    1 root     root         31744 Oct  3 21:10 locale.new
-rwxr-xr-x    1 root     root        284988 Oct  3 21:10 localedef.new
lrwxrwxrwx    1 root     root            12 Dec  3 16:46 netstat -> /bin/netstat
-rwxr-xr-x    1 root     root        127488 Dec  3 18:45 opkg

-lrwxrwxrwx    1 root     root             7 Dec  3 16:46 sh -> /bin/sh
-rwxr-xr-x    1 root     root         52652 Oct  3 21:10 xargs
[email protected]:/i-data/e162cf92/.PKG/Entware-ng/opt/bin# opkg update
sh: opkg: not found
[email protected]:/i-data/e162cf92/.PKG/Entware-ng/opt/bin# /opt/bin/opkg update
Downloading http://pkg.entware.net/binaries/armv7/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/packages.
Downloading http://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/Mijzelf.
[email protected]:/i-data/e162cf92/.PKG/Entware-ng/opt/bin#



#NAS_Dec_2019
Tagged:

Best Answer

  • MijzelfMijzelf Posts: 897  Heroic Warrior Member
    Accepted Answer
    Ah right. You have to install the package 'profile-hook', and log out and in.

Answers

  • MijzelfMijzelf Posts: 897  Heroic Warrior Member
    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'

  • ariekariek Posts: 9  Junior Member
    edited December 7
    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
    src/gz entware http://bin.entware.net/armv7sf-k2.6
    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.

     [email protected]:/i-data/b14a6a95/.PKG/Entware-ng/opt# opkg
     sh: opkg: not found
     [email protected]:/i-data/b14a6a95/.PKG/Entware-ng/opt# /bin/opkg
     sh: /bin/opkg: not found
     [email protected]:/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





Sign In or Register to comment.