Comments (8)
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.
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.
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.
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.
From honglilai on April 26, 2008 14:40:28
Status: Fixed
Labels: -NeedsConfirmation
from passenger.
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.
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.
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:in
initialize'
/usr/lib/ruby/1.8/fcgi.rb:594:in new' /usr/lib/ruby/1.8/fcgi.rb:594:in
each_cgi'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:141:in process_each_request!' ../config/../vendor/rails/railties/lib/fcgi_handler.rb:55:in
process!'
../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: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:in
initialize'
/usr/lib/ruby/1.8/fcgi.rb:594:in new' /usr/lib/ruby/1.8/fcgi.rb:594:in
each_cgi'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:141:in process_each_request!' ../config/../vendor/rails/railties/lib/fcgi_handler.rb:55:in
process!'
../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)
- Passenger resets SIGPROF signal handlers causing profilers to crash application HOT 2
- Rake not found while compiling nginx dynamic module HOT 5
- Can't install with Ruby 2.7 on Alma 8 "package passenger-6.0.18-1.el8.x86_64 requires libruby.so.2.5" HOT 2
- Automation: How to communicate a selection via <space> as required for `assenger-config validate-install`
- Passenger Socket IO - Apache Return Error 101 HOT 1
- Debian 12 (bookworm) support HOT 1
- Ruby Permissions Issue HOT 12
- Unknown directive: "passenger_enabled" in nginx.conf server block HOT 6
- Security update fails and Ubuntu APT ignores the APT link HOT 2
- IOError: stream closed in another thread HOT 2
- Would be great to have a 6.0.19 release! HOT 2
- DeprecationWarning in wsgi-loader.py: imp module is deprecated in favor of importlib HOT 1
- Issues with cookies when using latest Passenger and Rack 3 (w/ Ruby on Rails 7.1) HOT 20
- mod_passenger dependency issues HOT 1
- Feature Request - Log crashes to stderr instead of files HOT 2
- Fails to recognise Nestjs app start HOT 2
- Uninitialized constant Rackup::Handler::Rack (NameError) [Rack 3] HOT 1
- Error loading libssl.so.1.1 when starting Phusion Passenger Standalone HOT 1
- Bad Signing Key for Debian Bullseye HOT 3
- Restarting doesn't remove deleted environment variables in rbenv-vars HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passenger.