« Back to all recent discussions

Lost MetaRepository on NSA320

BeonicoBeonico Posts: 7  Junior Member
edited December 2019 in Discussions
After a long time logged in to the admin page.
Got there the message to upgrade MetaRepository version 13 to 15.
Acknowledged the upgrade but apparently it failed. Refreshing the admin page it again asked to upgrade.
Then put the recent web_prefix file in the NSA320/admin/zy-pkgs directory, hit the Retrieve button, the package list got blank and no MetaRepository upgrade, it keeps asking to upgrade.
After rebooting the NAS, only the original Zyxel packages show up, no MetaRepository.

What goes wrong, what am I doing wrong ?

#NAS_Dec_2019
Tagged:

Comments

  • MijzelfMijzelf Posts: 1,259  Paragon Member
    I think the problem is that nas-central.org is down, which made the upgrade of MR fail, which caused the firmware to disable/remove it.

    You can reinstall MR from it's new host: https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/

  • BeonicoBeonico Posts: 7  Junior Member
    Thanks Mijzelf,

    I found the new host before and tried to reinstall from that with the prefix mentioned there (I called it the 'recent' web_prefix).
    That didn't work.
    On the NSA itself I indeed see in the MetaRepository config file the old reference to the nas-central.org
    In the directory NSA302\admin\zy-pkgs\MetaRepository\NSA320\4.70\zypkg I see however a file called MetaRepository_20181001_arm_015.zpkg.
    The same in the directory \\NSA320\admin\zy-pkgs\MetaRepository\http___downloads.zyxel.nas-central.org_Users_Mijzelf_zypkg-repo_

    It looks like the install script gets confused in someway.

  • MijzelfMijzelf Posts: 1,259  Paragon Member
    When you put the 'recent' web_prefix on the box, does it not show you a MetaRepository for download? At that point there are no scripts involved yet, only the firmware package manager is pointed to another repo.
    Which firmware version are you running?

    The package system on the ZyXEL's was fragile, and I don't know the status of the 320.


  • BeonicoBeonico Posts: 7  Junior Member
    edited December 2019
    I'm running V4.70(AFO.3), I guess it's the latest one.

    I also found the next (first upgrade attemt looking at the date ?) log of ZYPKG_INFO.tgz.log, maybe it gives you a clue:

    HandleZYPKG_INFO /NSA320/4.70/zypkg
    FindApp md5sum found /sbin/md5sum
    ReadConfig Repositories
        Start of block
        ftp://ftp2.zyxel.com/+ ZyXEL
        http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/ Mijzelf
        /i-data/md0/admin/MyRepo/ Local
        End of block
    7 start: 17:22:58
    8 start: 17:22:58
    9 start: 17:22:58
    7: FetchZYPKG_INFO /i-data/md0/admin/MyRepo/ 7
    8: FetchZYPKG_INFO http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/ 8
    9: FetchZYPKG_INFO ftp://ftp2.zyxel.com/NSA320/4.70/zypkg/ 9
    7: FindApp curl found /usr/bin/curl
    9: FindApp curl found /usr/bin/curl
    8: FindApp curl found /usr/bin/curl
    7: Fetch /i-data/md0/admin/MyRepo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    7: Fetch /i-data/md0/admin/MyRepo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    7: Failed
    7 stop: 17:22:59
    8: Fetch http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/http___downloads.zyxel.nas-central.org_Users_Mijzelf_zypkg-repo_.tmp failed
    9: Fetch ftp://ftp2.zyxel.com/NSA320/4.70/zypkg/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/ftp___ftp2.zyxel.com_NSA320_4.70_zypkg_.tmp succeeded
    9 stop: 17:23:02
    8: Fetch http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/http___downloads.zyxel.nas-central.org_Users_Mijzelf_zypkg-repo_.tmp failed
    8: Failed
    8 stop: 17:23:03
    Nothing changed
    TarHeader
    FindApp curl found /usr/bin/curl
    Fetch /i-data/md0/admin/zy-pkgs/MetaRepository/NSA320/4.70/zypkg/ZYPKG_INFO.tgz - succeeded

    It is still referring to nas-central ??


  • BeonicoBeonico Posts: 7  Junior Member
    edited December 2019
    New information:
    I did the following trick:
    1. /usr/local/zy-pkgs/etc/init.d/MetaRepository enable
    2. /usr/local/zy-pkgs/etc/init.d/MetaRepository start
    3. Hit the Retrieve button
    4. Eureka: got MetaRepository and other installed packages back
    However it is the older v13 MetaRepository, not the v15 version.
    The web_prefix file is changed to http://localhost:59999/

    The log shows the next:
    HandleZYPKG_INFO /NSA320/4.70/zypkg
    FindApp md5sum found /sbin/md5sum
    ReadConfig Repositories
        Start of block
        https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/ Mijzelf
        /i-data/md0/admin/MyRepo/ Local
        End of block
    9 start: 11:34:51
    8 start: 11:34:51
    9: FetchZYPKG_INFO https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/ 9
    8: FetchZYPKG_INFO /i-data/md0/admin/MyRepo/ 8
    9: FindApp curl found /usr/bin/curl
    8: FindApp curl found /usr/bin/curl
    8: Fetch /i-data/md0/admin/MyRepo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    8: Fetch /i-data/md0/admin/MyRepo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    8: Failed
    8 stop: 11:34:52
    9: Fetch https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/https___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_.tmp failed
    9: Fetch https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/https___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_.tmp failed
    9: Failed
    9 stop: 11:34:53
    Nothing changed
    TarHeader
    FindApp curl found /usr/bin/curl
    Fetch /i-data/md0/admin/zy-pkgs/MetaRepository/NSA320/4.70/zypkg/ZYPKG_INFO.tgz - succeeded






  • MijzelfMijzelf Posts: 1,259  Paragon Member
    ReadConfig Repositories
        Start of block
        https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/ Mijzelf
        /i-data/md0/admin/MyRepo/ Local
        End of block

    Change in the webinterface https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/ in https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/, and probably you should uncomment the ZyXEL repo (not really necessary, but now you won't get any ZyXEL updates. If any).

    If that still fails, change https in http. Don't know if the 320 supports the current https encryption.




  • BeonicoBeonico Posts: 7  Junior Member
    edited December 2019
    You mean the web_prefix file ?

    I changed it also in the MetaRepository page and got this:
    HandleZYPKG_INFO /NSA320/4.70/zypkg
    FindApp md5sum found /sbin/md5sum
    ReadConfig Repositories
        Start of block
        https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ Mijzelf
        /i-data/md0/admin/MyRepo/ Local
        End of block
    9 start: 15:09:21
    8 start: 15:09:21
    9: FetchZYPKG_INFO https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ 9
    9: FindApp curl found /usr/bin/curl
    8: FetchZYPKG_INFO /i-data/md0/admin/MyRepo/ 8
    8: FindApp curl found /usr/bin/curl
    8: Fetch /i-data/md0/admin/MyRepo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    9: Fetch https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/https___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_.tmp failed
    8: Fetch /i-data/md0/admin/MyRepo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    8: Failed
    8 stop: 15:09:21
    9: Fetch https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/https___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_.tmp failed
    9: Failed
    9 stop: 15:09:22
    Pushlist...
    ReadConfig Pushlist
        Start of block
        End of block
    Blacklist...
    ReadConfig Blacklist
        Start of block
        YouNameIt
        End of block
    /bin/sed -i s/^YouNameIt/#YouNameIt/I /i-data/md0/admin/zy-pkgs/MetaRepository/NSA320/4.70/zypkg/List.4318
    Sort...
    Choose packages...
    Choose DEPS...
    Create ZYPKG_INFO.tgz
    TarHeader
    FindApp curl found /usr/bin/curl
    Fetch /i-data/md0/admin/zy-pkgs/MetaRepository/NSA320/4.70/zypkg/ZYPKG_INFO.tgz - succeeded

    Looks like i loose some previous Zyxel packages (like GoogleDrive, ..)
  • MijzelfMijzelf Posts: 1,259  Paragon Member
    You mean the web_prefix file ?
    No, in the webinterface.
    9: Fetch https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/https___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_.tmp failed
    This should not have failed, as that file exists. But as firmware 4.70 is meanwhile something like 6 years old, it's not surprising when it fails in the TLS handshake. For that reason, use http.
    Looks like i loose some previous Zyxel packages (like GoogleDrive, ..)
    I think that's because you omitted the ZyXEL repository.
  • BeonicoBeonico Posts: 7  Junior Member
    Mijzelf, thanks for the support :) With your guidance the problem has been solved
    It's back up and running including MetaRepository v15. B)

  • FragsRockFragsRock Posts: 4  Junior Member
    Old thread I know but similar issue :   script seems to run (I've adjusted the mirrors and https  setting) folders are created and  repo lists downloaded but retrieving list from internet spinner goes on for ever - the message line on the packages page says  "Attribute name not complete" in red, web_prefix file is updated,  manually navigating to //NAS-IP:59999  gives "/i-data/md0/admin/zy-pkgs/MetaRepository/ Not Found"  message.

    NAS is NSA325 (v1) with NSA325_4.81(AAAJ.1) firmware  - very old i know

    Log is below

    HandleZYPKG_INFO /NSA325/4.80/zypkg
    FindApp md5sum found /sbin/md5sum
    ReadConfig Repositories
    Start of block
    /i-data/md0/admin/MyRepo/ Local
    End of block
    9 start: 12:44:20
    8 start: 12:44:20
    7 start: 12:44:20
    9: FetchZYPKG_INFO ftp://ftp2.zyxel.com/NSA325/4.80/zypkg/ 9 ZyXEL
    9: FindApp curl found /usr/bin/curl
    7: FetchZYPKG_INFO /i-data/md0/admin/MyRepo/ 7 Local
    8: FindApp curl found /usr/bin/curl
    7: FindApp curl found /usr/bin/curl
    7: Fetch /i-data/md0/admin/MyRepo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    7: Fetch /i-data/md0/admin/MyRepo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    7: Failed
    7 stop: 12:44:20
    8: Fetch http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_.tmp failed
    8: Fetch http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_.tmp succeeded
    8: sh: -f: unknown operand
    8 stop: 12:44:23
    9: Fetch ftp://ftp2.zyxel.com/NSA325/4.80/zypkg/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/ftp___ftp2.zyxel.com_NSA325_4.80_zypkg_.tmp succeeded
    9 stop: 12:44:30
    Pushlist...
    ReadConfig Pushlist
    Start of block
    End of block
    Blacklist...
    ReadConfig Blacklist
    Start of block
    YouNameIt
    End of block
    /bin/sed -i s/^YouNameIt/#YouNameIt/I /i-data/md0/admin/zy-pkgs/MetaRepository/NSA325/4.80/zypkg/List.30187
    Sort...
    Choose packages...
    cat: can't open '/i-data/md0/admin/zy-pkgs/MetaRepository.url': No such file or directory
    Choose DEPS...
    Create ZYPKG_INFO.tgz
    TarHeader
    FindApp curl found /usr/bin/curl
    Fetch /i-data/md0/admin/zy-pkgs/MetaRepository/NSA325/4.80/zypkg/ZYPKG_INFO.tgz - succeeded


    Any help appreciated
  • MijzelfMijzelf Posts: 1,259  Paragon Member
    8: sh: -f: unknown operand

    This is a strange one. In the code is something like

    if [ -f ${FILENAME} ]

    which is used to test if the file stored in variable FILENAME exists. But somehow FILENAME is empty, which causes this error.

    I think somehow the internal database is damaged. You can reset that by emptying \\admin\zy-pkgs\MetaRepository\

    manually navigating to //NAS-IP:59999  gives "/i-data/md0/admin/zy-pkgs/MetaRepository/ Not Found"  message.

    http://NAS-IP:59999 is supposed to be the plugin replacement of ftp://ftp2.zyxel.com/. So you have to provide a path.

    http://NAS-IP:59999/NSA325/4.80/zypkg/ZYPKG_INFO.tgz should work.



  • FragsRockFragsRock Posts: 4  Junior Member
    Old thread I know but similar issue :   script seems to run (I've adjusted the mirrors and https  setting) folders are created and  repo lists downloaded but retrieving list from internet spinner goes on for ever - the message line on the packages page says  "Attribute name not complete" in red, web_prefix file is updated,  manually navigating to //NAS-IP:59999  gives "/i-data/md0/admin/zy-pkgs/MetaRepository/ Not Found"  message.

    NAS is NSA325 (v1) with NSA325_4.81(AAAJ.1) firmware  - very old i know

    Log is below

    HandleZYPKG_INFO /NSA325/4.80/zypkg
    FindApp md5sum found /sbin/md5sum
    ReadConfig Repositories
    Start of block
    /i-data/md0/admin/MyRepo/ Local
    End of block
    9 start: 12:44:20
    8 start: 12:44:20
    7 start: 12:44:20
    9: FetchZYPKG_INFO ftp://ftp2.zyxel.com/NSA325/4.80/zypkg/ 9 ZyXEL
    9: FindApp curl found /usr/bin/curl
    7: FetchZYPKG_INFO /i-data/md0/admin/MyRepo/ 7 Local
    8: FindApp curl found /usr/bin/curl
    7: FindApp curl found /usr/bin/curl
    7: Fetch /i-data/md0/admin/MyRepo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    7: Fetch /i-data/md0/admin/MyRepo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    7: Failed
    7 stop: 12:44:20
    8: Fetch http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_.tmp failed
    8: Fetch http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_.tmp succeeded
    8: sh: -f: unknown operand
    8 stop: 12:44:23
    9: Fetch ftp://ftp2.zyxel.com/NSA325/4.80/zypkg/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/ftp___ftp2.zyxel.com_NSA325_4.80_zypkg_.tmp succeeded
    9 stop: 12:44:30
    Pushlist...
    ReadConfig Pushlist
    Start of block
    End of block
    Blacklist...
    ReadConfig Blacklist
    Start of block
    YouNameIt
    End of block
    /bin/sed -i s/^YouNameIt/#YouNameIt/I /i-data/md0/admin/zy-pkgs/MetaRepository/NSA325/4.80/zypkg/List.30187
    Sort...
    Choose packages...
    cat: can't open '/i-data/md0/admin/zy-pkgs/MetaRepository.url': No such file or directory
    Choose DEPS...
    Create ZYPKG_INFO.tgz
    TarHeader
    FindApp curl found /usr/bin/curl
    Fetch /i-data/md0/admin/zy-pkgs/MetaRepository/NSA325/4.80/zypkg/ZYPKG_INFO.tgz - succeeded


    Any help appreciated
  • FragsRockFragsRock Posts: 4  Junior Member
    Old thread I know but similar issue :   script seems to run (I've adjusted the mirrors and https  setting) folders are created and  repo lists downloaded but retrieving list from internet spinner goes on for ever - the message line on the packages page says  "Attribute name not complete" in red, web_prefix file is updated,  manually navigating to //NAS-IP:59999  gives "/i-data/md0/admin/zy-pkgs/MetaRepository/ Not Found"  message.

    NAS is NSA325 (v1) with NSA325_4.81(AAAJ.1) firmware  - very old i know

    Log is below

    HandleZYPKG_INFO /NSA325/4.80/zypkg
    FindApp md5sum found /sbin/md5sum
    ReadConfig Repositories
    Start of block
    /i-data/md0/admin/MyRepo/ Local
    End of block
    9 start: 12:44:20
    8 start: 12:44:20
    7 start: 12:44:20
    9: FetchZYPKG_INFO ftp://ftp2.zyxel.com/NSA325/4.80/zypkg/ 9 ZyXEL
    9: FindApp curl found /usr/bin/curl
    7: FetchZYPKG_INFO /i-data/md0/admin/MyRepo/ 7 Local
    8: FindApp curl found /usr/bin/curl
    7: FindApp curl found /usr/bin/curl
    7: Fetch /i-data/md0/admin/MyRepo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    7: Fetch /i-data/md0/admin/MyRepo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed
    7: Failed
    7 stop: 12:44:20
    8: Fetch http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_.tmp failed
    8: Fetch http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_.tmp succeeded
    8: sh: -f: unknown operand
    8 stop: 12:44:23
    9: Fetch ftp://ftp2.zyxel.com/NSA325/4.80/zypkg/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/ftp___ftp2.zyxel.com_NSA325_4.80_zypkg_.tmp succeeded
    9 stop: 12:44:30
    Pushlist...
    ReadConfig Pushlist
    Start of block
    End of block
    Blacklist...
    ReadConfig Blacklist
    Start of block
    YouNameIt
    End of block
    /bin/sed -i s/^YouNameIt/#YouNameIt/I /i-data/md0/admin/zy-pkgs/MetaRepository/NSA325/4.80/zypkg/List.30187
    Sort...
    Choose packages...
    cat: can't open '/i-data/md0/admin/zy-pkgs/MetaRepository.url': No such file or directory
    Choose DEPS...
    Create ZYPKG_INFO.tgz
    TarHeader
    FindApp curl found /usr/bin/curl
    Fetch /i-data/md0/admin/zy-pkgs/MetaRepository/NSA325/4.80/zypkg/ZYPKG_INFO.tgz - succeeded


    Any help appreciated
  • FragsRockFragsRock Posts: 4  Junior Member
    hi Mijelf,

    thanks for the reply (and apologies for the  multiple repeated posts!

    Prior to posting I had done just as you suggested and emptied the databases and started from scratch with the exactly the same effect.

    Today on reading your post and starting with the NSA showing the default packages only, I uploaded the web_prefix file and followed the install instructions as before.   Zero results, enabled and disabled MetaRepository (I've tried this in the past) and retrieved  from the internet, and lo and behold the packages appear as expected.

    Next logon, no repos at all, "retrieve from internet" button grayed out
  • MijzelfMijzelf Posts: 1,259  Paragon Member
    edited July 17
    The firmware package manager downloads ZYPKG_INFO.tgz from the update server, which contains a full list of all available packages. On older firmwares the manager went mad when there were packages installed which were not described in ZYPKG_INFO.tgz. And sorry, I don't know which firmwares that were.
    If MR failed to start on a reboot, so that the original ZYPKG_INFO.tgz is downloaded from zyxel.com, the package manager can flip out on the existence of MR. (Or any other 3th party package).

    Did MR failed to start? Is there an web_prefix file? Can you access the nas on http://NSA320:59999 ?
Sign In or Register to comment.