1833007 Members
2752 Online
110048 Solutions
New Discussion

swinstall lock error

 
SOLVED
Go to solution
Brendan McDonald
Frequent Advisor

swinstall lock error

Hi, I'm hoping that you can help me with this.

I'm trying to install some base DCE packages on servers without cdrom's. I've tar'd up the contents of the cdrom and copied them to my remote server and untar'd to a location.

I then try running 'swinstall' and set it for a local directory and get the following error;

Cannot establish a lock on this target because of an external error
(for example, the lock file could not be created).

I've stopped the swagentd daemon (using swagentd -k), removed the '/var/adm/sw/products/swlock' file and started the agent agian (using swagentd). Try the install again and same problem.

Because of security and personnel issues, I can't egt someone to load the CD for me to mount nor can I use NFS and remote mount the CD. As far as I can see this is my only way of installing a package of the base CD's.

If you've got another idea how to install these packages, please let me know or how to fix the above problem it would be much appreciated.

Thanks.

Cheers.
8 REPLIES 8
Senthil Kumar .A_1
Honored Contributor
Solution

Re: swinstall lock error

Hi,

This is caused due to missing lock file in the catalog sub-directory of the depot.

To fix this do the following,

cd /DEPOTPATH/catalog
touch swlock

where DEPOTPATH is the full path to the depot location.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Muthukumar_5
Honored Contributor

Re: swinstall lock error

how did you run swinstall (with syntax). ?

--
Muthu
Easy to suggest when don't know about the problem!
RAC_1
Honored Contributor

Re: swinstall lock error

Once you untar, can you do swlist on then without problems??

Other options would be doing a swcopy on one server an then installaing on other servers.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: swinstall lock error

Hello,

Check these threads,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=884010
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=938878

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: swinstall lock error

yep. Senthil is correct. Try to create a swlock file with permission of 444 in /catalog/ directory. Then you will not get any problem.

Read swinstall man page with swlock keyword.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: swinstall lock error

Hi,

Just to add on, While you restart swagentd, try with this commands

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

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Brendan McDonald
Frequent Advisor

Re: swinstall lock error

Thanks for that.

I've created the swlist with permissions 444 in /TAR'd_CD_PATH/catalog.

When I now run 'swinstall' (with no switches). click on "local directory" and then the path, now gets another error;

File /var/tmp/BAAa01451/catclog/DCE-CoreAdmin/DCE-ACCT-MGR/INFO does not exist.
The catalog files for product at DCE-CoreAdmin,r=B.11.00.10 failed to load. Check the above output for details.

I've tried creating the INFO file and necessary directories but a different INFO file appears each time (it could be /var/tmp/BAAa01451/catclog/DCE-CoreAdmin/pfile/INFO).

Thanks.
Muthukumar_5
Honored Contributor

Re: swinstall lock error

INFO file is having all informations about permission and special settings. I am doubt on the software package in CD. May be you can use any other DCE package CD?

--
Muthu
Easy to suggest when don't know about the problem!