Thursday, July 9, 2009

Solaris Patch Cluster Error Codes

I find it really annoying to install Sun's patch cluster and stare at the screen to see some of those error codes the would look like something like these:

Installing 118666-20...
Installation of 118666-20 succeeded. Return code 0.
Installing 140455-01...
Installation of 140455-01 failed. Return code 8.
Installing 120094-22...
Installation of 120094-22 failed. Return code 8.
Installing 139943-01...
Installation of 139943-01 failed. Return code 1.
Installing 121211-02...
Installation of 121211-02 failed. Return code 1.
Installing 119986-03...
Installation of 119986-03 failed. Return code 1.
Installing 120543-14...
Installation of 120543-14 failed. Return code 8.
Installing 126440-01...
Installation of 126440-01 succeeded. Return code 0.
Installing 123590-10...
Installation of 123590-10 failed. Return code 8.
Installing 139608-02...
Installation of 139608-02 succeeded. Return code 0.
Installing 119081-25...
Installation of 119081-25 failed. Return code 1.
Installing 138322-03...
Installation of 138322-03 succeeded. Return code 0.


You'll never have a clue what the heck they would mean until you visit the log.

Since this kin of drives me nuts I decided to look for a summary of what this error codes mean, and here it it. Not really sure if these are updated though.

Here they are:

Exit code Meaning
0 No error
1 Usage error
2 Attempt to apply a patch that’s already been applied
3 Effective UID is not root
4 Attempt to save original files failed
5 pkgadd failed
6 Patch is obsoleted
7 Invalid package directory
8 Attempting to patch a package that is not installed
9 Cannot access /usr/sbin/pkgadd (client problem)
10 Package validation errors
11 Error adding patch to root template
12 Patch script terminated due to signal
13 Symbolic link included in patch
14 NOT USED
15 The prepatch script had a return code other than 0.
16 The postpatch script had a return code other than 0.
17 Mismatch of the -d option between a previous patch install and the current one.
18 Not enough space in the file systems that are targets of the patch.
19 $SOFTINFO/INST_RELEASE file not found
20 A direct instance patch was required but not found
21 The required patches have not been installed on the manager
22 A progressive instance patch was required but not found
23 A restricted patch is already applied to the package
24 An incompatible patch is applied
25 A required patch is not applied
26 The user specified backout data can’t be found
27 The relative directory supplied can’t be found
28 A pkginfo file is corrupt or missing
29 Bad patch ID format
30 Dryrun failure(s)
31 Path given for -C option is invalid
32 Must be running Solaris 2.6 or greater
33 Bad formatted patch file or patch file not found
34 The appropriate kernel jumbo patch needs to be installed

Readers who read this page, also read:




Bookmark and Share My Zimbio http://www.wikio.com

0 comments: