1834185 Members
2839 Online
110064 Solutions
New Discussion

swinstall error

 

swinstall error

Hi

I am attempting to install a patch and when I run swinstall to preview I get this error:

# swinstall -p autoreboot=false -x patch_match_target=true -s /var/tmp/PHCO_39173.depot

======= 09/29/09 12:12:34 NZST BEGIN swinstall SESSION
(non-interactive) (jobid=HR2951-0069)

* Session started for user "root@HR2951".

* Beginning Selection
* Target connection succeeded for "HR2951:/".
ERROR: "HR2951:/var/spool/sw": You do not have permission for this
operation. The depot owner, system administrator, or
alternate root owner may need to use the "swreg" or "swacl"
command to give you permission. Or, to manage applications
designed and packaged for nonprivileged mode, see the
"run_as_superuser" option in the "sd" man page.
* Source connection failed for "HR2951:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is HR2951:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 09/29/09 12:12:35 NZST END swinstall SESSION

Any suggestions to fix this?

Regards
Eddie
4 REPLIES 4
Bill Hassell
Honored Contributor

Re: swinstall error

Assuming you are root when running this command, it would appear that a networking change may have taken place (/etc/hosts, DNS, order of alias names, etc). Restart swagentd:

/sbin/init.d/swagentd stop
/sbin/init.d/swagentd start


Bill Hassell, sysadmin

Re: swinstall error

Hi

Sort of fixed the initial issue ..Then run swinstall and it just hangs at analyzing the targets..

the log states this:

09/29/09 14:42:00 NZST BEGIN source AGENT SESSION (pid=11357)
* Agent session started for user "root@hr2966". (pid=11357)
ERROR: This Agent session lost the RPC connection to the Controller
or Target Agent that initiated the session. RPC runtime
detected this lost connection. The session is being shut
down. (pid=11357)
* 09/29/09 15:00:00 NZST END source AGENT SESSION (pid=11357)
* 09/29/09 15:06:22 NZST BEGIN source AGENT SESSION (pid=14959)

Robert-Jan Goossens
Honored Contributor

Re: swinstall error

Hi,

Target connection succeeded for "HR2951:/".

Agent session started for user "root@hr2966". (pid=11357)

Did you start both swinstall sessions on the same host?
HR2951 + hr2966

Robert-Jan

Re: swinstall error

Sorry hr2951 swinstall worked.

hr2966 is now the issue.