RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 865601 - yum loops indefinitely when it cannot create pid file
Summary: yum loops indefinitely when it cannot create pid file
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-11 21:18 UTC by David Kutálek
Modified: 2014-01-21 06:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-15 20:49:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Kutálek 2012-10-11 21:18:59 UTC
Description of problem:

cannot ceate yum.pid file (some issue with /var on my system) and keep looping, waiting for itself - see pids below:

# yum upgrade & fg
[1] 8202
yum upgrade
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Could not create lock at /var/run/yum.pid: [Errno 22] Invalid argument: '/var/run/yum.pid' 
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  21 M RSS (320 MB VSZ)
    Started: Thu Oct 11 23:13:21 2012 - 00:01 ago
    State  : Running, pid: 8202
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  21 M RSS (320 MB VSZ)
    Started: Thu Oct 11 23:13:21 2012 - 00:03 ago
    State  : Running, pid: 8202
^C

Same for yum-builddep:

# /usr/bin/yum-builddep -y hsqldb-1.8.0.10-9.el6.src.rpm -v -v -v &  fg
[1] 8094
/usr/bin/yum-builddep -y hsqldb-1.8.0.10-9.el6.src.rpm -v -v -v
Not loading "rhnplugin" plugin, as it is disabled
Not loading "blacklist" plugin, as it is disabled
Loading "product-id" plugin
Loading "refresh-packagekit" plugin
Not loading "whiteout" plugin, as it is disabled
Config time: 0.049
Could not create lock at /var/run/yum.pid: [Errno 22] Invalid argument: '/var/run/yum.pid' 
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum-builddep
    Memory :  21 M RSS (320 MB VSZ)
    Started: Thu Oct 11 23:06:03 2012 - 00:01 ago
    State  : Running, pid: 8094
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum-builddep
    Memory :  21 M RSS (320 MB VSZ)
    Started: Thu Oct 11 23:06:03 2012 - 00:03 ago
    State  : Running, pid: 8094
^C

I have some problem with file creation in /var - some other issue to be investigated, but anyway yum-builddep should behave better in such situation.

Version-Release number of selected component (if applicable):

yum-3.2.29-30.el6.noarch
yum-utils-1.1.30-14.el6.noarch

How reproducible:

Always on my system with (somehow) broken /var file creation

Steps to Reproduce:
1. see above, try to simulate '[Errno 22] Invalid argument' for pid creation
2. may be worth trying also other similar conditions...
3.
  
Actual results:

yum / yum-builddep is looping waiting for itself

Expected results:

yum should work somehow or more probably just end with some sane error because of pid file problems

Additional info:

Comment 2 RHEL Program Management 2012-12-14 08:12:36 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 James Antill 2013-04-15 20:49:32 UTC
 We did a lot of changes in this area, and at this point in RHEL-6 we probably don't want to backport all of them. It should work in RHEL-7, but given this is an edge case and how many other edge cases (and not so edge cases) had to be navigated I can't see this getting fixed before then.


Note You need to log in before you can comment on or make changes to this bug.