[Lxc-users] LXC Ephemeral MongoDB Permission Error

Florian Motlik flomotlik at gmail.com
Thu Jul 19 11:24:57 UTC 2012


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.

cheers,
Flo




More information about the lxc-users mailing list