Error while updating remote client (zip library missing) - Linux/FreeBSD
Posted by Andre Kuehnemund on 19 December 2013 15:32
1.) P5 Server running on Linux (CentOS, minimal install). Customer tried to update P5 version installed on a client using the 'Update client' functionality under 'Clients'. This failed with the following error message:
generating the distribution file failed: /usr/local/aw/temp/awpstupd.zip
/usr/local/aw/etc/awdist.sh: line 60:
zip: command not found
The cause of this error was that the 'zip' package did not get installed as part of a minimal install of CentOS. Customer ran "yum install zip" in order to install 'zip'. Once 'zip' had been installed the remote update worked flawlessly.
2.) The FreeNAS P5 appliance (http://www.archiware.com/blog/build-your-own-archiware-appliance-en/ & http://www.archiware.com/blog/build-your-own-archiware-p5-appliance-german/) also does not come with the 'zip' package installed. Attempting to remotely upgrade P5 clients from a FreeNAS P5 server will result in the same error as above.
To install the 'zip' package, connect to your FreeNAS P5 appliance via ssh, then run the following commands:
(Please note the path and package name may have to be changed, based on FreeBSD version, CPU architecture and 'zip' package version. Please use 'uname -a' to get OS version and CPU architecture. Lists of FreeBSD packages can be found here: http://pkg.freebsd.org/
pkg install zip-3.0_1.txz
Zip should now be installed. Execute 'zip' at command prompt. You should get something like this:
[root@freenas] ~# zip
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
Zip 3.0 (July 5th 2008). Usage:
The remote client update should now work.