Error in Yum rpms

37 views
Skip to first unread message

Mike

unread,
Jun 1, 2010, 12:09:03 PM6/1/10
to mongod...@googlegroups.com
I'm trying to install mongo-stable from the yum repo given on the website

Total                                                                                                         7.6 MB/s |  15 MB     00:01     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : mongo-stable                                                                                                           1/2 
error: %pre(mongo-stable-server-20100601-mongodb_1.x86_64) scriptlet failed, exit status 2
error:   install: %pre scriptlet failed (2), skipping mongo-stable-server-20100601-mongodb_1

Installed:
  mongo-stable-server.x86_64 0:20100601-mongodb_1                                                                                             

Dependency Installed:
  mongo-stable.x86_64 0:20100601-mongodb_1                                                                                                    

Complete!


There is an error with the rpm for -server.. Is there anyway to give out the src.rpm for this?

Thanks
Mike

Mike

unread,
Jun 1, 2010, 12:55:35 PM6/1/10
to mongod...@googlegroups.com
I was able to fix it saving the cache in yum and rpm -ivh -vv the rpm

It is trying to run 

/usr/sbin/useradd -M -r -U -d /var/lib/mongo -s /bin/false -c mongod mongod

-U flag is invalid in Redhat.

But the spec file isn't written well due to if I add the user outside the rpm.. it still tries to add the user. 


+ /usr/sbin/useradd -M -r -U -d /var/lib/mongo -s /bin/false -c mongod mongod
D:   install: waitpid(31931) rc 31931 status 200 secs 0.009
error: %pre(mongo-stable-server-20100601-mongodb_1.x86_64) scriptlet failed, exit status 2
error:   install: %pre scriptlet failed (2), skipping mongo-stable-server-20100601-mongodb_1

[root@mongo1 packages]#  /usr/sbin/useradd -M -r -U -d /var/lib/mongo -s /bin/false -c mongod mongod
/usr/sbin/useradd: invalid option -- U


Mike

Richard Kreuter

unread,
Jun 1, 2010, 1:12:21 PM6/1/10
to mongod...@googlegroups.com
Thanks for reporting this. (This was fixed in 1.5.x a couple months ago,
but the fix seems not to have been backported to 1.4. Will do that now.)

--
Richard

Reply all
Reply to author
Forward
0 new messages