[SERVER-22508] Missing dependencies in 2.6 RPM Packages for CentOS 7 Created: 08/Feb/16 Updated: 09/Jun/16 Resolved: 12/Feb/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin, Packaging |
| Affects Version/s: | 2.6.11 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Ralph Bolton | Assignee: | Brian Samek |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Centos |
||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | Linux | ||||||||
| Steps To Reproduce: | Build a minimal 64 bit Centos 7 system, add in the Mongo Yum Repo and run: yum install mongodb-org mongodb-org-server To see the errors I've seen, I edited /etc/init.d/mongod and changed: daemon --user "$MONGO_USER" --check $mongod "$NUMACTL $mongod $OPTIONS > /dev/null 2>&1" ...to... daemon --user "$MONGO_USER" --check $mongod "$NUMACTL $mongod $OPTIONS" ...then ran: /etc/init.d/mongod start |
||||||||
| Participants: | |||||||||
| Description |
|
I just installed MongoDB onto a minimal Centos 7 64 bit system. Whilst the RPMs installed just fine, some dependencies were missing. These seem enough to get it to install and run, although there may be more:
(Right now, the mongodb-org* packages are at version 2.6.11-1) |
| Comments |
| Comment by Ralph Bolton [ 12/Feb/16 ] | ||||||||||||||||||||
|
Switching everything to 64 bit works just fine Thanks for your help. | ||||||||||||||||||||
| Comment by Brian Samek [ 11/Feb/16 ] | ||||||||||||||||||||
|
It looks like my problem was just slow hardware in my repro. mongod wasn't actually hanging. It looks like you're installing the 32-bit version of mongo. Can you try with 64-bit instead, and run again? There might be a bug in calculating dependencies for 32-bit mongo 2.6 on 64-bit systems. To do this, remove the 32-bit version, then put this in your .repo file and install.
| ||||||||||||||||||||
| Comment by Ralph Bolton [ 11/Feb/16 ] | ||||||||||||||||||||
|
That's interesting... I can't see how a reboot would fix missing libraries - what happened when you started mongo before your reboot? Did a process actually start, or did it just fail immediately? In my case, starting mongod did almost nothing I could see (apart from fail). There was nothing in the log, and very little in "journalctl" output - most importantly, no process was started. Only some additional debug (by hacking the start script) revealed the errors I posted above. FYI, on my system, I now have these .i686 packages (not all related to mongo, but nearly all of them are): mongodb-org-mongos-2.6.11-1.i686 | ||||||||||||||||||||
| Comment by Brian Samek [ 11/Feb/16 ] | ||||||||||||||||||||
|
Did the successful start come after a reboot? I am experiencing the following on RHEL 7. I did not install glibc or libstdc++ to fix the problem. I just rebooted. This problem occurs on 2.6 but not on 3.2.
| ||||||||||||||||||||
| Comment by Ralph Bolton [ 08/Feb/16 ] | ||||||||||||||||||||
|
Akk - sorry, I don't have the exact errors any longer. They were along the lines of: "/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory" ...and... | ||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 08/Feb/16 ] | ||||||||||||||||||||
|
coofercat, what errors did you see? If you still have a copy, could you please paste them in this ticket? Thanks, |