Coder Social home page Coder Social logo

Comments (6)

seankibler avatar seankibler commented on August 20, 2024

I retract my statement above regarding bundler throwing red flags. I just had a successful build with bundler with the funky permissions.

I still question whether it is necessary to have wide open permissions on the builds folder though.

from bigtuna.

mreinsch avatar mreinsch commented on August 20, 2024

Still seeing this though:

(in /srv/dep/bigtuna/shared/builds/prj/build_9_20110224092312)
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/runtime.rb:136: warning: Insecure world writable dir /srv/dep/bigtuna/releases/20110224091425/builds/prj/bundle/ruby/1.8/bin in PATH, mode 040777
rake aborted!
no such file to load -- sqlite3

bundler then seems to picks up bigtuna's Gemfile for building the project, which of course fails the build.

BTW, I only got that far because I specified --gemfile in the bundler install call...

from bigtuna.

mreinsch avatar mreinsch commented on August 20, 2024

The culprit for this is Ruby's daemons library. Someone thinks that 000 is a sensible umask.
Anyway, there is still something else strange going on, because builds still fail because bundler isn't setting up the environment correctly...

from bigtuna.

antekpiechnik avatar antekpiechnik commented on August 20, 2024

I did make the 'builds' folder start with 0754 permissions in this commit: f34335a, but that didn't change the subdirectories' (projects/builds) permissions. They vary from 0777 to 0755. Any ideas ? :)

from bigtuna.

mreinsch avatar mreinsch commented on August 20, 2024

as I tried to explain, the issue is actually in how the delayed_job daemon is run. It uses the Ruby's daemons library which sets the umask (hard coded) to 000.
I dropped the daemons library for myself (it isn't any good anyway, imho) with a little modification to the delayed_job script, and using daemontools as explained there: http://www.mobalean.com/blog/2010/08/16/delayed_job-and-other-daemons-in-a-production-environment

from bigtuna.

antekpiechnik avatar antekpiechnik commented on August 20, 2024

Ok then, seems like it's more of a job for deamons library guys :) Thanks for the insight!

from bigtuna.

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.