Lost MetaRepository on NSA320

2»

Comments

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



  • FragsRock
    FragsRock Posts: 9  Freshman Member
    First Anniversary First Comment
    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/zypkgFindApp md5sum found /sbin/md5sumReadConfig Repositories Start of block ftp://ftp2.zyxel.com/+ ZyXEL http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ Mijzelf /i-data/md0/admin/MyRepo/ Local End of block9 start: 12:44:208 start: 12:44:207 start: 12:44:209: FetchZYPKG_INFO ftp://ftp2.zyxel.com/NSA325/4.80/zypkg/ 9 ZyXEL8: FetchZYPKG_INFO http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ 8 Mijzelf9: FindApp curl found /usr/bin/curl7: FetchZYPKG_INFO /i-data/md0/admin/MyRepo/ 7 Local8: FindApp curl found /usr/bin/curl7: FindApp curl found /usr/bin/curl7: Fetch /i-data/md0/admin/MyRepo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed7: Fetch /i-data/md0/admin/MyRepo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed7: Failed7 stop: 12:44:208: 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 failed8: 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 succeeded8: sh: -f: unknown operand8 stop: 12:44:239: 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 succeeded9 stop: 12:44:30Pushlist...ReadConfig Pushlist Start of block End of blockBlacklist...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.30187Sort...Choose packages...cat: can't open '/i-data/md0/admin/zy-pkgs/MetaRepository.url': No such file or directoryChoose DEPS...Create ZYPKG_INFO.tgzTarHeaderFindApp curl found /usr/bin/curlFetch /i-data/md0/admin/zy-pkgs/MetaRepository/NSA325/4.80/zypkg/ZYPKG_INFO.tgz - succeeded


    Any help appreciated
  • FragsRock
    FragsRock Posts: 9  Freshman Member
    First Anniversary First Comment
    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/zypkgFindApp md5sum found /sbin/md5sumReadConfig Repositories Start of block ftp://ftp2.zyxel.com/+ ZyXEL http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ Mijzelf /i-data/md0/admin/MyRepo/ Local End of block9 start: 12:44:208 start: 12:44:207 start: 12:44:209: FetchZYPKG_INFO ftp://ftp2.zyxel.com/NSA325/4.80/zypkg/ 9 ZyXEL8: FetchZYPKG_INFO http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ 8 Mijzelf9: FindApp curl found /usr/bin/curl7: FetchZYPKG_INFO /i-data/md0/admin/MyRepo/ 7 Local8: FindApp curl found /usr/bin/curl7: FindApp curl found /usr/bin/curl7: Fetch /i-data/md0/admin/MyRepo/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed7: Fetch /i-data/md0/admin/MyRepo/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/_i-data_md0_admin_MyRepo_.tmp failed7: Failed7 stop: 12:44:208: 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 failed8: 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 succeeded8: sh: -f: unknown operand8 stop: 12:44:239: 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 succeeded9 stop: 12:44:30Pushlist...ReadConfig Pushlist Start of block End of blockBlacklist...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.30187Sort...Choose packages...cat: can't open '/i-data/md0/admin/zy-pkgs/MetaRepository.url': No such file or directoryChoose DEPS...Create ZYPKG_INFO.tgzTarHeaderFindApp curl found /usr/bin/curlFetch /i-data/md0/admin/zy-pkgs/MetaRepository/NSA325/4.80/zypkg/ZYPKG_INFO.tgz - succeeded


    Any help appreciated
  • FragsRock
    FragsRock Posts: 9  Freshman Member
    First Anniversary First Comment
    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
  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    edited July 2020
    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 ?

Consumer Product Help Center