Lost MetaRepository on NSA320
Comments
-
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.
0 -
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 appreciated0 -
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 appreciated0 -
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 out0 -
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 ?0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 151 Nebula Ideas
- 98 Nebula Status and Incidents
- 5.7K Security
- 277 USG FLEX H Series
- 277 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.4K Consumer Product
- 250 Service & License
- 395 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 75 Security Highlight