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 1183180 - makedbm fails to getnerate target file with gmake[1]: *** [passwd.byname] Error 1
Summary: makedbm fails to getnerate target file with gmake[1]: *** [passwd.byname] Err...
Keywords:
Status: CLOSED DUPLICATE of bug 1180392
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ypserv
Version: 6.6
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Honza Horak
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-16 23:03 UTC by Scott Dowdle
Modified: 2015-01-19 09:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-19 09:28:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Scott Dowdle 2015-01-16 23:03:35 UTC
Description of problem:

I have been running ypserv for several years without incident on a single server.  A cron job is set to update the data every 10 minutes.  I just noticed that the update process broke for me on Dec. 30th or at least that is the date on /var/yp/{domain}/passwd.byname file.

When I manually cd into /var/yp and run make I get the following error:

# make
gmake[1]: Entering directory `/var/yp/{domain}'
Updating passwd.byname...
makedbm: dbm_store: Success
gmake[1]: *** [passwd.byname] Error 1
gmake[1]: Leaving directory `/var/yp/{domain}'
make: *** [target] Error 2

I replaced my real domain name with {domain} above.

I moved my /var/yp/{domain} directory to a new name and created the directory again... and tried to initialize my domain from scratch by going into /var/yp and running:

/usr/lib64/yp/ypinit -m

I made sure the ypdomainname returned the correct value prior to running that... and the command just gives the same error... it attempts to generate the target files and fails immediately with two ~ files left behind in the attempt.

My source files are fine that is to say that the yp configuration has not changed and nothing else on the server has changed other than just keeping up with updates.  Things like /etc/passwd, /etc/shadow, and /etc/group are in good working condition and users who ssh in can authenticate file using local auth.  I did a vipw, vipw -s, vigr, etc... and the source files are valid.  The system is still functioning because it keeps the old data files behind since it can't generate replacement files... leaving ~ files behind.

I tried stracing the make process and nothing jumped out at me.  SELinux (due to a wide range of other factors) has been set to permissive for some time now... and nothing in the logs seems related / informative.

I'm in a big bind because of the service failure and plan on setting up OpenLDAP on the same server to see if that can get me by until I can figure it out.

Version-Release number of selected component (if applicable):
ypserv-2.19-26.el6_4.2.x86_64

How reproducible:
Run "cd /var/yp ; make" or "cd /var/yp ; /usr/lib64/yp/ypinit -m" and it fails.

Steps to Reproduce:
1. cd /var/yp
2. make
3.

Actual results:
Errors with error mentioned at the top of this report

Expected results:
It should rebuild all of the target files in /var/yp/{domain}

Additional info:

Comment 2 Scott Dowdle 2015-01-18 04:33:36 UTC
I discovered that this problem was caused by the update to gdbm-1.8.0-37.el6.x86_64.rpm

Reverting back to gdbm-1.8.0-36.el6.x86_64.rpm completely fixes the problem.

Comment 3 Petr Pisar 2015-01-19 09:28:10 UTC

*** This bug has been marked as a duplicate of bug 1180392 ***


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