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

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 phm amusers 47728640 Apr 30 10:55 apache.tar

Environment

Release : 9.3

Component : APPLICATIONS MANAGER

Resolution

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

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