Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14786

Mongodb installation on debian

    XMLWordPrintable

    Details

    • Operating System:
      ALL

      Description

      Hi,

      Installation for mongodb on debian is not smoooth. Also it doesn't work correctly. I followed the below link provided by mongodb, but still it fails

      http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/

      So after downloading the packages, it throws the error

      Get:1 http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist/10gen mongodb-org-shell amd64 2.6.3 [4,451 kB]
      Get:2 http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist/10gen mongodb-org-server amd64 2.6.3 [9,418 kB]
      Get:3 http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist/10gen mongodb-org-mongos amd64 2.6.3 [7,150 kB]
      Get:4 http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist/10gen mongodb-org-tools amd64 2.6.3 [93.4 MB]
      Get:5 http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist/10gen mongodb-org-tools amd64 2.6.3 [93.4 MB]
      Get:6 http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist/10gen mongodb-org amd64 2.6.3 [3,648 B]
      Fetched 63.5 MB in 5min 19s (199 kB/s)
      Selecting previously unselected package mongodb-org-shell.
      (Reading database ... 129436 files and directories currently installed.)
      Unpacking mongodb-org-shell (from .../mongodb-org-shell_2.6.3_amd64.deb) ...
      Selecting previously unselected package mongodb-org-server.
      Unpacking mongodb-org-server (from .../mongodb-org-server_2.6.3_amd64.deb) ...
      Selecting previously unselected package mongodb-org-mongos.
      Unpacking mongodb-org-mongos (from .../mongodb-org-mongos_2.6.3_amd64.deb) ...
      Selecting previously unselected package mongodb-org-tools.
      Unpacking mongodb-org-tools (from .../mongodb-org-tools_2.6.3_amd64.deb) ...
      Selecting previously unselected package mongodb-org.
      Unpacking mongodb-org (from .../mongodb-org_2.6.3_amd64.deb) ...
      Processing triggers for man-db ...
      Setting up mongodb-org-shell (2.6.3) ...
      Setting up mongodb-org-server (2.6.3) ...
      [FAIL] Starting database: mongod failed!
      invoke-rc.d: initscript mongod, action "start" failed.
      dpkg: error processing mongodb-org-server (--configure):
      subprocess installed post-installation script returned error exit status 1
      Setting up mongodb-org-mongos (2.6.3) ...
      Setting up mongodb-org-tools (2.6.3) ...
      dpkg: dependency problems prevent configuration of mongodb-org:
      mongodb-org depends on mongodb-org-server; however:
      Package mongodb-org-server is not configured yet.

      So in configuration files you need to change the dbpath or different variables and owner of different location to work it out. Also as suggested by mongodb to have a dedicated OS user for mongodb will not work because pid is not configurable till 2.6 release. So you always have to do sudo to start the mongo database. I believe we need to fix this and have smooth installation and run in Debian. Any suggestions please.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              lochanmarwaha@gmail.com Lochan Marwaha
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: