Operating System - HP-UX
1825775 Members
2470 Online
109687 Solutions
New Discussion

cannot establish lock when install package on hp-ux

 
Barry Lee_2
New Member

cannot establish lock when install package on hp-ux

I am trying install a Veritas package to a PA-RISC system running hp-ux b.11.11.

swinstall and swcopy both gave me the error : Cannot establish a lock on this target because of an external error (for exmple, the lock file could not be created).

Could some gurus shed a light on this issue? Thanks a bunch!
6 REPLIES 6
Michael Tully
Honored Contributor

Re: cannot establish lock when install package on hp-ux

Have you restarted the daemon?

# swagent -r
Anyone for a Mutiny ?
Barry Lee_2
New Member

Re: cannot establish lock when install package on hp-ux

Thank you very much for the reply
I did restart daemon, but still ran into the same problem.

BTW, I used following commands to restart daemon
/sbin/init.d/swagentd stop
/sbin/init.d/swagentd start

When I tried : swagent -r
ERROR: Command "swagent" sould only be invoked by software installation daemon
Michael Tully
Honored Contributor

Re: cannot establish lock when install package on hp-ux

There is one further thing I thought. There was a post I read some time ago about that swinstall uses a locking mechanism. The reason it does that is so that you only can run one 'sw' session at a time.

You may need an 'swlock' file in the sub-directory of the depot.

One other thought, have you changed anything on the system in relation to DNS, IP address, hostname or ACL?
Anyone for a Mutiny ?
Barry Lee_2
New Member

Re: cannot establish lock when install package on hp-ux

Work like a charm!

Just touched a swlock file under the package subdirectory.

Bow!
T G Manikandan
Honored Contributor

Re: cannot establish lock when install package on hp-ux

The problem is that of a missing lock file in the source veritas package depot.


The best thing is get the full package for installation.

Try creating a file 'swlock' in the /depot_path/catalog directory.



Ulf Näsström
New Member

Re: cannot establish lock when install package on hp-ux

Thanks for the tip
I just had the same problem trying to install latest Ignite for HP-UX 11.00.
I just made a touch on ...catalog/swlock and the install worked as it should.
Strange since I have ftp:d the complete software from software.external.hp.com.

Thanks again
/Ulf N