Lost MetaRepository on NSA320

2»

Comments

  • Mijzelf
    Mijzelf Posts: 2,218
    100 Answers 1000 Comments Friend Collector Fifth Anniversary
     Guru 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.



  • FragsRock
    FragsRock Posts: 9
    First Comment First Anniversary
     Freshman 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
  • FragsRock
    FragsRock Posts: 9
    First Comment First Anniversary
     Freshman 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
  • FragsRock
    FragsRock Posts: 9
    First Comment First Anniversary
     Freshman 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
  • Mijzelf
    Mijzelf Posts: 2,218
    100 Answers 1000 Comments Friend Collector Fifth Anniversary
     Guru Member
    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