Saturday 10 May 2014

While doing KJP unzip command not working throwing error & lack of excutable persmissons to scripts in Patches How to resolve ??

# unzip 10_Recommended.zip
Archive:  10_Recommended.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of 10_Recommended.zip or
        10_Recommended.zip.zip, and cannot find 10_Recommended.zip.ZIP, period.

Solution:-
Before extracting REcommended patches its home directory should contain 777 permission
other wise extraced files may not get executable permissions due to this patching does not happens
if unzip Command not support latest Zip files use JAR Command
#jar -xf 10_Recommended.zip (it extracts in current location)
-->Hear Wipro is home directory which does not have 777 permissions so jar extracts files does not
have executable privilages so we face below problem

# ./installpatchset --s10patchset
Setup ..

Recommended OS Patchset Solaris 10 SPARC (2014.05.07)
The patch set will complete installation in this session. No intermediate
reboots are required.
Application of patches started : 2014.05.10 10:47:25
Applying 120900-04 (  1 of 373) ... skipped
Applying 121133-02 (  2 of 373) ... skipped
Applying 119254-89 (  3 of 373) ... failed
Application of patches finished : 2014.05.10 10:47:28

Following patches were skipped :
 Patches already applied
 120900-04     121133-02
Following patch failed to apply :
 119254-89
Aborting due to failure while applying patch 119254-89.
Application of this patch should have succeeded - this failure is unexpected.
Please assess cause of failure and verify system integrity before proceeding.
Install log files written :
  /var/sadm/install_data/s10s_rec_patchset_short_2014.05.10_10.47.25.log
  /var/sadm/install_data/s10s_rec_patchset_verbose_2014.05.10_10.47.25.log
  /var/sadm/install_data/s10s_rec_patchset_failed_2014.05.10_10.47.25.log
 # pwd
/wipro/10_Recommended
 # ls
10_Recommended.README  Copyright              installcluster         patch_order            patchset.conf
10_Recommended.html    LEGAL_LICENSE.TXT      installpatchset        patches
# patchadd 119254-89
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!

Approved patches will be installed in this order:
119254-89

ERROR: The /wipro/10_Recommended/patches/119254-89/prepatch script contains invalid permissions. Please make the script executable and reinstall 119254-89.
WARNING: Skipping patch
# ls -l /wipro/10_Recommended/patches/119254-89/prepatch
-rw-r--r--   1 root     root         539 May 10 09:45 /wipro/10_Recommended/patches/119254-89/prepatch
 # chmod 755 /wipro/10_Recommended/patches/119254-89/prepatch
 # patchadd 119254-89
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!

Approved patches will be installed in this order:
119254-89

ERROR: The /wipro/10_Recommended/patches/119254-89/postpatch script contains invalid permissions. Please make the script executable and reinstall 119254-89.
WARNING: Skipping patch
# ls -l /wipro/10_Recommended/patches/119254-89/prepatch
-rwxr-xr-x   1 root     root         539 May 10 09:45 /wipro/10_Recommended/patches/119254-89/prepatch
 # ls -l /wipro/10_Recommended/patches/119254-89/postpatch
-rw-r--r--   1 root     root        2951 May 10 09:45 /wipro/10_Recommended/patches/119254-89/postpatch
You have new mail in /var/mail/root
 # chmod 755 /wipro/10_Recommended/patches/119254-89/postpatch

--->after change permission of Prepatch & Postpatch scripts patch installed successfully & repeat for following patch also.

 # patchadd 119254-89
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!

Approved patches will be installed in this order:
119254-89

Checking installed patches...
Executing prepatch script...
Installing patch packages...
Patch 119254-89 has been successfully installed.
See /var/sadm/patch/119254-89/log for details
Executing postpatch script...
Patch packages installed:
  SUNWinstall-patch-utils-root
  SUNWpkgcmdsr
  SUNWpkgcmdsu
  SUNWswmt
 # cd ..
 # ls
10_Recommended.README  Copyright              installcluster         patch_order            patchset.conf
10_Recommended.html    LEGAL_LICENSE.TXT      installpatchset        patches
 # ./installpatchset --s10patchset
Setup ..

Recommended OS Patchset Solaris 10 SPARC (2014.05.07)
The patch set will complete installation in this session. No intermediate
reboots are required.
Application of patches started : 2014.05.10 10:50:23
Applying 120900-04 (  1 of 373) ... skipped
Applying 121133-02 (  2 of 373) ... skipped
Applying 119254-89 (  3 of 373) ... skipped
Applying 119317-01 (  4 of 373) ... skipped
Applying 121296-01 (  5 of 373) ... skipped
Applying 138215-01 (  6 of 373) ... skipped
Applying 148336-01 (  7 of 373) ... failed
Application of patches finished : 2014.05.10 10:50:30

Following patches were skipped :
 Patches already applied
 120900-04     119254-89     119317-01     121296-01     138215-01
 121133-02
Following patch failed to apply :
 148336-01
Aborting due to failure while applying patch 148336-01.
Application of this patch should have succeeded - this failure is unexpected.
Please assess cause of failure and verify system integrity before proceeding.
Install log files written :
  /var/sadm/install_data/s10s_rec_patchset_short_2014.05.10_10.50.23.log
  /var/sadm/install_data/s10s_rec_patchset_verbose_2014.05.10_10.50.23.log
  /var/sadm/install_data/s10s_rec_patchset_failed_2014.05.10_10.50.23.log
 # cd 148336-01
 # ls
148336-01.html     README.148336-01   SUNWxcu4           postbackout        prebackout
LEGAL_LICENSE.TXT  SUNWesu            patchinfo          postpatch          prepatch
 # ls -l
total 50
-rw-r--r--   1 root     root        7121 May 10 10:09 148336-01.html
-rw-r--r--   1 root     root         183 May 10 10:09 LEGAL_LICENSE.TXT
-rw-r--r--   1 root     root        3306 May 10 10:09 README.148336-01
drwxr-xr-x   4 root     root         512 May 10 10:09 SUNWesu
drwxr-xr-x   4 root     root         512 May 10 10:09 SUNWxcu4
-rw-r--r--   1 root     root         217 May 10 10:09 patchinfo
-rw-r--r--   1 root     root        1833 May 10 10:09 postbackout
-rw-r--r--   1 root     root        1829 May 10 10:09 postpatch
-rw-r--r--   1 root     root        2433 May 10 10:09 prebackout
-rw-r--r--   1 root     root        2429 May 10 10:09 prepatch
 # chmod 755 prepatch postpatch
 # ls -lrth
total 50
drwxr-xr-x   4 root     root         512 May 10 10:09 SUNWxcu4
-rw-r--r--   1 root     root         183 May 10 10:09 LEGAL_LICENSE.TXT
-rw-r--r--   1 root     root        2.4K May 10 10:09 prebackout
-rwxr-xr-x   1 root     root        1.8K May 10 10:09 postpatch
drwxr-xr-x   4 root     root         512 May 10 10:09 SUNWesu
-rw-r--r--   1 root     root        7.0K May 10 10:09 148336-01.html
-rwxr-xr-x   1 root     root        2.4K May 10 10:09 prepatch
-rw-r--r--   1 root     root        3.2K May 10 10:09 README.148336-01
-rw-r--r--   1 root     root        1.8K May 10 10:09 postbackout
-rw-r--r--   1 root     root         217 May 10 10:09 patchinfo
 # pwd
/wipro/10_Recommended/patches/148336-01
 # cd ..
 # patchadd 148336-01
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!

Approved patches will be installed in this order:
148336-01

Checking installed patches...
Executing prepatch script...
Installing patch packages...
Patch 148336-01 has been successfully installed.
See /var/sadm/patch/148336-01/log for details
Executing postpatch script...
Patch packages installed:
  SUNWesu
  SUNWxcu4
 # cd ..
 # ls
10_Recommended.README  Copyright              installcluster         patch_order            patchset.conf
10_Recommended.html    LEGAL_LICENSE.TXT      installpatchset        patches
 # ./installpatchset --s10patchset
Setup .....

Recommended OS Patchset Solaris 10 SPARC (2014.05.07)
The patch set will complete installation in this session. No intermediate
reboots are required.
Application of patches started : 2014.05.10 10:53:19
Applying 120900-04 (  1 of 373) ... skipped
Applying 121133-02 (  2 of 373) ... skipped
Applying 119254-89 (  3 of 373) ... skipped
Applying 119317-01 (  4 of 373) ... skipped
Applying 121296-01 (  5 of 373) ... skipped
Applying 138215-01 (  6 of 373) ... skipped
Applying 148336-01 (  7 of 373) ... skipped
Applying 146054-07 (  8 of 373) ... failed
Application of patches finished : 2014.05.10 10:53:34

Following patches were skipped :
 Patches already applied
 120900-04     119254-89     121296-01     138215-01     148336-01
 121133-02     119317-01
Following patch failed to apply :
 146054-07
Aborting due to failure while applying patch 146054-07.
Application of this patch should have succeeded - this failure is unexpected.
Please assess cause of failure and verify system integrity before proceeding.
Install log files written :
  /var/sadm/install_data/s10s_rec_patchset_short_2014.05.10_10.53.19.log
  /var/sadm/install_data/s10s_rec_patchset_verbose_2014.05.10_10.53.19.log
  /var/sadm/install_data/s10s_rec_patchset_failed_2014.05.10_10.53.19.log
 # cd patches/146054-07
 # chmod 755 prepatch postpatch
 # pwd
/wipro/10_Recommended/patches/146054-07
 # pwd
/wipro/10_Recommended/patches/146054-07
------>so i changed recursively to all files in WIPRO HOmedirectory now KJP done successfully.

 # chmod -R 755 /wipro


 # ls
10_Recommended.README  Copyright              installcluster         patch_order            patchset.conf
10_Recommended.html    LEGAL_LICENSE.TXT      installpatchset        patches
 # ./installpatchset --s10patchset
Setup ....

Recommended OS Patchset Solaris 10 SPARC (2014.05.07)
The patch set will complete installation in this session. No intermediate
reboots are required.
Application of patches started : 2014.05.10 10:58:20
Applying 120900-04 (  1 of 373) ... skipped
Applying 121133-02 (  2 of 373) ... skipped
Applying 119254-89 (  3 of 373) ... skipped
..............
updated successfully

No comments:

Post a Comment