- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swpackage ERROR: Cannot lock ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:21 AM
07-07-2003 02:21 AM
swpackage ERROR: Cannot lock ...
I try to rebuild a swpackage and get following messages:
root@cad517 /var/install/packages/psf # swpackage -s Printer @ ../depot
======= 07/07/03 11:57:55 METDST BEGIN swpackage SESSION
* Session started for user "root@cad517".
* Source: cad517:Printer
* Target: cad517:../depot
* Software selections:
*
* Beginning Selection Phase.
* Reading the Product Specification File (PSF) "Printer".
* Reading the product "Printer" at line 1.
* Reading the fileset "Printer" at line 16.
ERROR: Cannot lock "../depot" because another command holds a
conflicting lock. The process id of that command is 2030.
ERROR: Cannot read the target "../depot".
======= 07/07/03 11:57:56 METDST END swpackage SESSION
After a reboot swpackage conflicts with the same process id. But process 2030 doesn't exist.
Any suggestions?
Clemens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:25 AM
07-07-2003 02:25 AM
Re: swpackage ERROR: Cannot lock ...
Just do a
#/usr/sbin/swagentd -r
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:26 AM
07-07-2003 02:26 AM
Re: swpackage ERROR: Cannot lock ...
check this files
/var/adm/sw/products/swlock
/var/spool/sw/catalog/swlock
and delete them.
Should do the trick.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 03:07 AM
07-07-2003 03:07 AM
Re: swpackage ERROR: Cannot lock ...
/*
SD commands use a common locking mechanism for reading and modifying
both root directories and software depots. This mechanism allows
multiple readers but only one writer on a root or depot.
The SD commands which modify software in an (alternate) root directory
are restricted from simultaneous modification using fcntl(2) locking
on the file
var/adm/sw/products/swlock
relative to the root directory (e.g. /var/adm/sw/products/swlock).
The SD commands which modify software in a depot are restricted from
simultaneous modification using fcntl(2) locking on the file
catalog/swlock
relative to the depot directory (e.g. /var/spool/sw/catalog/swlock).
*/
So the above post should do the trick
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 03:49 AM
07-07-2003 03:49 AM
Re: swpackage ERROR: Cannot lock ...
I've already found a file depot/catalog/swlock.
But I didn't mention. This file was from 1999 and empty. I use swpackage almost every week...
So I was searching for a file containing the pid 2030.
Thanks again.
Clemens