Showing posts with label tdi. Show all posts
Showing posts with label tdi. Show all posts

Friday, July 25, 2014

Tivoli Directory integrator installed with no execute permissions

I've just finished installing TDI as root.  When I try to apply the FP6 update, I see the following:

server1:/opt/IBM/TDI/V7.1/bin # ./applyUpdates.sh -update /opt/software/TDI/FP6/7.1.0-TIV-TDI-FP0006/TDI-7.1-FP0006.zip
Cannot run /opt/IBM/TDI/V7.1/jvm/jre/bin/jre/bin/java


 I checked permissions for /opt/IBM/TDI/V7.1/jvm/jre/bin/java and it does not have execute permissions:

server1:/opt/IBM/TDI/V7.1/bin # ll /opt/IBM/TDI/V7.1/jvm/jre/bin/java
-rw-r--r-- 1 root root 58848 Dec 15  2009 /opt/IBM/TDI/V7.1/jvm/jre/bin/java


So I made the file executable:

server1:/opt/IBM/TDI/V7.1/bin # chmod +x /opt/IBM/TDI/V7.1/jvm/jre/bin/java
server1:/opt/IBM/TDI/V7.1/bin # ll /opt/IBM/TDI/V7.1/jvm/jre/bin/java
-rwxr-xr-x 1 root root 58848 Dec 15  2009 /opt/IBM/TDI/V7.1/jvm/jre/bin/java


 Then I checked permissions in /opt/IBM/TDI/V7.1/bin and it also did not have executable permission on the files there:

server1:/opt/IBM/TDI/V7.1/bin # ll
total 92
drwxrwxr-x 3 root root 4096 Jul 21 16:16 amc
-rwxrwxrwx 1 root root 3568 Jul 21 16:19 applyUpdates.sh
-rw-rw-r-- 1 root root   52 May 11  2010 backupDir.sh
-rw-rw-r-- 1 root root 1424 May 11  2010 collect.sh
-rw-rw-r-- 1 root root 1186 May 11  2010 createstash.sh
-rw-rw-r-- 1 root root   29 May 11  2010 defaultSolDir.sh
-rw-rw-r-- 1 root root   25 May 11  2010 dirlist.txt
-rw-rw-r-- 1 root root  259 May 11  2010 filelist.txt
-rw-rw-r-- 1 root root   36 May 11  2010 javaHome.sh
-rw-rw-r-- 1 root root 1092 May 11  2010 logcmd.sh
-rw-rw-r-- 1 root root  885 May 11  2010 servicemgr.sh
-rw-rw-r-- 1 root root 1500 May 11  2010 setDefaultSolDir.sh
-rw-rw-r-- 1 root root 1973 May 11  2010 setISCHome.sh
-rw-rw-r-- 1 root root 3203 May 11  2010 setupCmdLine.sh
-rw-rw-r-- 1 root root 6276 May 11  2010 tdiBackup.sh
-rw-rw-r-- 1 root root   55 May 11  2010 tdiISCHome.sh
-rw-rw-r-- 1 root root 1534 May 11  2010 tdiSetBackupDir.sh
-rw-rw-r-- 1 root root 1706 May 11  2010 tdiSetJavaHome.sh
-rw-rw-r-- 1 root root 6018 May 11  2010 tdiVerifyInstall.sh
-rw-rw-r-- 1 root root 2281 May 11  2010 tdimiggbl
-rw-rw-r-- 1 root root 2507 Jul 21 16:30 tdisrvctl


 So I had to change everyone to +x:

server1:/opt/IBM/TDI/V7.1/bin # chmod +x *.sh
server1:/opt/IBM/TDI/V7.1/bin # ll
total 92
drwxrwxr-x 3 root root 4096 Jul 21 16:16 amc
-rwxrwxrwx 1 root root 3568 Jul 21 16:19 applyUpdates.sh
-rwxrwxr-x 1 root root   52 May 11  2010 backupDir.sh
-rwxrwxr-x 1 root root 1424 May 11  2010 collect.sh
-rwxrwxr-x 1 root root 1186 May 11  2010 createstash.sh
-rwxrwxr-x 1 root root   29 May 11  2010 defaultSolDir.sh
-rw-rw-r-- 1 root root   25 May 11  2010 dirlist.txt
-rw-rw-r-- 1 root root  259 May 11  2010 filelist.txt
-rwxrwxr-x 1 root root   36 May 11  2010 javaHome.sh
-rwxrwxr-x 1 root root 1092 May 11  2010 logcmd.sh
-rwxrwxr-x 1 root root  885 May 11  2010 servicemgr.sh
-rwxrwxr-x 1 root root 1500 May 11  2010 setDefaultSolDir.sh
-rwxrwxr-x 1 root root 1973 May 11  2010 setISCHome.sh
-rwxrwxr-x 1 root root 3203 May 11  2010 setupCmdLine.sh
-rwxrwxr-x 1 root root 6276 May 11  2010 tdiBackup.sh
-rwxrwxr-x 1 root root   55 May 11  2010 tdiISCHome.sh
-rwxrwxr-x 1 root root 1534 May 11  2010 tdiSetBackupDir.sh
-rwxrwxr-x 1 root root 1706 May 11  2010 tdiSetJavaHome.sh
-rwxrwxr-x 1 root root 6018 May 11  2010 tdiVerifyInstall.sh
-rw-rw-r-- 1 root root 2281 May 11  2010 tdimiggbl
-rw-rw-r-- 1 root root 2507 Jul 21 16:30 tdisrvctl


 I extracted both CZ9MNML.tar as root, and ftp'd 7.1.0-TIV-TDI-FP0006.zip also as root:

server1:/opt/software/TDI/FP6 # ll
total 39888
-rw-r--r-- 1 root root 40794346 Jul 11 20:24 7.1.0-TIV-TDI-FP0006.zip

However, apparently the install succeeded:

server1:/opt/IBM/TDI/V7.1/bin # ./applyUpdates.sh -queryreg
Information from .registry file in: /opt/IBM/TDI/V7.1
Edition: Identity
Level: 7.1.0.6
License: None

Fixes Applied
=-=-=-=-=-=-=
TDI-7.1-FP0006(7.1.0.0)

Components Installed
=-=-=-=-=-=-=-=-=-=
BASE
   -TDI-7.1-FP0006
SERVER
   -TDI-7.1-FP0006
CE
   -TDI-7.1-FP0006
JAVADOCS
EXAMPLES
   -TDI-7.1-FP0006
EMBEDDED WEB PLATFORM
AMC
   Deferred: false

  

Resolution

The filesystem /tmp, where the installer extracts the installer, had NOEXEC set in /etc/fstab.  This would breat the execute permissions required:

server1:/opt/IBM/WebSphere/AppServer/bin # cat /etc/fstab
/dev/vg_root/lv_tmp  /tmp                 ext3       acl,user_xattr,noexec,nodev        1 2


To fix this, there are two options:

1. Edit /etc/fstab and remove noexec.   Then, execute mount -o remount /tmp; or

2. Set the IATEMPDIR variable to a directory where root has execute permission: export IATEMPDIR=/root/tmp/

I used option 2, and it resolved the issue.