1834736 Members
2670 Online
110070 Solutions
New Discussion

swinstall

 
SOLVED
Go to solution
Martijn Bos_1
Occasional Advisor

swinstall

Hi all,

I try to install some sw-packages. swinstall returns following error when selecting the target:

"vwsapuwk:/": This target or source is already in use either within this same session or by another session. A read or write lock was denied.

I probably stopped (ctrl-c) the last installsession. I believe somewhere there is a "lock-file" which now keeps something locked.

My question is : Does somebody know whether the above is true, and which file the lock-file is,(so I can remove it)?

If you need any more information, don't hesitate to ask for more information.

Best Ragards
Martijn
Just don't call a file -rf
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: swinstall

/sbin/init.d/swagentd -r

Restarting the daemon almost always fixes these kind of problems.

The swagent log will also have an erorr message with the exact location of the lock file.

Lastly:

ps -ef | grep swinstall

Make sure all those processes are really dead and not trying to finish on auto pilot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: swinstall

Martijn,

Try stopping and restarting the swagentd:

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



Pete



Pete
A. Clay Stephenson
Acclaimed Contributor

Re: swinstall

The general cure for this is (as root):

0) Exit any swinstall sessions
1) cd /sbin/init.d
2) ./swagentd stop
./swagentd start

You should be good to go.
If it ain't broke, I can fix that.
Umapathy S
Honored Contributor
Solution

Re: swinstall

Martijn,
Restarting the swagentd will be the solution.

During the analysis phase swinstall tries to get a read lock. If not then the analysis phase fails.
check for /var/adm/sw/products/swlock.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Uday_S_Ankolekar
Honored Contributor

Re: swinstall

look for any process running related to swinstall, by ps -ef |grep sw

If no other swinstall /swremove is running then you will only see swagentd -r process.
If you see any othe process with sw then kill it and restart swagent agent the way it mentioned above post.
Good Luck..
Uday_S_Ankolekar
Honored Contributor

Re: swinstall

And........ the swlock file should be in
var/adm/sw/products/swlock
/var/spool/sw/catalog/swlock

-USA..
Good Luck..
Martijn Bos_1
Occasional Advisor

Re: swinstall

Thanx to all of you.

I'm amazed by the speed you HP-guys react.
(I'm mainly working on AIX :-) )

tnx.
Martijn Bos
Just don't call a file -rf
Martijn Bos_1
Occasional Advisor

Re: swinstall

Removing the lock files did the trick.

thx
Just don't call a file -rf