[SERVER-12480] Debian Wheeze Package is Broken Created: 25/Jan/14  Updated: 10/Dec/14  Resolved: 27/Jan/14

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.4.9
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Pawel F Assignee: Kyle Erf
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 7.3 Wheze


Issue Links:
Duplicate
duplicates SERVER-12464 Mongod fails to start as unprivileged... Closed
Operating System: Linux
Steps To Reproduce:

Under Debian 7.3 (Wheeze):

1. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
2. echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
3. sudo apt-get update
4 .apt-get install mongodb-10gen

Participants:

 Description   

I'm unable to finish installation of mongoDb under debian 7 (Wheeze).
It crashes at the end of the process and database does not start at all:

  1. apt-get install mongodb-10gen
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    mongodb-10gen
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 88.0 MB of archives.
    After this operation, 225 MB of additional disk space will be used.
    Get:1 http://downloads-distro.mongodb.org/repo/debian-sysvinit/ dist/10gen mongodb-10gen amd64 2.4.9 [88.0 MB]
    Fetched 88.0 MB in 12s (6,849 kB/s)
    Selecting previously unselected package mongodb-10gen.
    (Reading database ... 33558 files and directories currently installed.)
    Unpacking mongodb-10gen (from .../mongodb-10gen_2.4.9_amd64.deb) ...
    Processing triggers for man-db ...
    Setting up mongodb-10gen (2.4.9) ...
    Adding system user `mongodb' (UID 104) ...
    Adding new user `mongodb' (UID 104) with group `nogroup' ...
    Not creating home directory `/home/mongodb'.
    Adding group `mongodb' (GID 107) ...
    Done.
    Adding user `mongodb' to group `mongodb' ...
    Adding user mongodb to group mongodb
    Done.
    [FAIL] Starting database: mongodb failed!
    invoke-rc.d: initscript mongodb, action "start" failed.
    dpkg: error processing mongodb-10gen (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    mongodb-10gen
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Trying to start anyway:

  1. /etc/init.d/mongodb start
    [FAIL] Starting database: mongodb failed!


 Comments   
Comment by Daniel Pasette (Inactive) [ 27/Jan/14 ]

duplicate: SERVER-12464

Comment by Daniel Pasette (Inactive) [ 26/Jan/14 ]

This was partly addressed by SERVER-10623, but looks like there's another patch to fix it fully in 2.5 branch as mentioned in the last comment on that ticket.

Comment by Pawel F [ 25/Jan/14 ]

Ok this ticket can be closed. It seems that this problem is releated to OVH custom kernel:

Sat Jan 25 13:06:05 [initandlisten] MongoDB starting : pid=29721 port=27017 dbpath=/var/lib/mongodb 64-bit host=droid.eu.org
Sat Jan 25 13:06:05 [initandlisten] exception in initAndListen std::exception: boost::filesystem::exists: Permission denied: "/sys/devices/system/node/node1", terminating
Sat Jan 25 13:06:05 dbexit:
Sat Jan 25 13:06:05 [initandlisten] shutdown: going to close listening sockets...
Sat Jan 25 13:06:05 [initandlisten] shutdown: going to flush diaglog...
Sat Jan 25 13:06:05 [initandlisten] shutdown: going to close sockets...
Sat Jan 25 13:06:05 [initandlisten] shutdown: waiting for fs preallocator...
Sat Jan 25 13:06:05 [initandlisten] shutdown: lock for final commit...
Sat Jan 25 13:06:05 [initandlisten] shutdown: final commit...
Sat Jan 25 13:06:05 [initandlisten] shutdown: closing all files...
Sat Jan 25 13:06:05 [initandlisten] closeAllFiles() finished
Sat Jan 25 13:06:05 dbexit: really exiting now

Also described here: http://stackoverflow.com/questions/18416671/starting-service-mongodb-fail-on-permission-denied-sys-devices-system-node-no

Generated at Thu Feb 08 03:28:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.