Michael Moen
2008-Oct-11 19:51 UTC
[Cruisecontrolrb-users] Odd behavior from builder running in CentOS 5.2/Passenger
I know this isn''t really the right pace for this, but I am in the process of building a new CC.rb box and builds that run fine on the old one are failing on the new one. Old Box: CentOS release 4.4 (Final) Apache/2.0.52 passenger-2.0.2 New Box: CentOS release 5.2 (Final) Apache/2.2.3 passenger-2.0.3 Here''s the error: /home/deploy/.cruise/projects/bort/work root$ ruby -e require ''rubygems'' rescue nil <snip> sh: ruby: command not found Does anybody know where I would need to look to get the environment loaded when the builder is started? running rake cruise works fine and running ./cruise start all works fine. Thanks in advance, Michael
Chad Woolley
2008-Oct-12 00:03 UTC
[Cruisecontrolrb-users] Odd behavior from builder running in CentOS 5.2/Passenger
On Sat, Oct 11, 2008 at 12:51 PM, Michael Moen <mi-ccrb at underpantsgnome.com>wrote:> Does anybody know where I would need to look to get the environment loaded > when the builder is started? > > running rake cruise works fine and running ./cruise start all works fine. >Seems like ruby isn''t on the path, but it''s strange that cruise would start in that case but your project would fail. Is this only when it is run on system startup, or when you start it manually from the local user as well? If this is only on startup, it may be your init script not setting up env right. I did some work on the daemon script in the ccrb source - it is debian-specific, but it should be easy to convert to redhat/centos http://github.com/thoughtworks/cruisecontrol.rb/tree/master/daemon If this is happening when you run ./cruise manually from the local user, that is a stranger problem. If all else fails, debug by echoing out your system path and environment in various places, that will probably get you closer to the cause. If you find out what is up with the path when your project runs, you can just symlink ruby to wherever it needs to be in order to be found. -- Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20081011/8a680bcb/attachment.html>