« 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: 974  Heroic Warrior 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: 974  Heroic Warrior 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: 974  Heroic Warrior 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: 974  Heroic Warrior 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)

Sign In or Register to comment.