[SERVER-8774] mongodb is uninstallable on Debian Squeeze from the official repos Created: 27/Feb/13  Updated: 12/Jul/13  Resolved: 28/Feb/13

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.2.0, 2.2.1, 2.2.2, 2.2.3
Fix Version/s: None

Type: Bug Priority: Blocker - P1
Reporter: Mario Splivalo Assignee: Ernie Hershey
Resolution: Duplicate Votes: 0
Labels: initscript
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian Squeeze


Attachments: File init.d.patch    
Issue Links:
Duplicate
duplicates SERVER-6008 numactl in debian init script seems t... Closed
Related
related to SERVER-7254 Mongo init.d scripts not working on u... Closed
is related to SERVER-6008 numactl in debian init script seems t... Closed
Operating System: Linux
Steps To Reproduce:
  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 0 B/51.9 MB of archives.
    After this operation, 127 MB of additional disk space will be used.
    Info: starting unrap-all...
    Selecting previously deselected package mongodb-10gen.
    (Reading database ... 32675 files and directories currently installed.)
    Unpacking mongodb-10gen (from .../mongodb-10gen_2.2.3_amd64.deb) ...
    Processing triggers for man-db ...
    Setting up mongodb-10gen (2.2.3) ...
    Starting database: mongodbstart-stop-daemon: unrecognized option '--interleave=all'
    Try 'start-stop-daemon --help' for more information.
    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
    configured to not write apport reports
    Errors were encountered while processing:
    mongodb-10gen

E: Sub-process /usr/bin/dpkg returned an error code (1)

Participants:

 Description   

Due to bug in /etc/init.d/mongodb script mongodb installation process (as explained in the official mongodb documentation) fails with following error:

Setting up mongodb-10gen (2.2.3) ...
Starting database: mongodbstart-stop-daemon: unrecognized option '--interleave=all'
Try 'start-stop-daemon --help' for more information.
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
configured to not write apport reports
Errors were encountered while processing:
mongodb-10gen

The patch provided fixes this while still chekcing for numactl availability.


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