[Lxc-users] LXC Ephemeral MongoDB Permission Error

Serge Hallyn serge.hallyn at canonical.com
Thu Jul 19 12:19:36 UTC 2012


Quoting Florian Motlik (flomotlik at gmail.com):
> Hey guys,
> 
> just tried running mongodb in an ephemeral container and got the
> following error message:
> 
> ------------------------------------------------------------------------------
> Thu Jul 19 11:13:14 [FileAllocator] allocating new datafile
> /var/lib/mongodb/test.ns, filling with zeroes...
> Thu Jul 19 11:13:14 [FileAllocator] FileAllocator: couldn't create
> /var/lib/mongodb/test.ns (/var/lib/mongodb/_tmp/474402115) errno:1
> Operation not permitted
> Thu Jul 19 11:13:14 [FileAllocator] error failed to allocate new file:
> /var/lib/mongodb/test.ns size: 16777216 errno:1 Operation not
> permitted
> Thu Jul 19 11:13:14 [FileAllocator]     will try again in 10 seconds
> ------------------------------------------------------------------------------
> 
> I tried setting the permissions to allow anyone to write anything
> there, but that didn't help at all. When not running in ephemeral it
> works fine. Any idea what that causes the error?
> 
> Basically I have a base image that I start regularly in ephemeral,
> pull in some code, run it and then throw it away.

You could try aufs in place of overlayfs...  it has it's own problems,
but overlayfs problems don't seem to be getting solved.  I'm tempted to
go look at its code...

modprobe aufs
lxc-start-ephemeral -U aufs [...]




More information about the lxc-users mailing list