Utility used to install the update failed with exit code 1

Hello!

When I try to install an update on my system, the following happens:

# smpatch update -i 119116-22

Update 119116-22 will not be downloaded since it already exists in the download directory.

Installing patches from /var/sadm/spool...

Failed to install patch 119116-22.

Utility used to install the update failed with exit code 1.

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:119116-22

Preparing checklist for non-global zone check...Checking non-global zones...

Cannot open pkginfo file //var/sadm/pkg/.save.SUNWhea/pkginfo

Non-global zone check failed. No change made to the System.

Patchadd exiting.

Failed to install patch 119116-22.

ALERT: Failed to install patch 119116-22.

Does anyone know how to fix this?

TIA

Stephan

[1033 byte] By [windy81a] at [2007-11-26 16:40:41]
# 1
Dear Stephan ,Please tell us a little about your system :# cat /etc/release# uname -a# zoneadm listand about the patch :# sum 119116-22.jar46026 24003 119116-22.jarThank you.Mod.
ForumModeratora at 2007-7-8 23:07:37 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2

> # cat /etc/release

Solaris 10 6/06 s10x_u2wos_09a X86

Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.

Use is subject to license terms.

Assembled 09 June 2006

> # uname -a

SunOS canis 5.10 Generic_118855-19 i86pc i386 i86pc Solaris

> # zoneadm list

Seven zones, including the global one.

> # sum 119116-22.jar

43626 12002

Regards

Stephan

windy81a at 2007-7-8 23:07:37 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3

It appears that your patch might be corrupted, could you try downloading a fresh copy from sunsolve and verify that the sum command returns the following:

$ sum 119116-22.jar

46026 24003 119116-22.jar

The file size should be 12289045 bytes.

Signed patch available from http://sunsolve.sun.com/search/document.do?assetkey=1-21-119116-22-1

Mod.

ForumModeratora at 2007-7-8 23:07:37 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4

> It appears that your patch might be corrupted, could

> you try downloading a fresh copy from sunsolve and

> verify that the sum command returns the following:

I downloaded the patch from the page you mentioned, but the md5sum is equal to the file in /var/sadm/spool

md5sum 119116-22.jar

f55c3292bba784320dff5d32db5d994d 119116-22.jar

The output of sum remains the same. What is wrong here?

windy81a at 2007-7-8 23:07:37 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5
That is strange indeed, could you try downloading and applying the unsigned zip to see if that works?Mod.
ForumModeratora at 2007-7-8 23:07:37 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 6

> That is strange indeed, could you try downloading and

> applying the unsigned zip to see if that works?

The problem persits:

# patchadd -M /root/119116/

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:

119116-22

Preparing checklist for non-global zone check...

Checking non-global zones...

Cannot open pkginfo file //var/sadm/pkg/.save.SUNWhea/pkginfo

Non-global zone check failed. No change made to the System.

Patchadd exiting.

windy81a at 2007-7-8 23:07:37 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 7

> Cannot open pkginfo file

> //var/sadm/pkg/.save.SUNWhea/pkginfo

That's a common issue. Remove the ".save.SUNWhea" file or directory

in /var/sadm/pkg, and try again.

Sun's patch tools (e.g. patchadd) get confused when /var/sadm/pkg

contains anything (file or directory) which is not a valid package

information directory.

At Sun: Could you please fix this? A simple example to reproduce

the issue:

# touch /var/sadm/pkg/core

# patchadd -p

Cannot open pkginfo file //var/sadm/pkg/core/pkginfo

No patches installed

mp.

Martin_Paula at 2007-7-8 23:07:37 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 8
Can you please check if the /var/sadm/pkg/.save.SUNWhea directory exists and if so, what it contains?Also, is this problem just occurring for this one patch or also for other patches?
ForumModeratora at 2007-7-8 23:07:37 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 9

> Can you please check if the

> /var/sadm/pkg/.save.SUNWhea directory exists and if

> so, what it contains?

This directory did not exist in the global zone, but I found it in a non-global zone. After deleting it, all patches installed normaly.

But I think the error-message is weird in two ways: "Cannot open" seems like it searches for a directory which should be there. And the path was relative to the zone-root.

Thank you!

Stephan

windy81a at 2007-7-8 23:07:37 > top of Java-index,Administration Tools,Sun Update Connection-System...