[DOCS-3369] Comment on: "manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux.txt" Created: 08/May/14  Updated: 11/Jan/17  Resolved: 15/Oct/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux (2.6.18-308.8.2.el5.028stab101.3) CentOS 4 , php 5.2.17

Location: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Referrer: http://www.google.nl/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDMQFjAA&url=http%3A%2F%2Fdocs.mongodb.org%2Fmanual%2Ftutorial%2Finstall-mongodb-on-red-hat-centos-or-fedora-linux&ei=ZF9pU9CWG4fcOv3IgPAI&usg=AFQjCNGt3iyoCccnAVNPHnO-XySzEMq-mQ&sig2=uvEDd5-ueChcMq8vZzvs9A&bvm=bv.66111022,d.ZWU
Screen Resolution: 1920 x 1080
repo: docs
source: tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux


Participants:
Days since reply: 9 years, 18 weeks ago

 Description   

Dear people at mongo db,

I have a problem starting mongod after 32 bit installation on Linux CentOS 4 ${base} appears to be null

Installed mongodb 2.6.0 according to manual:

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/

Using this Repository entry:

[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/
gpgcheck=0
enabled=1

I did not use yum install mongodb-org, because it seems to contain a mangled incorrect collection of release and release candidate versions and installation was aborted. The same when I tried to install individual 2.6.1. versions.
So I installed 2.6.0 versions with succes by typing:

yum install mongodb-org-2.6.0 mongodb-org-server-2.6.0 mongodb-org-shell-2.6.0 mongodb-org-mongos-2.6.0 mongodb-org-tools-2.6.0

After install, which shows no errors, the following error occurs when I try to start mongod (using root privileges)

[root@ns1 ~]# service mongod start
Starting mongod: /etc/rc.d/init.d/functions: line 127: [: /var/run/null: binary operator expected
-bash: line 1: 20211 Floating point exception/usr/bin/mongod -f /etc/mongod.conf >/dev/null 2>&1

I searched to line 127 in functions to find out what could be the cause of this value 'null' that should be 'mongod' (See below line marked with ////// !!! -> here ${base} appears to be null (line 127))

line 123 - /etc/rc.d/init.d/functions:

  1. Save basename.
    [ -z "$gotbase" ] && base=${1##*/}
  1. See if it's already running. Look only at the pid file.
    if [ -f /var/run/${base}.pid ]; then ////// !!! -> here ${base} appears to be null (line 127)
    local line p
    read line < /var/run/${base}.pid
    for p in $line ; do
    [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
    done
    fi

in boot.log:
May 7 09:29:47 ns1 runuser: -bash: line 1: 20211 Floating point exception/usr/bin/mongod -f /etc/mongod.conf >/dev/null 2>&1
May 7 09:29:47 ns1 mongod: null 2>&1 startup failed

Questions:

1) where is ${base} defined and why appears the variable to be null instead of 'mongod'
2) can you PLEASE add information to your website or provide me detailed information about all the paths and directories used when following the default installation procedures, which settings should be applied to the folders and directories (chmod/chown)
3) ad 2) how can I check quickly if installation went according to plan, are my drivers and data files present, is my db folder writable and accessible etc.

Regards,

Marcel Boeré



 Comments   
Comment by Sam Kleinman (Inactive) [ 15/Oct/14 ]

Upon additional review:

  • I don't believe that this is an at the core, an ssue with the documentation, if this is a critical issue, consider opening a core server product.
  • RHEL/CENTOS 4 is EOL: this process does work on RHEL 5/6, if you want to give that a try.
Generated at Thu Feb 08 07:45:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.