oliver barnes
2005-Sep-15 19:29 UTC
(newbie) rails app not working after subversion integration?
hello, if anybody could please help, I''m very late with this project and have been wasting a lot of time (days and days) getting past the learning curve to get the infrastructure up (fcgi, rmagick... and now svn integration). i come from dirty-php-scripting and am a newbie at all of this :P I have a rails app that I''ve been developing locally on os x. originally I was uploading the app directly to my textdrive account when updating, and then restarting apache. this was working fine, I could see the site running on textdrive each time, all funcionality was there, production.log was being written to. I''ve seen strong recommendations from the rails list and textdrive forum to use subversion, and I decided to make the move to work with it. after a bit of a learning curve, I finally created a svn repo on textdrive, imported the app into it, and have been checking it out to my local machine, commiting back, and then checking out the current copy to my /web directory on textdrive. I followed this howto http:// wiki.rubyonrails.com/rails/show/HowtoUseRailsWithSubversion on the rails wiki. BUT, now I''m getting an application error (both locally and on txd), and the logs aren''t being written to. (the howto involves making svn ignore the log files by deleting them, committing the working copy, then setting propset to ignore, updating, then commiting again.). so I checked the apache logs on my txt acct, and nothing useful appeared, just simple requests and browser info. on my local apache logs, I get the following: /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:3:in `require'': No such file to load -- forwardable (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:3 from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:381:in `require'' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:381 from /Users/souza/Sites/star/public/../config/environment.rb: 48:in `require'' from /Users/souza/Sites/star/public/../config/environment.rb:48 from /Users/souza/Sites/star/public/dispatch.fcgi:21:in `require'' from /Users/souza/Sites/star/public/dispatch.fcgi:21 I''m lost as to what''s going on... I''m assuming something changed when I started using svn, but don''t know what. I changed permissions on the log to 755 and even 777 to try seeing the logs... also did that for public/... what''s going on? thanks oliver
Trevor Squires
2005-Sep-15 21:35 UTC
Re: (newbie) rails app not working after subversion integration?
Hi Oliver, I can''t give you a quick answer on this one but here''s how I''d approach the situation: First of all, I''d make sure the contents of my ./script/* directory was the same as in svn railties/bin. If that wasn''t the issue then I''d take a closer look at the stacktrace in the apache log: When you see ''require'': no such file to load ''blah'' that (AFAIK) means there is a "require" command on a line somewhere that refers to a file that ruby can''t locate. Step down the stacktrace lines (you''re "walking up the call stack") and look for the first file you can see that is one of yours. In this case it appears to be environment.rb, line 48. I consider that one of "yours" because its the first one you''re likely to have edited. This should be your starting point because for now, you have to assume that this is *your* fault so you start there. What''s at that line? As for other clues about what might be happening (bearing in mind that I too am a bit new to this) ''forwardable'' rings a bell because it''s a module in the standard ruby library. See http://www.ruby-doc.org/stdlib/libdoc/forwardable/rdoc/ Sorry I can''t say "twiddle the widget and you''ll be fine" - but this should give you something to start on. Regards, Trevor On 15-Sep-05, at 12:29 PM, oliver barnes wrote:> > /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:3:in > `require'': No such file to load -- forwardable (LoadError) > from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:3 > from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:381:in `require'' > from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:381 > from /Users/souza/Sites/star/public/../config/environment.rb:48:in > `require'' > from /Users/souza/Sites/star/public/../config/environment.rb:48 > from /Users/souza/Sites/star/public/dispatch.fcgi:21:in `require'' > from /Users/souza/Sites/star/public/dispatch.fcgi:21 > > I''m lost as to what''s going on... I''m assuming something changed when > I started using svn, but don''t know what. I changed permissions on the > log to 755 and even 777 to try seeing the logs... also did that for > public/... what''s going on? > > thanks > oliver > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Joe Van Dyk
2005-Sep-15 22:21 UTC
Re: (newbie) rails app not working after subversion integration?
On 9/15/05, oliver barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hello, > > if anybody could please help, I''m very late with this project and > have been wasting a lot of time (days and days) getting past the > learning curve to get the infrastructure up (fcgi, rmagick... and now > svn integration). i come from dirty-php-scripting and am a newbie at > all of this :P > > I have a rails app that I''ve been developing locally on os x. > originally I was uploading the app directly to my textdrive account > when updating, and then restarting apache. this was working fine, I > could see the site running on textdrive each time, all funcionality > was there, production.log was being written to. > > I''ve seen strong recommendations from the rails list and textdrive > forum to use subversion, and I decided to make the move to work with > it. after a bit of a learning curve, I finally created a svn repo on > textdrive, imported the app into it, and have been checking it out to > my local machine, commiting back, and then checking out the current > copy to my /web directory on textdrive. I followed this howto http:// > wiki.rubyonrails.com/rails/show/HowtoUseRailsWithSubversion on the > rails wiki. > > BUT, now I''m getting an application error (both locally and on txd), > and the logs aren''t being written to. (the howto involves making svn > ignore the log files by deleting them, committing the working copy, > then setting propset to ignore, updating, then commiting again.). so > I checked the apache logs on my txt acct, and nothing useful > appeared, just simple requests and browser info. on my local apache > logs, I get the following: > > /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:3:in > `require'': No such file to load -- forwardable (LoadError)Well, /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb, on line 3, is not able to load forwardable.rb. Do you have that file installed?
oliver barnes
2005-Sep-15 22:55 UTC
Re: (newbie) rails app not working after subversion integration?
been looking for it but haven''t found it yet. where should it be? from searching the web it seems like it''s part of ruby? during installation of rmagick and imagemagick, I ended up reinstalling ruby... and I got this error a couple of times, but after finishing installing everything else (readline, gems, rails, rmagick), it went away and the app was running ok. so would this be a problem that would keep rails from even loading, and so not write to the logs? On Sep 15, 2005, at 7:21 PM, Joe Van Dyk wrote:> >> >> /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:3:in >> `require'': No such file to load -- forwardable (LoadError) >> > > Well, /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb, on line 3, > is not able to load forwardable.rb. Do you have that file installed? > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
oliver barnes
2005-Sep-15 23:24 UTC
Re: (newbie) rails app not working after subversion integration?
Hi Trevor, thanks, what you said about the stack trace made sense and i''m checking environment.rb... line 48 requires ruby gems: require ''rubygems'' unless File.directory?("#{RAILS_ROOT}/vendor/ rails") I don''t have a /vendor/rails directory, and the only thing I changed in environment.rb was this line: RAILS_ENV = ENV[''RAILS_ENV''] || ''development'' changed it ''development'' to ''production'' (so that I could commit the app set to production mode) and then back again to ''development''. I then tried to make svn ignore this file so that on future commits I didn''t change the app online to development mode again. could this be affecting the way rubygems loads ''forwardable''? am I just getting this wrong about making svn ignore environment.rb? like I said to Joe, I had a similar problem appear when installing Rmagick (forwardable.rb not loading), but then it went away by itself, not sure how exactly. as for the contents of ./script/, you lost me here... svn railties/bin? On Sep 15, 2005, at 6:35 PM, Trevor Squires wrote:> Hi Oliver, > > I can''t give you a quick answer on this one but here''s how I''d > approach the situation: > > First of all, I''d make sure the contents of my ./script/* directory > was the same as in svn railties/bin. > > If that wasn''t the issue then I''d take a closer look at the > stacktrace in the apache log: > > When you see ''require'': no such file to load ''blah'' that (AFAIK) > means there is a "require" command on a line somewhere that refers > to a file that ruby can''t locate. > > Step down the stacktrace lines (you''re "walking up the call stack") > and look for the first file you can see that is one of yours. In > this case it appears to be environment.rb, line 48. I consider > that one of "yours" because its the first one you''re likely to have > edited. > > This should be your starting point because for now, you have to > assume that this is *your* fault so you start there. > > What''s at that line? > > As for other clues about what might be happening (bearing in mind > that I too am a bit new to this) ''forwardable'' rings a bell because > it''s a module in the standard ruby library. See http://www.ruby- > doc.org/stdlib/libdoc/forwardable/rdoc/ > > Sorry I can''t say "twiddle the widget and you''ll be fine" - but > this should give you something to start on. > > Regards, > Trevor > > On 15-Sep-05, at 12:29 PM, oliver barnes wrote: > >> >> /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:3:in >> `require'': No such file to load -- forwardable (LoadError) >> from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:3 >> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:381:in `require'' >> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:381 >> from /Users/souza/Sites/star/public/../config/environment.rb: >> 48:in `require'' >> from /Users/souza/Sites/star/public/../config/environment.rb:48 >> from /Users/souza/Sites/star/public/dispatch.fcgi:21:in `require'' >> from /Users/souza/Sites/star/public/dispatch.fcgi:21 >> >> I''m lost as to what''s going on... I''m assuming something changed >> when I started using svn, but don''t know what. I changed >> permissions on the log to 755 and even 777 to try seeing the >> logs... also did that for public/... what''s going on? >> >> thanks >> oliver >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
oliver barnes
2005-Sep-15 23:40 UTC
Re: (newbie) rails app not working after subversion integration?
ok, I''ve found it: /usr/local/lib/ruby/1.8/forwardable.rb does this mean rubygems isn''t working right? I''m guessing rubygems itself isn''t being loaded correctly by rails, and so this is happening... is this assumption correct? what could be causing this?>> /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:3:in >> `require'': No such file to load -- forwardable (LoadError) >> > > Well, /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb, on line 3, > is not able to load forwardable.rb. Do you have that file installed? > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Ray Baxter
2005-Sep-15 23:45 UTC
Re: (newbie) rails app not working after subversion integration?
on 9/15/2005 4:40 PM oliver barnes said the following:> ok, I''ve found it: > > /usr/local/lib/ruby/1.8/forwardable.rb > > does this mean rubygems isn''t working right? I''m guessing rubygems > itself isn''t being loaded correctly by rails, and so this is > happening... is this assumption correct? what could be causing this?What it likely means is that you don''t have read permission on that file. What do you get from: ls -l /usr/local/lib/ruby/1.8/forwardable.rb Ray
oliver barnes
2005-Sep-16 18:30 UTC
Re: (newbie) rails app not working after subversion integration?
ok, I set its permissions to 755, but I''m still getting the error :P On Sep 15, 2005, at 8:45 PM, Ray Baxter wrote:> on 9/15/2005 4:40 PM oliver barnes said the following: > > >> ok, I''ve found it: >> >> /usr/local/lib/ruby/1.8/forwardable.rb >> >> does this mean rubygems isn''t working right? I''m guessing >> rubygems itself isn''t being loaded correctly by rails, and so >> this is happening... is this assumption correct? what could be >> causing this? >> > > What it likely means is that you don''t have read permission on that > file. > > What do you get from: > ls -l /usr/local/lib/ruby/1.8/forwardable.rb > > Ray > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
oliver barnes
2005-Sep-16 20:25 UTC
Re: (newbie) rails app not working after subversion integration?
ok, finally resolved it... I put in a fresh environment.rb in, fresh logs and a fresh dispatch.fgi and it works now. not sure why, but... newbie pains, newbie pains thanks guys On Sep 15, 2005, at 6:35 PM, Trevor Squires wrote:> Step down the stacktrace lines (you''re "walking up the call stack") > and look for the first file you can see that is one of yours. In > this case it appears to be environment.rb, line 48. I consider > that one of "yours" because its the first one you''re likely to have > edited.
Kyle Maxwell
2005-Sep-17 02:55 UTC
Re: (newbie) rails app not working after subversion integration?
I had issues with apache, subversion, and static fcgi servers bogging down after an update. I switched to a dynamic fcgi setup, and things have been better since. Kyle Maxwell On 9/16/05, oliver barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> ok, finally resolved it... I put in a fresh environment.rb in, fresh > logs and a fresh dispatch.fgi and it works now. not sure why, but... > > newbie pains, newbie pains > > thanks guys > > > On Sep 15, 2005, at 6:35 PM, Trevor Squires wrote: > > > Step down the stacktrace lines (you''re "walking up the call stack") > > and look for the first file you can see that is one of yours. In > > this case it appears to be environment.rb, line 48. I consider > > that one of "yours" because its the first one you''re likely to have > > edited. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Reasonably Related Threads
- script/server vs mongrel_rails start issue
- Textdrive Rails 1.1 Error - Dependencies::LoadingModule
- Puppet playing badly with Debian etch rubygems
- unable to run script/console on OS X
- mongrel on linux error - custom_require.rb:27:in `gem_original_require'': no such file to load -- (LoadErro