Challenges while installing MetaRepository on NSA320s

Options

I've been trying to install MetaRepository on my NSA320s according to these instructions

I've got to the point where I have MetaRepository installed and enabled. I have the latest URL configured:

https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/

https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4_stock_packages/

Once I try to click the update list from Internet -button the process starts but no packages appear on the list at the end.

The ZYPKG_INFO.tgz.log shows a lot of fails:

HandleZYPKG_INFO /NSA320S/4.70/zypkg
FindApp md5sum found /sbin/md5sum
ReadConfig Repositories
Start of block
http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ Mijzelf
http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4_stock_packages/ Mijzelfstock
End of block
8 start: 18:03:17
9 start: 18:03:17
9: FetchZYPKG_INFO http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ 9 Mijzelf
8: FetchZYPKG_INFO http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4_stock_packages/ 8 Mijzelfstock
9: FindApp curl found /usr/bin/curl
8: FindApp curl found /usr/bin/curl
9: 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_stock_packages/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_stock_packages_.tmp failed
8: Fetch http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4_stock_packages/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_stock_packages_.tmp succeeded
9: 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
9: sh: -f: unknown operand
8: sh: -f: unknown operand
9: sh: btsync_1.4.110_arm_007.zpkg
: unknown operand
9: mv: can't rename '/i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_/tmp': No such file or directory
9: mv: can't rename '/i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_/ffp_0.7_arm_006.zpkg
': No such file or directory
9: mv: can't rename 'btsync_1.4.110_arm_007.zpkg
': No such file or directory
9: mv: can't rename 'anyterm_9652_arm_001.zpkg
': No such file or directory
9: mv: can't rename 'MetaRepository_20181001_arm_015.zpkg
': No such file or directory
9: mv: can't rename 'Dropbear_2014.63_arm_002.zpkg
': No such file or directory
9: mv: can't rename 'MidnightCommander_4.6.1_arm_003.zpkg
': No such file or directory
9: mv: can't rename 'Tweaks_20200310_arm_035.zpkg
': No such file or directory
9: mv: can't rename 'RandomTools_20170220_arm_012.zpkg
': No such file or directory
9: mv: can't rename 'EncryptedShares_20140603_arm_001.zpkg
': No such file or directory
9: mv: can't rename 'exFAT_1.0.1_arm_001.zpkg
': No such file or directory
9: mv: can't rename 'MuninLite_1.0.4_arm_003.zpkg
': No such file or directory
9: mv: can't rename 'Pulse_0.12.4_arm_04.zpkg
': No such file or directory
9: mv: can't rename 'CalibreCOPS_1.1.3_arm_008.zpkg
': No such file or directory
9: mv: can't rename 'Darkstat_3.0.719_arm_005.zpkg
': No such file or directory
9: mv: can't rename 'PlexMediaServer_20161213_arm_003.zpkg
': No such file or directory
9: mv: can't rename 'Entware-ng_20181002_arm_006.zpkg
': No such file or directory
9: mv: can't rename 'ffp_0.7_arm_006.zpkg
': No such file or directory
9: mv: can't rename 'btsync_1.4.110_arm_007.zpkg
': No such file or directory
9: mv: can't rename 'anyterm_9652_arm_001.zpkg
': No such file or directory
9: mv: can't rename 'MetaRepository_20181001_arm_015.zpkg
': No such file or directory
9: mv: can't rename 'Dropbear_2014.63_arm_002.zpkg
': No such file or directory
9: mv: can't rename 'MidnightCommander_4.6.1_arm_003.zpkg
': No such file or directory
9: mv: can't rename 'Tweaks_20200310_arm_035.zpkg
': No such file or directory
9: mv: can't rename 'RandomTools_20170220_arm_012.zpkg
': No such file or directory
9: mv: can't rename 'EncryptedShares_20140603_arm_001.zpkg
': No such file or directory
9: mv: can't rename 'exFAT_1.0.1_arm_001.zpkg
': No such file or directory
9: mv: can't rename 'MuninLite_1.0.4_arm_003.zpkg
': No such file or directory
9: mv: can't rename 'Pulse_0.12.4_arm_04.zpkg
': No such file or directory
9: mv: can't rename 'CalibreCOPS_1.1.3_arm_008.zpkg
': No such file or directory
9: mv: can't rename 'Darkstat_3.0.719_arm_005.zpkg
': No such file or directory
9: mv: can't rename 'PlexMediaServer_20161213_arm_003.zpkg
': No such file or directory
9: mv: can't rename 'Entware-ng_20181002_arm_006.zpkg
': No such file or directory
9: mv: can't rename 'ffp_0.7_arm_006.zpkg
': No such file or directory
9: mv: can't rename 'btsync_1.4.110_arm_007.zpkg
': No such file or directory
9: mv: can't rename 'anyterm_9652_arm_001.zpkg
': No such file or directory
9: mv: can't rename 'MetaRepository_20181001_arm_015.zpkg
': No such file or directory
9: mv: can't rename 'Dropbear_2014.63_arm_002.zpkg
': No such file or directory
9: mv: can't rename 'MidnightCommander_4.6.1_arm_003.zpkg
': No such file or directory
9: mv: can't rename 'Tweaks_20200310_arm_035.zpkg
': No such file or directory
9: mv: can't rename 'RandomTools_20170220_arm_012.zpkg
': No such file or directory
9: mv: can't rename 'EncryptedShares_20140603_arm_001.zpkg
': No such file or directory
9: mv: can't rename 'exFAT_1.0.1_arm_001.zpkg
': No such file or directory
9: mv: can't rename 'MuninLite_1.0.4_arm_003.zpkg
': No such file or directory
9: mv: can't rename 'Pulse_0.12.4_arm_04.zpkg
': No such file or directory
9: mv: can't rename 'CalibreCOPS_1.1.3_arm_008.zpkg
': No such file or directory
9: mv: can't rename 'Darkstat_3.0.719_arm_005.zpkg
': No such file or directory
9: mv: can't rename 'PlexMediaServer_20161213_arm_003.zpkg
': No such file or directory
9: sh: btsync_1.4.110_arm_007.zpkg
: unknown operand
9: sh: btsync_1.4.110_arm_007.zpkg
: unknown operand
9: sed: /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_/ffp_0.7_arm_006.zpkg
: No such file or directory
9: sed: btsync_1.4.110_arm_007.zpkg
: No such file or directory
9: sed: anyterm_9652_arm_001.zpkg
: No such file or directory
9: sed: MetaRepository_20181001_arm_015.zpkg
: No such file or directory
9: sed: Dropbear_2014.63_arm_002.zpkg
: No such file or directory
9: sed: MidnightCommander_4.6.1_arm_003.zpkg
: No such file or directory
9: sed: Tweaks_20200310_arm_035.zpkg
: No such file or directory
9: sed: RandomTools_20170220_arm_012.zpkg
: No such file or directory
9: sed: EncryptedShares_20140603_arm_001.zpkg
: No such file or directory
9: sed: exFAT_1.0.1_arm_001.zpkg
: No such file or directory
9: sed: MuninLite_1.0.4_arm_003.zpkg
: No such file or directory
9: sed: Pulse_0.12.4_arm_04.zpkg
: No such file or directory
9: sed: CalibreCOPS_1.1.3_arm_008.zpkg
: No such file or directory
9: sed: Darkstat_3.0.719_arm_005.zpkg
: No such file or directory
9: sed: PlexMediaServer_20161213_arm_003.zpkg
: No such file or directory
9: sed: Entware-ng_20181002_arm_006.zpkg
: No such file or directory
9: sed: ffp_0.7_arm_006.zpkg
: No such file or directory
9: sed: btsync_1.4.110_arm_007.zpkg
: No such file or directory
9: sed: anyterm_9652_arm_001.zpkg
: No such file or directory
9: sed: MetaRepository_20181001_arm_015.zpkg
: No such file or directory
9: sed: Dropbear_2014.63_arm_002.zpkg
: No such file or directory
9: sed: MidnightCommander_4.6.1_arm_003.zpkg
: No such file or directory
9: sed: Tweaks_20200310_arm_035.zpkg
: No such file or directory
9: sed: RandomTools_20170220_arm_012.zpkg
: No such file or directory
9: sed: EncryptedShares_20140603_arm_001.zpkg
: No such file or directory
9: sed: exFAT_1.0.1_arm_001.zpkg
: No such file or directory
9: sed: MuninLite_1.0.4_arm_003.zpkg
: No such file or directory
9: sed: Pulse_0.12.4_arm_04.zpkg
: No such file or directory
9: sed: CalibreCOPS_1.1.3_arm_008.zpkg
: No such file or directory
9: sed: Darkstat_3.0.719_arm_005.zpkg
: No such file or directory
9: sed: PlexMediaServer_20161213_arm_003.zpkg
: No such file or directory
9: sed: Entware-ng_20181002_arm_006.zpkg
: No such file or directory
9: sed: ffp_0.7_arm_006.zpkg
: No such file or directory
9: sed: btsync_1.4.110_arm_007.zpkg
: No such file or directory
9: sed: anyterm_9652_arm_001.zpkg
: No such file or directory
9: sed: MetaRepository_20181001_arm_015.zpkg
: No such file or directory
9: sed: Dropbear_2014.63_arm_002.zpkg
: No such file or directory
9: sed: MidnightCommander_4.6.1_arm_003.zpkg
: No such file or directory
9: sed: Tweaks_20200310_arm_035.zpkg
: No such file or directory
9: sed: RandomTools_20170220_arm_012.zpkg
: No such file or directory
9: sed: EncryptedShares_20140603_arm_001.zpkg
: No such file or directory
9: sed: exFAT_1.0.1_arm_001.zpkg
: No such file or directory
9: sed: MuninLite_1.0.4_arm_003.zpkg
: No such file or directory
9: sed: Pulse_0.12.4_arm_04.zpkg
: No such file or directory
9: sed: CalibreCOPS_1.1.3_arm_008.zpkg
: No such file or directory
9: sed: Darkstat_3.0.719_arm_005.zpkg
: No such file or directory
9: sed: PlexMediaServer_20161213_arm_003.zpkg
: No such file or directory
9: sed: Entware-ng_20181002_arm_006.zpkg
.ZYPKG: No such file or directory
9 stop: 18:03:25
8: sh: DyDNS_001_arm_008.zpkg
: unknown operand
8: mv: can't rename '/i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_stock_packages_/tmp': No such file or directory
8: mv: can't rename '/i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_stock_packages_/BackupPlanner_001_arm_013.zpkg
': No such file or directory
8: mv: can't rename 'DyDNS_001_arm_008.zpkg
': No such file or directory
8: mv: can't rename 'eMule_001_arm_008.zpkg
': No such file or directory
8: mv: can't rename 'gallery_3.0.4_arm_007.zpkg
': No such file or directory
8: mv: can't rename 'GoogleDriveClient_0.4.0_arm_002.zpkg
': No such file or directory
8: mv: can't rename 'Memopal_2.4.4_arm_003.zpkg
': No such file or directory
8: mv: can't rename 'myZyXELcloud-Agent_0.0.15_arm_0015.zpkg
': No such file or directory
8: mv: can't rename 'NFS_1.1.4_arm_005.zpkg
': No such file or directory
8: mv: can't rename 'NZBGet_11.0_arm_004.zpkg
': No such file or directory
8: mv: can't rename 'ownCloud_7.0.3_arm_003.zpkg
': No such file or directory
8: mv: can't rename 'PHP-MySQL-phpMyAdmin_2.0_arm_009.zpkg
': No such file or directory
8: mv: can't rename 'Polkast_001_arm_0119.zpkg
': No such file or directory
8: mv: can't rename 'pyLoad_0.4.9_arm_005.zpkg
': No such file or directory
8: mv: can't rename 'SMART_6.2_arm_007.zpkg
': No such file or directory
8: mv: can't rename 'SqueezeCenter_7.7_arm_006.zpkg
': No such file or directory
8: mv: can't rename 'SSH_6.7_arm_001.zpkg
': No such file or directory
8: mv: can't rename 'Syslog_2.0.10_arm_004.zpkg
': No such file or directory
8: mv: can't rename 'Tftp_0.7_arm_002.zpkg
': No such file or directory
8: mv: can't rename 'Transmission_2.82_arm_003.zpkg
': No such file or directory
8: mv: can't rename 'WordPress_3.6.1_arm_009.zpkg
': No such file or directory
8: mv: can't rename 'BackupPlanner_001_arm_013.zpkg
': No such file or directory
8: mv: can't rename 'DyDNS_001_arm_008.zpkg
': No such file or directory
8: mv: can't rename 'eMule_001_arm_008.zpkg
': No such file or directory
8: mv: can't rename 'gallery_3.0.4_arm_007.zpkg
': No such file or directory
8: mv: can't rename 'GoogleDriveClient_0.4.0_arm_002.zpkg
': No such file or directory
8: mv: can't rename 'Memopal_2.4.4_arm_003.zpkg
': No such file or directory
8: mv: can't rename 'myZyXELcloud-Agent_0.0.15_arm_0015.zpkg
': No such file or directory
8: mv: can't rename 'NFS_1.1.4_arm_005.zpkg
': No such file or directory
8: mv: can't rename 'NZBGet_11.0_arm_004.zpkg
': No such file or directory
8: mv: can't rename 'ownCloud_7.0.3_arm_003.zpkg
': No such file or directory
8: mv: can't rename 'PHP-MySQL-phpMyAdmin_2.0_arm_009.zpkg
': No such file or directory
8: mv: can't rename 'Polkast_001_arm_0119.zpkg
': No such file or directory
8: mv: can't rename 'pyLoad_0.4.9_arm_005.zpkg
': No such file or directory
8: mv: can't rename 'SMART_6.2_arm_007.zpkg
': No such file or directory
8: mv: can't rename 'SqueezeCenter_7.7_arm_006.zpkg
': No such file or directory
8: mv: can't rename 'SSH_6.7_arm_001.zpkg
': No such file or directory
8: mv: can't rename 'Syslog_2.0.10_arm_004.zpkg
': No such file or directory
8: mv: can't rename 'Tftp_0.7_arm_002.zpkg
': No such file or directory
8: mv: can't rename 'Transmission_2.82_arm_003.zpkg
': No such file or directory
8: mv: can't rename 'WordPress_3.6.1_arm_009.zpkg
': No such file or directory
8: mv: can't rename 'BackupPlanner_001_arm_013.zpkg
': No such file or directory
8: mv: can't rename 'DyDNS_001_arm_008.zpkg
': No such file or directory
8: mv: can't rename 'eMule_001_arm_008.zpkg
': No such file or directory
8: mv: can't rename 'gallery_3.0.4_arm_007.zpkg
': No such file or directory
8: mv: can't rename 'GoogleDriveClient_0.4.0_arm_002.zpkg
': No such file or directory
8: mv: can't rename 'Memopal_2.4.4_arm_003.zpkg
': No such file or directory
8: mv: can't rename 'myZyXELcloud-Agent_0.0.15_arm_0015.zpkg
': No such file or directory
8: mv: can't rename 'NFS_1.1.4_arm_005.zpkg
': No such file or directory
8: mv: can't rename 'NZBGet_11.0_arm_004.zpkg
': No such file or directory
8: mv: can't rename 'ownCloud_7.0.3_arm_003.zpkg
': No such file or directory
8: mv: can't rename 'PHP-MySQL-phpMyAdmin_2.0_arm_009.zpkg
': No such file or directory
8: mv: can't rename 'Polkast_001_arm_0119.zpkg
': No such file or directory
8: mv: can't rename 'pyLoad_0.4.9_arm_005.zpkg
': No such file or directory
8: mv: can't rename 'SMART_6.2_arm_007.zpkg
': No such file or directory
8: mv: can't rename 'SqueezeCenter_7.7_arm_006.zpkg
': No such file or directory
8: mv: can't rename 'SSH_6.7_arm_001.zpkg
': No such file or directory
8: mv: can't rename 'Syslog_2.0.10_arm_004.zpkg
': No such file or directory
8: mv: can't rename 'Tftp_0.7_arm_002.zpkg
': No such file or directory
8: mv: can't rename 'Transmission_2.82_arm_003.zpkg
': No such file or directory
8: sh: DyDNS_001_arm_008.zpkg
: unknown operand
8: sh: DyDNS_001_arm_008.zpkg
: unknown operand
8: sed: /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_stock_packages_/BackupPlanner_001_arm_013.zpkg
: No such file or directory
8: sed: DyDNS_001_arm_008.zpkg
: No such file or directory
8: sed: eMule_001_arm_008.zpkg
: No such file or directory
8: sed: gallery_3.0.4_arm_007.zpkg
: No such file or directory
8: sed: GoogleDriveClient_0.4.0_arm_002.zpkg
: No such file or directory
8: sed: Memopal_2.4.4_arm_003.zpkg
: No such file or directory
8: sed: myZyXELcloud-Agent_0.0.15_arm_0015.zpkg
: No such file or directory
8: sed: NFS_1.1.4_arm_005.zpkg
: No such file or directory
8: sed: NZBGet_11.0_arm_004.zpkg
: No such file or directory
8: sed: ownCloud_7.0.3_arm_003.zpkg
: No such file or directory
8: sed: PHP-MySQL-phpMyAdmin_2.0_arm_009.zpkg
: No such file or directory
8: sed: Polkast_001_arm_0119.zpkg
: No such file or directory
8: sed: pyLoad_0.4.9_arm_005.zpkg
: No such file or directory
8: sed: SMART_6.2_arm_007.zpkg
: No such file or directory
8: sed: SqueezeCenter_7.7_arm_006.zpkg
: No such file or directory
8: sed: SSH_6.7_arm_001.zpkg
: No such file or directory
8: sed: Syslog_2.0.10_arm_004.zpkg
: No such file or directory
8: sed: Tftp_0.7_arm_002.zpkg
: No such file or directory
8: sed: Transmission_2.82_arm_003.zpkg
: No such file or directory
8: sed: WordPress_3.6.1_arm_009.zpkg
: No such file or directory
8: sed: BackupPlanner_001_arm_013.zpkg
: No such file or directory
8: sed: DyDNS_001_arm_008.zpkg
: No such file or directory
8: sed: eMule_001_arm_008.zpkg
: No such file or directory
8: sed: gallery_3.0.4_arm_007.zpkg
: No such file or directory
8: sed: GoogleDriveClient_0.4.0_arm_002.zpkg
: No such file or directory
8: sed: Memopal_2.4.4_arm_003.zpkg
: No such file or directory
8: sed: myZyXELcloud-Agent_0.0.15_arm_0015.zpkg
: No such file or directory
8: sed: NFS_1.1.4_arm_005.zpkg
: No such file or directory
8: sed: NZBGet_11.0_arm_004.zpkg
: No such file or directory
8: sed: ownCloud_7.0.3_arm_003.zpkg
: No such file or directory
8: sed: PHP-MySQL-phpMyAdmin_2.0_arm_009.zpkg
: No such file or directory
8: sed: Polkast_001_arm_0119.zpkg
: No such file or directory
8: sed: pyLoad_0.4.9_arm_005.zpkg
: No such file or directory
8: sed: SMART_6.2_arm_007.zpkg
: No such file or directory
8: sed: SqueezeCenter_7.7_arm_006.zpkg
: No such file or directory
8: sed: SSH_6.7_arm_001.zpkg
: No such file or directory
8: sed: Syslog_2.0.10_arm_004.zpkg
: No such file or directory
8: sed: Tftp_0.7_arm_002.zpkg
: No such file or directory
8: sed: Transmission_2.82_arm_003.zpkg
: No such file or directory
8: sed: WordPress_3.6.1_arm_009.zpkg
: No such file or directory
8: sed: BackupPlanner_001_arm_013.zpkg
: No such file or directory
8: sed: DyDNS_001_arm_008.zpkg
: No such file or directory
8: sed: eMule_001_arm_008.zpkg
: No such file or directory
8: sed: gallery_3.0.4_arm_007.zpkg
: No such file or directory
8: sed: GoogleDriveClient_0.4.0_arm_002.zpkg
: No such file or directory
8: sed: Memopal_2.4.4_arm_003.zpkg
: No such file or directory
8: sed: myZyXELcloud-Agent_0.0.15_arm_0015.zpkg
: No such file or directory
8: sed: NFS_1.1.4_arm_005.zpkg
: No such file or directory
8: sed: NZBGet_11.0_arm_004.zpkg
: No such file or directory
8: sed: ownCloud_7.0.3_arm_003.zpkg
: No such file or directory
8: sed: PHP-MySQL-phpMyAdmin_2.0_arm_009.zpkg
: No such file or directory
8: sed: Polkast_001_arm_0119.zpkg
: No such file or directory
8: sed: pyLoad_0.4.9_arm_005.zpkg
: No such file or directory
8: sed: SMART_6.2_arm_007.zpkg
: No such file or directory
8: sed: SqueezeCenter_7.7_arm_006.zpkg
: No such file or directory
8: sed: SSH_6.7_arm_001.zpkg
: No such file or directory
8: sed: Syslog_2.0.10_arm_004.zpkg
: No such file or directory
8: sed: Tftp_0.7_arm_002.zpkg
: No such file or directory
8: sed: Transmission_2.82_arm_003.zpkg
: No such file or directory
8: sed: WordPress_3.6.1_arm_009.zpkg
.ZYPKG: No such file or directory
8 stop: 18:03:26
Pushlist...
ReadConfig Pushlist
Start of block
End of block
Blacklist...
ReadConfig Blacklist
Start of block
End of block
Sort...
Choose packages...
cat: can't open '/i-data/md0/admin/zy-pkgs/MetaRepository/anyterm
.ZYPKG': No such file or directory
cat: can't open '/i-data/md0/admin/zy-pkgs/MetaRepository.url': No such file or directory
cat: can't open '/i-data/md0/admin/zy-pkgs/MetaRepository/eMule
.ZYPKG': No such file or directory
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/NSA320S/4.70/zypkg/ZYPKG_INFO.tgz - succeeded

No packages where installed before this and I've tried to clean everything MR related, enabled/disabled/reinstalled the MR package without success.

Anyt tips what to try next?

Accepted Solution

  • Mijzelf
    Mijzelf Posts: 2,645  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Answer ✓
    Options

    OK, found it. For some reason the new server does unix<>dos translation when using ftp. And so the ZYPKGS were screwed up.

    It should work now. If it still doesn't, remove the contents of \\<nas>\admin\zy-pkgs\MetaRepository\ and retry.

«1

All Replies

  • Mijzelf
    Mijzelf Posts: 2,645  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options
    9: 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
    9: sh: -f: unknown operand
    

    When looking in the script, that seems to happen in gui/MetaRepository/ZYPKG_INFO.sh line 205:

    local filelist="ZYPKG_INFO.tgz ZYPKGS"
    local result=` FetchAll ${filename}.tmp $url $filelist ` case $result in ZYPKGS) md5=` cat ${filename}${ZYPKGS} ${resources} | $MD5SUM | cut -d ' ' -f 1 `

    [ -f ${filename}.${TARGET_FIRMWARE}.md5 ] && [ "$md5" = "` cat ${filename}.${TARGET_FIRMWARE}.md5 `" ] && return 1

    That ' [ -f ' will be the problem. Somehow the shell doesn't support that. But I don't understand it. In the server logs I can see other 320S's download other packages than MetaRepository, like this summary:

    [25/Jan/2023:22:45:15 +0100] "GET /hello_author.php?MidnightCommander-NSA320S-AF03-V4.75(AANV.2) HTTP/1.0" 404 169 "-" "Wget/1.9.1"
    [30/Jan/2023:15:47:09 +0100] "GET /hello_author.php?PlexMediaServer-NSA320S-AF03-V4.75(AANV.2) HTTP/1.1" 404 169 "-" "Wget/1.9.1"
    [05/Feb/2023:14:23:20 +0100] "GET /hello_author.php?SyncThing-NSA320S-AF03-V4.75(AANV.2) HTTP/1.0" 404 169 "-" "Wget/1.9.1"
    [18/Feb/2023:01:17:18 +0100] "GET /hello_author.php?SyncThing-NSA320S-AF03-V4.75(AANV.2) HTTP/1.0" 404 169 "-" "Wget/1.9.1"
    [18/Feb/2023:17:38:53 +0100] "GET /hello_author.php?Pulse-NSA320S-AF03-V4.75(AANV.2) HTTP/1.0" 404 169 "-" "Wget/1.9.1"
    [18/Feb/2023:18:07:01 +0100] "GET /hello_author.php?RandomTools-NSA320S-AF03-V4.75(AANV.2) HTTP/1.0" 404 169 "-" "Wget/1.9.1"
    [18/Feb/2023:18:16:54 +0100] "GET /hello_author.php?Tweaks-NSA320S-AF03-V4.75(AANV.2) HTTP/1.0" 404 169 "-" "Wget/1.9.1"

    AFAICS that is done by MetaRepository, so how can it work on other boxes and not on yours? The content of zyxel.diskstation.eu is a backup of a few years ago. The server went down (hoster went out of business without warning) and there was no more recent backup. This weekend I'll check if the MetaRepository on the server is the latest one.

  • kemes
    kemes Posts: 11
    First Comment
    Options

    That '[ -f' will be the problem. Somehow the shell doesn'y support that.

    Yes. When connecting via Telnet I get this shell version:

    BusyBox v1.17.2 (2017-06-08 14:04:41 CST) built-in shell (ash)
    

  • kemes
    kemes Posts: 11
    First Comment
    edited March 2023
    Options

    The 1st line in the log also shows FW4.70 while I have FW4.75 installed..

  • Mijzelf
    Mijzelf Posts: 2,645  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    The MetaRepository on the server is the latest one. So that shouldn't be the problem.

    The 1st line in the log also shows FW4.70 while I have FW4.75 installed..

    Alas that doesn't mean anything. Each firmware has a build-in path to the packages <NAS>/<firmware-version>/ , but the firmware version doesn't change with each firmware. All firmwares >=4.40 and <4.70 used 4.40. Before 4.40 there was no firmware version in the URL, but the older packages were incompabile, so /4.40/ was added. At firmware 4.70 the URL changed again. Don't know why, I have sifted some 4.40 and 4.70 packages, and couldn't find any significant difference. Anyway, for the NSA320S fw 4.75 apparently still uses 4.70. I know there is a 4.75 directory on the server, that is because the NSA325 used that. And all that /<NSA>/ directories are basically the same one, with symlinks.

    Can you test next command in telnet?

    [ -f aaa ] || echo works
    

    This is supposed to check if file aaa exists, and if not, it echos 'works'. So the expected output is 'works'. Unless this -f is the problem.

  • kemes
    kemes Posts: 11
    First Comment
    Options

    Yes, the command does work:

    ~ $ [ -f aaa ] || echo works
    works

    Anything else I could do for debugging?

  • Mijzelf
    Mijzelf Posts: 2,645  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    Anything else I could do for debugging?

    Maybe. Next commands

    echo "GET /NSA320S/4.70/zypkg/ZYPKG_INFO.tgz HTTP/1.0" >request
    echo >>request
    echo >>request
    
    cat request | sh -x /i-data/sysvol/.PKG/MetaRepository/gui/MetaRepository/pkgcgi.cgi inetd-server
    

    emulates a request to MetaRepository, and enables verbose script execution. This will generate a huge ZYPKG_INFO.tgz.log, which might tell which is going wrong.

  • kemes
    kemes Posts: 11
    First Comment
    Options
    ~ # echo "GET /NSA320S/4.70/zypkg/ZYPKG_INFO.tgz HTTP/1.0" >request
    ~ # echo >>request
    ~ # echo >>request
    ~ # cat request | sh -x /i-data/sysvol/.PKG/MetaRepository/gui/MetaRepository/pkgcgi.cgi inetd-server
    sh: can't open '/i-data/sysvol/.PKG/MetaRepository/gui/MetaRepository/pkgcgi.cgi'

    The path you specified does not exist on my system. Running find on pkcgi.cgi:

    / # find / -name "pkgcgi.cgi"
    /usr/local/apache/htdocs/adv,/pkg/MetaRepository/pkgcgi.cgi
    /usr/local/zy-pkgs/gui/MetaRepository/pkgcgi.cgi
    /i-data/20ca2ef9/.system/zy-pkgs/gui/MetaRepository/pkgcgi.cgi

    Is one of these paths the correct one?

  • Mijzelf
    Mijzelf Posts: 2,645  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    The path you specified does not exist on my system.

    Ah sorry. I'm getting a bit rusty, that is the path in firmware 5. A 320s is a firmware 4 device.

    Is one of these paths the correct one?

    In theory all of them. It's all the same file which with help of bind mounts show up in different directories. But the last path is the one which is called from the internal MR webserver, and using that mimics the 'real behaviour' the best.

  • kemes
    kemes Posts: 11
    First Comment
    Options
    (This was printed directly to the console)
    
    ~ # cat request | sh -x /i-data/20ca2ef9/.system/zy-pkgs/gui/MetaRepository/pkgcgi.cgi
    
    dirname /i-data/20ca2ef9/.system/zy-pkgs/gui/MetaRepository/pkgcgi.cgi
    RELDIR=/i-data/20ca2ef9/.system/zy-pkgs/gui/MetaRepository
    CONFIG=/usr/local/zy-pkgs/etc/MetaRepository.conf
    . /usr/local/zy-pkgs/etc/MetaRepository.conf
    SCRATCH=/i-data/md0/admin/zy-pkgs/MetaRepository
    LISTEN_AT=59999NOPASV=false
    NOCURL=false
    cat
    [  = inetd-server ]
    [ -f /tmp/MetaRepository.log ]
    Main
    exec
    Content-type: text/html <html>
    <head>
    <title>Meta Repository</title>
    <style>
    body
    {
    background-color:MidnightBlue;
    color:lemonchiffon;
    background-image:url(/r50995,/playzone,/images/home_bg.png);
    }
    textarea
    {
    background-color:lemonchiffon;
    color:black;
    }
    input
    {
    background-color:MidnightBlue;
    color:lemonchiffon;
    font-size:140%;
    background-image:url(/r50995,/playzone,/images/home_bg.png);;
    }
    a
    {
    color:Chartreuse;
    }
    </style>
    </head>
    <body>
    <H2>MetaRepository for zypkgs</H2>
    <form method="GET" >
    <H4>Repositories</H4>Urls of repostories.
    Supported are http, https, ftp and local filesystem.
    A '+' at the end of the url will be exchanged by &lt;NAS&gt;/zypkg/&lt;FW&gt;, which is the default for ZyXEL repositories.
    If you add some extra word after a space after the url, it will show up in the description column in the webinterface.
    Lines starting with a '#' are ignored.
    <textarea name="Repositories" rows=13 cols=90 ># Official repository
    # ftp://ftp2.zyxel.com/+ ZyXEL
    # German mirror
    # ftp://ftp.zyxel-tech.de/2.new_mirror/+ Mirror
    # German beta server
    # ftp://ftp.zyxel-tech.de/+ Beta
    # Medion server
    # ftp://nas-download:sEhtalr@download.medion.de/ Medion
    # Mijzelf's repository
    http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ Mijzelf
    http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4_stock_packages/ Mijzelfstock
    # Local repository
    # /i-data/md0/admin/MyRepo/ Local</textarea>
    <input name="nocurl" type="checkbox" >Do not use curl
    <input name="nopasv" type="checkbox" >Do not use PASV for ftp
    <H4>Blacklist</H4>You can blacklist certain packages/versions.
    <textarea name="Blacklist" rows=1 cols=90 ></textarea>
    <input type="submit" value="Apply">
    </form>
    <H4>Release notes</H4>
    20181001zypkg015:
    <ul><li>Made the package more 'mirror-friendly', because nas-central is down for several weeks. Now the installer reads web_prefix to know where it's installed from.</li></ul>
    20161021zypkg014:
    <ul><li>Added support for firmware 5.20</li></ul>
    20160513zypkg013:
    <ul><li>Added support for the curl downloader</li>
    <li>Squashed a small bug causing a 'permission denied' line in the logs</li></ul>
    20151005zypkg012:
    <ul><li>Added repo names which show up in the package manager webinterface</li>
    <li>Added multithreading. The repos are fetched simultaneously instead of sequnetially</li></ul>
    20150916zypkg011:
    <ul><li>Added support for the NAS500 series, firmware 5.10 and newer</li>
    <li>Removed the 'donate' button</li></ul>
    20140529zypkg010:
    <ul><li>The firmware really doesn't like it when more instances of httpd are running. When it's running as httpd it's killed sometimes.
    When using symlinks or bindmounts the firmware webserver will not be restarted when needed, because start-stop-daemon detects it's already running.
    Solved it by using inetd, which directly calls the cgi script. Who needs a webserver?</li></ul>
    20140520zypkg009:
    <ul><li>Changed sort strategy. Instead of sorting on <i>some-version</i>zypkg<i>pkg-version</i>, now is sorted on <i>pkg-version</i>, just like the zypkg-manager does. So the pushlist is no longer necessary.</li>
    <li>Added repo priority. When two equal packages are offered by different repo's, it was unpredictable which one was used. Now the sequence in the repo-list is also the priority sequence.</li>
    <li>Found what was killing my server. The firmware did sometimes a 'killall httpd'. Solved it by using a symlink</li></ul>
    20140418zypkg008:
    <ul><li>Fixed a bug which kept a Medion from installing original Medion packages</li>
    <li>Limited the number of retries of wget, to protect the script against a non-existing host.</li></ul>
    20140407zypkg007:
    <ul><li>Fixed <a href="http://www.zyxelforum.de/new-zypkg-metarepository-p44303.html#p44303">this bug</a> by using ftp passive mode</li></ul>
    20140405zypkg005:
    <ul>
    <li>Some internal database files weren't cleaned up in time</li>
    <li>Added support for Medion boxes</li>
    <li>When an installed package is dropped from the upstream repo, it's no longer maintainable in the packages menu. On a Medion the whole list vanishes. To solve this, I add these orphaned packages to the generated repo file.</li>
    </ul>
    20140401zypkg004:
    <ul>
    <li>Fixed <a href="http://forum.nas-central.org/viewtopic.php?p=82079#p82079">this bug</a>, ownership and accessrights of certain directories were borked.</li>
    </ul>
    20140310zypkg003:
    <ul>
    <li>Fixed a bug which kept the package from upgrading itself.</li>
    </ul>
    20140308zypkg002:
    <ul>
    <li>Some cosmetical updates</li>
    <li>The used webserver was killed by *something*. Solved it by wrapping it in a script, and automatically restart it.</li>
    </ul>
    20140303zypkg001:
    <ul><li>Initial release.</li></ul>
    <hr>
    <H4><a href="http://zyxel.nas-central.org/wiki/3rd_party_zypkgs#MetaRepository">(External) Wiki entry</a></H4>
    </body>

    and the created log - ZYPKG_INFO.tgz.log (not that huge??):

    HandleZYPKG_INFO /NSA320S/4.70/zypkg
    FindApp md5sum found /sbin/md5sum
    ReadConfig Repositories
    Start of block
    http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ Mijzelf
    http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4_stock_packages/ Mijzelfstock
    End of block
    9 start: 15:59:44
    8 start: 15:59:44
    9: FetchZYPKG_INFO http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4/ 9 Mijzelf
    8: FetchZYPKG_INFO http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4_stock_packages/ 8 Mijzelfstock
    9: FindApp curl found /usr/bin/curl
    8: FindApp curl found /usr/bin/curl
    8: Fetch http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4_stock_packages/ZYPKG_INFO.tgz /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_stock_packages_.tmp failed
    9: 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
    9: 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
    9 stop: 15:59:44
    8: Fetch http://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw4_stock_packages/ZYPKGS /i-data/md0/admin/zy-pkgs/MetaRepository/http___zyxel.diskstation.eu_Users_Mijzelf_zypkg-repo_fw4_stock_packages_.tmp succeeded
    8 stop: 15:59:45
    Nothing changed
    TarHeader
    FindApp curl found /usr/bin/curl
    Fetch /i-data/md0/admin/zy-pkgs/MetaRepository/NSA320S/4.70/zypkg/ZYPKG_INFO.tgz - succeeded

  • Mijzelf
    Mijzelf Posts: 2,645  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    I think your 'requests' file is not OK. It should contain

    GET /NSA320S/4.70/zypkg/ZYPKG_INFO.tgz HTTP/1.0
    

    followed by 2 empty lines.

    The output you posted is the 'catch all' page, which is the webinterface page. So it didn't generate a new logfile. Instead you should have seen gibberish, the content of ZYPKG_INFO.tgz printed to the screen.

Consumer Product Help Center