Operating System - HP-UX
1834478 Members
3514 Online
110067 Solutions
New Discussion

Re: "A SAM application is currently running" when installing patch bundle

 
Gary Cooper_1
Esteemed Contributor

"A SAM application is currently running" when installing patch bundle

I am trying to install the Dec2006 GOLDQPK11i on an old B132L+ using sam and I'm getting the following errors in swagent.log:

ERROR: A SAM application is currently running. Undesirable results could
occur. Please consult other SAM operators before installing this
patch.
ERROR: The "checkinstall" script for "PHCO_34207" failed (exit code
"1"). The script location was
"/var/tmp/BAAa04161/catalog/PHCO_34207/pfiles/checkinstall".
* This script had errors and the execution of this product
cannot proceed until the problem is fixed. Check the above
output from the script for further details.
* Executing preDSA command.

Any suggestions would be gratefully received.

Thanks,

Gary
11 REPLIES 11
Ludovic Derlyn
Esteemed Contributor

Re: "A SAM application is currently running" when installing patch bundle

Hello

Have you tested to stop sam ?
It's seems that the problem is sam active and patch installation active also

regards
L-DERLYN
Pete Randall
Outstanding Contributor

Re: "A SAM application is currently running" when installing patch bundle

Or skip SAM and just use "swinstall -s full_path_to_depot" to install.


Pete

Pete
Peter Godron
Honored Contributor

Re: "A SAM application is currently running" when installing patch bundle

Gary,
shut down your sessions. Then log on again and check if any sam processes are still running (ps -ef | grep sam).
If all clear, re-try your install.
Devender Khatana
Honored Contributor

Re: "A SAM application is currently running" when installing patch bundle

Gary,

It seems relatively simple to me. Is not there any SAM session running parallely while you are installling this ?

You can check this by

#ps -ef|grep -i sam

HTH,
Devender
Impossible itself mentions "I m possible"
Gary Cooper_1
Esteemed Contributor

Re: "A SAM application is currently running" when installing patch bundle

There's another process - /usr/sam/lbin/samd running. Is this another instance of sam? Should I kill it? (I've noticed that it is also running on some of my other machines, but not all.

Thanks,

Gary
Peter Godron
Honored Contributor

Re: "A SAM application is currently running" when installing patch bundle

Gary,
work out who the attached user/terminal is.
This may be an old session that has not terminated properly.Look at the date.
If unsure I'd kill it ;-)
Peter Godron
Honored Contributor

Re: "A SAM application is currently running" when installing patch bundle

Gary,
correction on last mail.

samd has got a function !

see http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=15320

The sam processes I have for the sam session are:
/usr/bin/sh /usr/sbin/sam
samx -K 23680 /usr/sam/lib/%L/fal.ui
Gary Cooper_1
Esteemed Contributor

Re: "A SAM application is currently running" when installing patch bundle

Ok, well I killed the samd process and reran the installation and I got exactly the same again... and the samd process had been restarted (and was still running when I closed sam).

Picking up on Pet's suggestion, how do I get swinstall to perform the sam option "Automatically select patches for existing software on the target" ?

Thanks.

Gary
Peter Godron
Honored Contributor

Re: "A SAM application is currently running" when installing patch bundle

Gary ,
match_target and autoselect_patches options
Gary Cooper_1
Esteemed Contributor

Re: "A SAM application is currently running" when installing patch bundle

Peter,

I've set the two options that you suggested to true and I get:

"The match operation failed to find software in the source that matches software on the target."

When I run sam, it matches loads of patches. Note that in sam, the "Automatically select patches for existing software on the target" option is under "Manage patch selection" and isn't "Match What Target Has".

Thanks,

Gary
Gary Cooper_1
Esteemed Contributor

Re: "A SAM application is currently running" when installing patch bundle

I finally got it to work with the following command:

# swinstall -x autoselect_patches=true -x patch_match_target=true -x autoreboot=true -s /netinstall/hp/PatchBundles/Dec2006/GOLDQPK11i

Regards,

Gary