I''m using CCRB 1.1 and I''ve confirmed that I can run "rake test RAILS_ENV=test" in my work directory with success, but the build log always shows the following error: /p0/users/dmg2n/cruisecontrolrb-1.1.0/projects/collex/work dmg2n$ ruby -e require ''rubygems'' rescue nil; require ''rake''; load ''/p0/ users/dmg2n/cruisecontrolrb-1.1.0/tasks/cc_build.rake''; ARGV << ''-- nosearch'' << ''cc:build''; Rake.application.run /p0/users/dmg2n/cruisecontrolrb-1.1.0/tasks/cc_build.rake:20: undefined method `namespace'' for main:Object (NoMethodError) from -e:1:in `load'' from -e:1 dir : /p0/users/dmg2n/cruisecontrolrb-1.1.0/projects/collex/work command : ruby -e "require ''rubygems'' rescue nil; require ''rake''; load ''/p0/users/dmg2n/cruisecontrolrb-1.1.0/tasks/cc_build.rake''; ARGV << ''--nosearch'' << ''cc:build''; Rake.application.run" executed command : echo /p0/users/dmg2n/cruisecontrolrb-1.1.0/ projects/collex/work dmg2n$ ruby -e "require ''rubygems'' rescue nil; require ''rake''; load ''/p0/users/dmg2n/cruisecontrolrb-1.1.0/tasks/ cc_build.rake''; ARGV << ''--nosearch'' << ''cc:build''; Rake.application.run" >> /p0/users/dmg2n/cruisecontrolrb-1.1.0/ projects/collex/build-1255.1/build.log && ruby -e "require ''rubygems'' rescue nil; require ''rake''; load ''/p0/users/dmg2n/ cruisecontrolrb-1.1.0/tasks/cc_build.rake''; ARGV << ''--nosearch'' << ''cc:build''; Rake.application.run" >> /p0/users/dmg2n/ cruisecontrolrb-1.1.0/projects/collex/build-1255.1/build.log 2>&1 exitstatus: 1 I''m building this on Solaris with the ruby package from blastwave.org, which has worked well for me thus far. I have the latest gem version. Is anyone familiar with this error? Thanks. Duane -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4210 bytes Desc: not available Url : http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070417/4b2cfea0/attachment.bin
Gedanken
2007-Apr-18 12:17 UTC
[Cruisecontrolrb-users] [off topic?] Not sure where my installation is messed up
I don''t know where the error is, but I apologize if this is off topic. Im just at my wits end and too new to RoR and CruiseControl to get much further. I have an installation with cruisecontrol.rb and a project Ill call WebAbb. Cc.rb seemed to be workign fine, and I was using a build_my_app script in my config to do extra cool stuff, like use Capistrano to deploy it from /usr/local/cruisecontrol/projects/WebApp to /var/www/WebApp, and copy over a database.yml, etc. Everything was working great. Then, I created a second project in cc.rb, which was the DEMO svn tag of the same project. It deploys to /var/www/WebApp-demo/ Cruise control seemed to handle it great... and I fire up a second web server with a slightly different lighttpd.conf file to serve it up. I made it so port 80 serves the demo version, and 8080 serves up the latest HEAD of the project so we have sort of a test and staging situation. The problem is this - the web server on 8080 is serving up the wrong pages. There are radical differences between the DEMO and HEAD versions, so it is immediately obvious visually. It is not using the code in WebApp. It is not using the code in WebAppDemo. I have NO IDEA where it is getting the code it is displaying. It feels like something somewhere has old versions cached, fastcgi I assume. i have tried killing and restarting everything under the sun. Suspiciously, I dont see a fastcgi process for the HEAD (the one thats messed up), just demo root at envy:/var/www/WebApp/current/log# ps -ef | grep dispatch bob 18089 27406 6 Apr13 ? 07:19:53 ruby /usr/local/cruisecontrolrb-1.0.0/public/dispatch.fcgi bob 8858 28176 0 07:55 ? 00:00:02 /usr/local/bin/ruby /var/www/WebApp-demo/current/public/dispatch.fcgi Where is my WebApp dispatch.fcgi? Why is this workign at all without it? Where is it gettign these radically out of date (but clearly from HEAD not DEMO) pages to serve?? Ive checked every log I can think of and restarted everything, even installing these projects from scratch after blowing away the directories. Help?? -- gedanken
All, I solved this problem. Here is how... The rake package from blastwave.org was version 0.6. Even though "gem list" showed 0.7.2, so I removed the blastwave package and then things worked correctly. Additionally I had to enter the following environment line into my cruise_config.rb: ENV[''RAILS_ENV''] = ''test'' I hope this is helpful for anyone else trying to get things going on Solaris. Duane On Apr 17, 2007, at 4:28 PM, Duane Gran wrote:> I''m using CCRB 1.1 and I''ve confirmed that I can run "rake test > RAILS_ENV=test" in my work directory with success, but the build > log always shows the following error: > > /p0/users/dmg2n/cruisecontrolrb-1.1.0/projects/collex/work dmg2n$ > ruby -e require ''rubygems'' rescue nil; require ''rake''; load ''/p0/ > users/dmg2n/cruisecontrolrb-1.1.0/tasks/cc_build.rake''; ARGV << ''-- > nosearch'' << ''cc:build''; Rake.application.run > /p0/users/dmg2n/cruisecontrolrb-1.1.0/tasks/cc_build.rake:20: > undefined method `namespace'' for main:Object (NoMethodError) > from -e:1:in `load'' > from -e:1 > > dir : /p0/users/dmg2n/cruisecontrolrb-1.1.0/projects/collex/work > command : ruby -e "require ''rubygems'' rescue nil; require ''rake''; > load ''/p0/users/dmg2n/cruisecontrolrb-1.1.0/tasks/cc_build.rake''; > ARGV << ''--nosearch'' << ''cc:build''; Rake.application.run" > executed command : echo /p0/users/dmg2n/cruisecontrolrb-1.1.0/ > projects/collex/work dmg2n$ ruby -e "require ''rubygems'' rescue nil; > require ''rake''; load ''/p0/users/dmg2n/cruisecontrolrb-1.1.0/tasks/ > cc_build.rake''; ARGV << ''--nosearch'' << ''cc:build''; > Rake.application.run" >> /p0/users/dmg2n/cruisecontrolrb-1.1.0/ > projects/collex/build-1255.1/build.log && ruby -e "require > ''rubygems'' rescue nil; require ''rake''; load ''/p0/users/dmg2n/ > cruisecontrolrb-1.1.0/tasks/cc_build.rake''; ARGV << ''--nosearch'' << > ''cc:build''; Rake.application.run" >> /p0/users/dmg2n/ > cruisecontrolrb-1.1.0/projects/collex/build-1255.1/build.log 2>&1 > exitstatus: 1 > > I''m building this on Solaris with the ruby package from > blastwave.org, which has worked well for me thus far. I have the > latest gem version. Is anyone familiar with this error? Thanks. > > Duane_______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4210 bytes Desc: not available Url : http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070418/5ff04b8b/attachment-0001.bin
Jeremy Stell-Smith
2007-Apr-19 04:40 UTC
[Cruisecontrolrb-users] [off topic?] Not sure where my installation is messed up
it sounds like this is a bit off topic, but what i would do is 1) verify that the code in /var/www/WebApp-demo/ is the demo code you expect it to be. if it is, then ccrb is working. 2) stop the server at 8080, so only the demo one should be working and look at what should be the demo from a browser 3) delete the source for /var/www/WebApp/ and look at the demo in a browser . . . These things are hard to track down, just keep going and question all your assumptions. Good luck, Jeremy On 4/18/07, Gedanken <gedanken at io.com> wrote:> > > I don''t know where the error is, but I apologize if this is off topic. Im > just at my wits end and too new to RoR and CruiseControl to get much > further. > > I have an installation with cruisecontrol.rb and a project Ill call > WebAbb. Cc.rb seemed to be workign fine, and I was using a build_my_app > script in my config to do extra cool stuff, like use Capistrano to deploy > it from /usr/local/cruisecontrol/projects/WebApp to /var/www/WebApp, and > copy over a database.yml, etc. Everything was working great. > > Then, I created a second project in cc.rb, which was the DEMO svn tag of > the same project. It deploys to /var/www/WebApp-demo/ > > Cruise control seemed to handle it great... and I fire up a second web > server with a slightly different lighttpd.conf file to serve it up. I > made it so port 80 serves the demo version, and 8080 serves up the latest > HEAD of the project so we have sort of a test and staging situation. > > The problem is this - the web server on 8080 is serving up the wrong > pages. There are radical differences between the DEMO and HEAD > versions, so it is immediately obvious visually. It is not using the code > in WebApp. It is not using the code in WebAppDemo. I have NO IDEA where > it is getting the code it is displaying. > > It feels like something somewhere has old versions cached, fastcgi I > assume. i have tried killing and restarting everything under the sun. > Suspiciously, I dont see a fastcgi process for the HEAD (the one thats > messed up), just demo > > root at envy:/var/www/WebApp/current/log# ps -ef | grep dispatch > bob 18089 27406 6 Apr13 ? 07:19:53 ruby > /usr/local/cruisecontrolrb-1.0.0/public/dispatch.fcgi > bob 8858 28176 0 07:55 ? 00:00:02 /usr/local/bin/ruby > /var/www/WebApp-demo/current/public/dispatch.fcgi > > Where is my WebApp dispatch.fcgi? Why is this workign at all without it? > Where is it gettign these radically out of date (but clearly from HEAD not > DEMO) pages to serve?? > > Ive checked every log I can think of and restarted everything, even > installing these projects from scratch after blowing away the directories. > > Help?? > > -- > gedanken > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070418/d54301f5/attachment.html