lxc

limit nofile 64000 64000 or similar in an upstart job fails in a user lxc

Bug #1456422 reported by Jay R. Wren
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lxc
Won't Fix
Undecided
Unassigned
upstart
Invalid
Undecided
Unassigned
mongodb (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

You can reproduce this by running an unprivileged lxc and attempting to install mongodb

    $ lxc-create -n crisp-Hadley -t ubuntu-cloud -- -r trusty -S ~/.ssh/id_rsa-canonical.pub
    $ lxc-start -n crisp-Hadley
    $ lxc-attach -n crisp-Hadley
    # apt-get install mongodb
    Setting up mongodb-server (1:2.4.9-1ubuntu2) ...
    start: Job failed to start
    invoke-rc.d: initscript mongodb, action "start" failed.
    dpkg: error processing package mongodb-server (--configure):
      subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     mongodb-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg will fail because the postinst fails because the upstart job fails because the rlimit call fails.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mongodb (Ubuntu):
status: New → Confirmed
Revision history for this message
Stéphane Graber (stgraber) wrote :

Nothing LXC can do about it. An unprivileged container cannot have any more right than the user which spawned it. Your user cannot open that many files therefore root in the container can't either.

Changed in lxc:
status: New → Won't Fix
Joshua Powers (powersj)
Changed in mongodb (Ubuntu):
status: Confirmed → Invalid
Changed in upstart:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.