cdinst.sh fails with "cannot access `bin/agentinstall': No such file or directory" or similar errors
search cancel

cdinst.sh fails with "cannot access `bin/agentinstall': No such file or directory" or similar errors

book

Article ID: 222987

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

Running the cdinst.sh to start the installation or upgrade process may fail with the below errors in bold:

gzip: stdin: unexpected end of file
tar: This does not look like a tar archive
tar: c/gethost: Not found in archive
tar: c/myzone: Not found in archive
tar: c/change_awenv: Not found in archive
tar: c/perl: Not found in archive
tar: Exiting with failure status due to previous errors
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)
java -jar AxUnzip.jar -v AWFILES.zip data/awinstall.pl data/rainstall.pl data/inst.pl data/timezone_list.dat data/eng.msg
Error: Unable to access jarfile AxUnzip.jar
java -jar AxUnzip.jar -v AWUFILES.zip bin/agentinstall bin/rainstall bin/awinstall bin/jinstall.sh bin/apache_i.sh
Error: Unable to access jarfile AxUnzip.jar
chmod: cannot access `bin/agentinstall': No such file or directory
chmod: cannot access `bin/rainstall': No such file or directory
chmod: cannot access `bin/awinstall': No such file or directory

Environment

Release : 9.3

Component : APPLICATIONS MANAGER

Cause

Core installation media files are likely missing or may contain a symlink to a path that is incorrect or missing.

Below is an example of a listing command where installation files are symlinked to an incorrect path:

lrwxrwxrwx 1 appmgr users      89 Aug 25 13:58 apache.tar -> /u01/stage/Automic_9.3.5/TEMP/HPIA64.LINUX.WINDOWS/V9/web/THIRD-PARTY-LICENSES/apache.tar

Notice that if the installation media is extracted correctly, a symlink should not exist:

-rw-r--r--. 1 xyz amuser 47728640  apache.tar

Resolution

Re-extract installation media to a staging directory and recheck the "V9" directory. Installation media should be free of symlinks as seen below:

[xyz@hostname V9]$ ls -l /home/xyz/media/935/V9
total 122948

-rw-r--r--. 1 xyz amuser     9848 Xyz amuser AALIB.PL
-rw-r--r--. 1 xyz amuser    55147 Xyz amuser activation.jar
-rw-r--r--. 1 xyz amuser  5422377 Xyz amuser APACHE2.EXE
-rw-r--r--. 1 xyz amuser 47728640 Xyz amuser apache.tar
-rw-r--r--. 1 xyz amuser    45240 Xyz amuser APPWORX.PL
-rw-r--r--. 1 xyz amuser     3247 Xyz amuser AUTOUP.PL
-rw-r--r--. 1 xyz amuser     1442 Xyz amuser AWAA.PL
-rw-r--r--. 1 xyz amuser     9005 Xyz amuser AWCTL.PL
-rw-r--r--. 1 xyz amuser     9001 Xyz amuser AWDEBUG.PL
-rw-r--r--. 1 xyz amuser  1309548 Xyz amuser AWFILES.Z
-rw-r--r--. 1 xyz amuser   893283 Xyz amuser AWFILES.zip
-rw-r--r--. 1 xyz amuser 20672012 Xyz amuser AWhelp.zip
-rw-r--r--. 1 xyz amuser      506 Xyz amuser AWINSTALL
-rw-r--r--. 1 xyz amuser      395 Xyz amuser AWINSTALL.BAT
-rw-r--r--. 1 xyz amuser    21998 Xyz amuser awinstall.pl
-rw-r--r--. 1 xyz amuser  5013982 Xyz amuser AWjars.zip
-rw-r--r--. 1 xyz amuser    60264 Xyz amuser AWNFILES.zip
-rw-r--r--. 1 xyz amuser    24297 Xyz amuser AWPS_CI.ZIP
-rw-r--r--. 1 xyz amuser     2466 Xyz amuser AWSERVER_CONVERT.PL
-rw-r--r--. 1 xyz amuser    65536 Xyz amuser AWSPAWNNT.EXE
-rw-r--r--. 1 xyz amuser    73927 Xyz amuser AWUFILES.Z
-rw-r--r--. 1 xyz amuser    76781 Xyz amuser AWUFILES.zip
-rw-r--r--. 1 xyz amuser 32854478 Xyz amuser AWutil.zip
-rw-r--r--. 1 xyz amuser    76781 Xyz amuser AWVFILES.zip
-rw-r--r--. 1 xyz amuser     2322 Xyz amuser AW_WEB_UPDATE.PL
-rw-r--r--. 1 xyz amuser      770 Xyz amuser AW_WS_INSTALL.PL
-rw-r--r--. 1 xyz amuser     3003 Xyz amuser AXUNZIP.JAR
-rw-r--r--. 1 xyz amuser   284183 Xyz amuser BUILD_aix.Z
-rw-r--r--. 1 xyz amuser   253095 Xyz amuser BUILD_lxr73.Z
-rw-r--r--. 1 xyz amuser   280384 Xyz amuser BUILD_solaris.Z
-rw-r--r--. 1 xyz amuser       56 Xyz amuser CAT.BAT
-rwxr-xr-x. 1 xyz amuser    28276 Xyz amuser cdinst.sh
-rw-r--r--. 1 xyz amuser    45056 Xyz amuser CHANGE_AWENV.EXE
-rw-r--r--. 1 xyz amuser    49152 Xyz amuser CKSRV.EXE
-rw-r--r--. 1 xyz amuser     6216 Xyz amuser cksys.sql
-rw-r--r--. 1 xyz amuser     5226 Xyz amuser DEBUG.PL
-rw-r--r--. 1 xyz amuser    49152 Xyz amuser GZIP.EXE
-rw-r--r--. 1 xyz amuser   171729 Xyz amuser install.jar
-rw-r--r--. 1 xyz amuser   195585 Xyz amuser inst.pl
-rw-r--r--. 1 xyz amuser    40960 Xyz amuser INSTSRV.EXE
-rw-r--r--. 1 xyz amuser   545362 Xyz amuser JAVAX.MAIL.JAR
-rw-r--r--. 1 xyz amuser  1561224 Xyz amuser LB_aix.Z
-rw-r--r--. 1 xyz amuser   532171 Xyz amuser LB_lxr73.Z
-rw-r--r--. 1 xyz amuser  3126676 Xyz amuser LB_nt.zip
-rw-r--r--. 1 xyz amuser  1048217 Xyz amuser LB_solaris.Z
-rw-r--r--. 1 xyz amuser  2168932 Xyz amuser PERL56.DLL
-rw-r--r--. 1 xyz amuser    44528 Xyz amuser PERL.EXE
-rw-r--r--. 1 xyz amuser    13031 Xyz amuser rainstall.pl
-rw-r--r--. 1 xyz amuser      432 Xyz amuser RAUP_FILE.DAT
-rw-r--r--. 1 xyz amuser     3111 Xyz amuser RAUP.PL
-rw-r--r--. 1 xyz amuser   109127 Xyz amuser SHORTCUT.EXE
-rw-r--r--. 1 xyz amuser   105455 Xyz amuser SHORTCUTRA.EXE
-rw-r--r--. 1 xyz amuser     1325 Xyz amuser sysdba.sql
-rw-r--r--. 1 xyz amuser   114688 Xyz amuser TAR.EXE
-rw-r--r--. 1 xyz amuser   576630 Xyz amuser uc4-ra.jar