Git Product home page Git Product logo

Comments (6)

kimh avatar kimh commented on June 11, 2024

I haven't looked this issue closely, but CircleCI is running docker inside LXC container and the chown of FD in LXC container seems restricted.

from mongo.

bitglue avatar bitglue commented on June 11, 2024

I wonder what the motivation for the change to gosu was, anyway. I'd think CircleCI aside, not all filesystems support chown (or any concept of ownership at all), and there's not even a guarantee that a file descriptor is a regular file anyway: it may be a socket, or a pipe, etc. It looks like gosu might handle the pipe and socket cases by ignoring EBADF, but the comment suggests the reasoning is something else.

Besides, changing my file permissions is not a behavior I'd expect in a tool for changing users, nor does it appear to be documented anywhere. I wouldn't be surprised if there are a few security problems introduced by this change.

from mongo.

dominikmueller avatar dominikmueller commented on June 11, 2024

Hi, i think i'm having a similar problem:

i try to run a rocketchat server with docker with these two commands:

docker run --name db -d mongo mongod --smallfiles
docker run --name rocketchat -p 80:3000 --env ROOT_URL=http://localhost --link db:mongo -d rocket.chat

the creation of the mongodb server fails with following log:

error: failed switching to "mongodb": fchown fds permission denied

I'm running CentOS 7 with Docker version 1.7.1, build 446ad9b/1.7.1

Can someone help me getting it up and running?

from mongo.

bitglue avatar bitglue commented on June 11, 2024

@dominikmueller for now you can work around the issue by using the previous version of the mongo image:

docker run --name db -d mongo:3.0.5 mongod --smallfiles

from mongo.

dominikmueller avatar dominikmueller commented on June 11, 2024

Awesome! :) Many Thanks @bitglue - worked with 3.0.5 👍

from mongo.

bitglue avatar bitglue commented on June 11, 2024

Looks like Docker Hub has been updated and our builds are working now with mongo:3.0. Thanks for the prompt fix!

https://circleci.com/gh/bitglue/mongo-gosu-bug/3

from mongo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.