Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3369

Comment on: "manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux.txt"

    XMLWordPrintableJSON

Details

    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é

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 18 weeks ago