Lost MetaRepository on NSA320
Beonico
Posts: 7 Freshman Member
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
#NAS_Dec_2019
0
Comments
-
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/
0 -
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.orgIn 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.
0 -
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.0
-
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 - succeededIt is still referring to nas-central ??
0 -
New information:I did the following trick:
- /usr/local/zy-pkgs/etc/init.d/MetaRepository enable
- /usr/local/zy-pkgs/etc/init.d/MetaRepository start
- Hit the Retrieve button
- Eureka: got MetaRepository and other installed packages back
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
0 -
ReadConfig Repositories<br> Start of block<br> https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/ Mijzelf<br> /i-data/md0/admin/MyRepo/ Local<br><div> End of block</div>
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.
0 -
You mean the web_prefix file ?I changed it also in the MetaRepository page and got this:HandleZYPKG_INFO /NSA320/4.70/zypkgLooks like i loose some previous Zyxel packages (like GoogleDrive, ..)
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
0 -
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 failedThis 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.
0 -
Mijzelf, thanks for the support With your guidance the problem has been solvedIt's back up and running including MetaRepository v15.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
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
- 74 Security Highlight