Jonathan Rochkind wrote:
> I'm having trouble getting my mongrel_cluster to start up as a specified
> user/group.
> 
[...]
> 
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- 
> /home/rochkind/U2/config/environment (LoadError)

Answering my own question, cause I can find this question on google, but 
not an answer:  My apps directory was not properly accessible from the 
account I was trying to run it under. The app directories _parent_ dir 
needed 'x' permissions for the account I was telling mongrel_cluster to 
run as.

As a result, mongrel_cluster couldn't properly 'cd' to the app 
directory. I figured that out by actually manually 'su'ing to the 
account in question, and trying to start with mongrel_rails 
cluster:start without a 'user:/group:' configured in the 
mongrel_cluster.yml. Under that scenario, I got an accurate error 
message warning me of the problem. Under the other scenario where you 
use 'sudo' and put account/group in mongrel_cluster.yml, for some reason 
instead of getting the informative error message you get that weird 
misdirected one that looks like a (weird) gem loading error. But at any 
rate, I have solved my problem.

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to