1833004 Members
3017 Online
110048 Solutions
New Discussion

swinstall error

 
SOLVED
Go to solution
KPS
Super Advisor

swinstall error

Hi,

I have just created a registered depot without any issues. All was successful, but when I go to run a swinstall on it, I get the following message:

"Cannot establish a lock on this target because of an external error. (For exapmle the lock file could not be created)

Would anyone have any idea why I'm getting this error?

Thanks,
KPS
12 REPLIES 12
Jason Ray
Frequent Advisor

Re: swinstall error

I have had problems installing things before and restarting the "swagentd" daemon resolved the issue.
KPS
Super Advisor

Re: swinstall error

Just attempted to stop/restart the swagentd daemon and I'm still getting the same message.
Alex Glennie
Honored Contributor

Re: swinstall error

look for a /var/adm/sw/products/swlock file and remove it if you are sure no one else is using sdux .... see http://wwwpdp.web.cern.ch/wwwpdp/ose/file/hpux10/UNX1000344.html
KPS
Super Advisor

Re: swinstall error

I have removed the swlock and re-attempted and this still is not working. What I also tried was to see if I could point my swinstall at another registered depot and that seems to be working okay. This seems to be a specific issue with the depot that I'm trying to install from, rather than others that are working.

Could it be some sort of permssions issue?

Thanks,
KPS
Alex Glennie
Honored Contributor

Re: swinstall error

I'd say there's a reasonable chance ...given other depots are working ....

Are you su'd to root ?

Do we see further clues in the syslog.log or the sdux logs -> /var/adm/sw/*.log ?
KPS
Super Advisor

Re: swinstall error

Here's what the swagentd.log is showing us:

ERROR: Cannot lock depot/root at "/veritas/emcpatches" because the
lock file "/veritas/emcpatches/catalog/swlock" is not there
and cannot be created. This lock file should always exist.
The lock file is probably missing due to manual changes to the
depot/root, or due to a problem with one of the tools that
created or modified the depot/root.
ERROR: The target "/veritas/emcpatches" could not be opened.
Alex Glennie
Honored Contributor

Re: swinstall error

OK so did you use swpackage or make_bundles to create your patch bundle ? what were the commands you ran .....

KPS
Super Advisor

Re: swinstall error

These were tar files from EMC and I extracted them. I then ran swreg -l depot on the directory in which they reside.
Alex Glennie
Honored Contributor

Re: swinstall error

Did they come with documentation either tarred or untarred ?

fyi a patch is a tar file

so I might be tempted to get the original tar files and look at http://www.unixadm.net/howto/create_depot.html

that said I'd prefer to know what format EMC patches take .... anyone else know ... can these be used with sdux ?
Ronaldinho
Advisor
Solution

Re: swinstall error

Hi KPS,
Did you try creating the lock file to see why the swagent isn't creating it?

touch /veritas/emcpatches/catalog/swlock


Regards,
Ron
KPS
Super Advisor

Re: swinstall error

doing a touch of swlock did the trick in /veritas/emcpatches/catalog.


Thanks everyone,
-KPS
KPS
Super Advisor

Re: swinstall error

..