Details
-
Improvement
-
Resolution: Won't Fix
-
Major - P3
-
None
-
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
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
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:
- Save basename.
[ -z "$gotbase" ] && base=${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é