Code Monkey home page Code Monkey logo

Comments (8)

FooBarWidget avatar FooBarWidget commented on May 25, 2024

From honglilai on April 26, 2008 04:35:03

I can't seem to reproduce this problem on Ubuntu Linux 7.10.

Could you post the exact output of the following commands:

  • 'id' (from the Rails application)
  • 'ls -l environment.rb'
  • 'groups <username of environment.rb's owner here>'

from passenger.

FooBarWidget avatar FooBarWidget commented on May 25, 2024

From hilligsoe on April 26, 2008 07:24:37

Certainly:

id as seen in the rails app:
uid=1000(hilli) gid=408(hilli)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)

$ ls -l config/environment.rb :
-rw-r--r-- 1 hilli hilli 2847 2008-04-25 15:04 config/environment.rb

$ groups hilli :
wheel portage cron shd hilli

Bonus info:
$ groups root
root bin daemon sys adm disk wheel floppy dialout tape video

from passenger.

FooBarWidget avatar FooBarWidget commented on May 25, 2024

From honglilai on April 26, 2008 10:13:40

This problem should be fixed in the development version (git repository). Could you
verify?

Status: Started
Labels: NeedsConfirmation Milestone-1.0.2

from passenger.

FooBarWidget avatar FooBarWidget commented on May 25, 2024

From hilligsoe on April 26, 2008 13:12:00

Yes I can - Super!

The Rails app now says:
uid=1000(hilli) gid=408(hilli) groups=10(wheel),16(cron),250(portage),408(hilli),411(shd)
as expected.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 25, 2024

From honglilai on April 26, 2008 14:40:28

Status: Fixed
Labels: -NeedsConfirmation

from passenger.

FooBarWidget avatar FooBarWidget commented on May 25, 2024

From pfagiani on June 04, 2008 10:41:26

Hi Hilligsoe,

Would you mind sharing if you got cruisecontrol.rb running thru mod_rails
successfully and if yes what steps that took to you? I've not had success yet.

Thanks and sorry by posting this kinda off-topic here. My email is pfagiani at gmail

from passenger.

FooBarWidget avatar FooBarWidget commented on May 25, 2024

From hilligsoe on June 05, 2008 00:34:02

Well - I don't think it is entirely off topic.

I got it up and running. The thing is: Passenger brings the environment from when
Apache starts (At least thats my conclusion without looking at the code) so the ENV
variable HOME is set to /root. CC.rb (And I ran into the same problem using redmine
too) uses svn. svn seems to be using $HOME when it looks for ~/.subversion for its
configuration files.

So the question is: Should Passenger set $HOME to that of the user it switches (if
defined) to or just leave it?

pfagiani: Your solution right here and now is to [ab]use the fact the ENV is a global
array and stick something like

ENV['HOME'] = "/home/user_running_cc.rb"

in config/environment.rb before boot is loaded.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 25, 2024

From pfagiani on June 05, 2008 08:30:51

I guess the error I get currently is kinda different:

Logfile created on Thu Jun 05 08:22:41 -0700 2008 by logger.rb/1.5.2.9

[05/Jun/2008:08:22:41 :: 12356] starting
[05/Jun/2008:08:22:41 :: 12356] Dispatcher failed to catch: You have a nil object
when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split (NoMethodError)
/usr/lib/ruby/1.8/cgi.rb:897:in `parse'

../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb:45:in
initialize_query' /usr/lib/ruby/1.8/cgi.rb:2274:ininitialize'
/usr/lib/ruby/1.8/fcgi.rb:594:in new' /usr/lib/ruby/1.8/fcgi.rb:594:ineach_cgi'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:141:in process_each_request!' ../config/../vendor/rails/railties/lib/fcgi_handler.rb:55:inprocess!'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:25:in process!' ./dispatch.fcgi:24 almost killed by this error [05/Jun/2008:08:22:41 :: 12356] Dispatcher failed to catch: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.split (NoMethodError) /usr/lib/ruby/1.8/cgi.rb:897:inparse'

../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb:45:in
initialize_query' /usr/lib/ruby/1.8/cgi.rb:2274:ininitialize'
/usr/lib/ruby/1.8/fcgi.rb:594:in new' /usr/lib/ruby/1.8/fcgi.rb:594:ineach_cgi'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:141:in process_each_request!' ../config/../vendor/rails/railties/lib/fcgi_handler.rb:55:inprocess!'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:25:in `process!'
./dispatch.fcgi:24
killed by this error

Even after I added ENV HOME the error remains the same so I'm afraid it's a different
issue... Do you have any clue of what may be happening here?

Thanks again!

from passenger.

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.