I just jumped on the Dreamhost bandwagon and uploaded typo to a test subdomain. I''ve chmod''d the public directory, setup the database.yml, but nothing is coming up when I try and access the url. I started webrick to see what that would give me, but I get this error when trying to access 3000 port: ActionController::DoubleRenderError in Articles#<action not set> Can only render or redirect once per action I have a feeling that''s because I have webrick and whatever Dreamhost has setup running at the same time, but perhaps I''m wrong. Any advice? Thanks, PJ
On Jul 18, 2005, at 11:16 AM, PJ Hyett wrote:> ...but I get this error when trying to access 3000 port:Ask them for a port. Only one app from one user can use a given port at a given time.
PJ, You can run this without webrick. I''d leave that out of the equation. * You did chmod to 755, yes? Also, I did config/* and lib/* (the latter with the 0.13.1 release seemed to help) * Also run dos2unix on the contents of the above directories * Did you edit .htaccess to use fcgi? If so, you need to set your account to use fcgi -- see the wiki below If those don''t do the trick, go the public/ and run dispatch.fcgi from the command line. You''ll get more info on what''s happening that way. If you get it asking you for name/value pairs then it launched ok. I have some info on rails at dreamhost (on a typo blog): http://convergentarts.com And DreamHost has info at their wiki: http://wiki.dreamhost.com/index.php/Ruby_on_Rails -Tom On 7/18/05, Deirdre Saoirse Moen <deirdre-mzk6fgDMp2XR7s880joybQ@public.gmane.org> wrote:> > On Jul 18, 2005, at 11:16 AM, PJ Hyett wrote: > > > ...but I get this error when trying to access 3000 port: > > Ask them for a port. Only one app from one user can use a given port > at a given time. > > >-- Tom Wilcoxen http://convergentarts.com http://www.dreamhost.com/r.cgi?twilcoxen _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
PJ Hyett wrote:>I just jumped on the Dreamhost bandwagon and uploaded typo to a test >subdomain. I''ve chmod''d the public directory, setup the database.yml, >but nothing is coming up when I try and access the url. I started >webrick to see what that would give me, but I get this error when >trying to access 3000 port: > >ActionController::DoubleRenderError in Articles#<action not set> > >Can only render or redirect once per action > >I have a feeling that''s because I have webrick and whatever Dreamhost >has setup running at the same time, but perhaps I''m wrong. Any advice? > >Thanks, >PJ >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >Give this a read http://jamis.jamisbuck.org/articles/2005/07/08/rails-tip-of-the-day -Matthew Margolis
All is well, thanks. -PJ On 7/18/05, Tom Wilcoxen <tomwilcoxen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> PJ, > > You can run this without webrick. I''d leave that out of the equation. > > * You did chmod to 755, yes? Also, I did config/* and lib/* (the latter > with the 0.13.1 release seemed to help) > * Also run dos2unix on the contents of the above directories > * Did you edit .htaccess to use fcgi? If so, you need to set your account > to use fcgi -- see the wiki below > > If those don''t do the trick, go the public/ and run dispatch.fcgi from the > command line. You''ll get more info on what''s happening that way. If you get > it asking you for name/value pairs then it launched ok. > > I have some info on rails at dreamhost (on a typo blog): > > http://convergentarts.com > > And DreamHost has info at their wiki: > > http://wiki.dreamhost.com/index.php/Ruby_on_Rails > > -Tom > > > On 7/18/05, Deirdre Saoirse Moen <deirdre-mzk6fgDMp2XR7s880joybQ@public.gmane.org> wrote: > > On Jul 18, 2005, at 11:16 AM, PJ Hyett wrote: > > > > > ...but I get this error when trying to access 3000 port: > > > > Ask them for a port. Only one app from one user can use a given port > > at a given time. > > > > > > > > -- > Tom Wilcoxen > http://convergentarts.com > http://www.dreamhost.com/r.cgi?twilcoxen > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Hey, I''m having troubles with Typo: -------------------- I''m having trouble getting Typo to work. I installed Typo 2.0.6 on my computer at home but when I run it it''s giving me that double render error. Arg. I haven''t messed with any of the source code at all. Are there some default config files you have to alter to make this work? All I did was modify database.yml with my login info and set up the tables in each of the databases. Any advice? ------------------- That''s a comment I tried to post on your blog Tom but Typo crashed there as well. It said there was an Apache error. - Jim On Jul 18, 2005, at 12:22 PM, Tom Wilcoxen wrote:> PJ, > > You can run this without webrick. I''d leave that out of the equation. > > * You did chmod to 755, yes? Also, I did config/* and lib/* (the > latter with the 0.13.1 release seemed to help) > * Also run dos2unix on the contents of the above directories > * Did you edit .htaccess to use fcgi? If so, you need to set your > account to use fcgi -- see the wiki below > > If those don''t do the trick, go the public/ and run dispatch.fcgi > from the command line. You''ll get more info on what''s happening > that way. If you get it asking you for name/value pairs then it > launched ok. > > I have some info on rails at dreamhost (on a typo blog): > > http://convergentarts.com > > And DreamHost has info at their wiki: > > http://wiki.dreamhost.com/index.php/Ruby_on_Rails > > -Tom > > On 7/18/05, Deirdre Saoirse Moen <deirdre-mzk6fgDMp2XR7s880joybQ@public.gmane.org> wrote: > On Jul 18, 2005, at 11:16 AM, PJ Hyett wrote: > > > ...but I get this error when trying to access 3000 port: > > Ask them for a port. Only one app from one user can use a given port > at a given time. > > > > -- > Tom Wilcoxen > http://convergentarts.com > http://www.dreamhost.com/r.cgi?twilcoxen > _______________________________________________ > 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
On 7/19/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote:> Hey, > > I''m having troubles with Typo: > -------------------- > I''m having trouble getting Typo to work. I installed Typo 2.0.6 on my > computer at home but when I run it it''s giving me that double render error. > Arg. I haven''t messed with any of the source code at all. Are there some > default config files you have to alter to make this work? All I did was > modify database.yml with my login info and set up the tables in each of the > databases. > > Any advice?I believe this bug is new to Rais 0.13. Actually, let me rephrase that -- the bug is not new, but it wasn''t until Rails 0.13 that it was being recognized as a bug and throwing an error. If DreamHost also has Rails 0.12.1 installed, you can lock your Typo install to that version of Rails, and might have more success. Unfortunately, I don''t recall off the top of my head how to do that, but I do know it is possible, and fairly easy to do. Hope that helps. Matt
On 19-Jul-05, at 6:01 PM, Belorion wrote:> If DreamHost also has Rails 0.12.1 installed, you can lock your Typo > install to that version of Rails, and might have more success. > Unfortunately, I don''t recall off the top of my head how to do that, > but I do know it is possible, and fairly easy to do.http://wiki.rubyonrails.com/rails/show/HowtoLockToSpecificRailsVersions
Have you checked out the latest trunk code for Typo? This is a compatibility release (an a little more now) for Rails 0.13.* svn checkout svn://leetsoft.com/typo/trunk typo On Jul 19, 2005, at 5:11 PM, Jeffrey Hardy wrote:> > On 19-Jul-05, at 6:01 PM, Belorion wrote: > > >> If DreamHost also has Rails 0.12.1 installed, you can lock your Typo >> install to that version of Rails, and might have more success. >> Unfortunately, I don''t recall off the top of my head how to do that, >> but I do know it is possible, and fairly easy to do. >> > > http://wiki.rubyonrails.com/rails/show/ > HowtoLockToSpecificRailsVersions > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >---------------------------------------------- Encytemedia.com Professional User Interface Design for Rails Applications _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Jim -- it sounds like this is at home only, not at DreamHost, yes? I didn''t actually do anything to my install, and haven''t upgraded to the 0.13.*version mentioned. I did see your comment, so it must have saved anyhow. I haven''t gotten any DoubleRenderErrors, fwiw. But I think the best advice is to grab that new version Justin mentioned. On 7/19/05, Justin Palmer <rails-JJvkDrV5TXAmlAP/+Wk3EA@public.gmane.org> wrote:> > Have you checked out the latest trunk code for Typo? This is a > compatibility release (an a little more now) for Rails 0.13.* > svn checkout svn://leetsoft.com/typo/trunk typo > >-Tom -- Tom Wilcoxen http://convergentarts.com http://www.dreamhost.com/r.cgi?twilcoxen _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hey, I''m having troubles with my Typo 2.5.2 installation and I''m also a Dreamhost user. Here is the situation : my Typo domain is blog.example.com <http://blog.example.com>. The home directory of that domain points to Typo''s ''public'' directory which contains dispatch.fcgi which is correctly used (even if I feel it''s slow, but that''s another point). My .htaccess file contains the following : AddHandler fastcgi-script .fcgi RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On SetEnv RAILS_ENV production I guess the last line is useless because I have "RAILS_ENV = production" in environment.rb, but whatever. When I go to blog.example.com <http://blog.example.com>, I have my Typo homepage and I can''t say it doesn''t work, BUT when at the same time I''m doing a ''tail -f production.log'', I see a lot of routing errors (and a lot more when going to blog.example.com/admin <http://blog.example.com/admin>). Here''s an excerpt : ActionController::RoutingError (Recognition failed for "/javascripts/cookies.js"): /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:444:in `recognition_failed'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:434:in `recognize!'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi'' /usr/lib/ruby/1.8/fcgi.rb:597:in `each'' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!'' dispatch.fcgi:24 I get the same error for everything behind "/javascripts", "/stylesheets" and "/images", and when I access the admin interface, I get the page but without all (you guessed it) js, images and stylesheets, which is not very comfortable My routes.rb is the default from Typo 2.5.2 and contains : map.connect ''/stylesheets/theme/:filename'', :controller => ''theme'', :action => ''stylesheets'' map.connect ''/javascript/theme/:filename'', :controller => ''theme'', :action => ''javascript'' map.connect ''/images/theme/:filename'', :controller => ''theme'', :action => ''images'' Do I have to change the routes ? Did I miss something else ? Do I have to make a change in another file ? With Webrick, there''s no such problem. The rails version appears to be 0.13.1 s listed in "gem list". I''m not a rails specialist, so any help (your blog topics helped me a lot Tom, thx) would be greatly appreciated ! b. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Upgrading to 2.5.3 fixed the problem. I don''t know absolutely why. Here''s the new .htaccess file which is now included by default : # General Apache options AddHandler fastcgi-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI # Redirect all requests not available on the filesystem to Rails RewriteEngine On # Uncomment this if you''re not running Typo in the root of your # webserver''s URL space (i.e. http://www.example.com/blog): # # RewriteBase /blog/ # try to suggest current rss subscribers that the url moved permently RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301] RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] # In case Rails experiences terminal errors ErrorDocument 500 "<h2>Application Error</h2>Typo could not be reached hmmmm, maybe the FollowSymLinks option was missing ? On 8/11/05, Bast <yaroru-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hey, > I''m having troubles with my Typo 2.5.2 installation and I''m also a > Dreamhost user. > Here is the situation : > my Typo domain is blog.example.com <http://blog.example.com>. The home > directory of that domain points to Typo''s ''public'' directory which contains > dispatch.fcgi which is correctly used (even if I feel it''s slow, but > that''s another point). My .htaccess file contains the following : > > AddHandler fastcgi-script .fcgi > RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] > RewriteEngine On > SetEnv RAILS_ENV production > > I guess the last line is useless because I have "RAILS_ENV = production" > in environment.rb, but whatever. > > When I go to blog.example.com <http://blog.example.com>, I have my Typo > homepage and I can''t say it doesn''t work, BUT when at the same time I''m > doing a ''tail -f production.log'', I see a lot of routing errors (and a lot > more when going to blog.example.com/admin <http://blog.example.com/admin>). > Here''s an excerpt : > > ActionController::RoutingError (Recognition failed for > "/javascripts/cookies.js"): > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:444:in > `recognition_failed'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:434:in > `recognize!'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in > `dispatch'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in > `process_request'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in > `process!'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `each_cgi'' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each'' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `process!'' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in > `process!'' > dispatch.fcgi:24 > > I get the same error for everything behind "/javascripts", "/stylesheets" > and "/images", and when I access the admin interface, I get the page but > without all (you guessed it) js, images and stylesheets, which is not very > comfortable > > My routes.rb is the default from Typo 2.5.2 and contains : > > map.connect ''/stylesheets/theme/:filename'', > :controller => ''theme'', :action => ''stylesheets'' > map.connect ''/javascript/theme/:filename'', > :controller => ''theme'', :action => ''javascript'' > map.connect ''/images/theme/:filename'', > :controller => ''theme'', :action => ''images'' > > Do I have to change the routes ? Did I miss something else ? Do I have to > make a change in another file ? > With Webrick, there''s no such problem. The rails version appears to be > 0.13.1 s listed in "gem list". > > I''m not a rails specialist, so any help (your blog topics helped me a lot > Tom, thx) would be greatly appreciated ! > > b. >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Try the 2.5.3 release On 8/11/05, Bast <yaroru-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey, > I''m having troubles with my Typo 2.5.2 installation and I''m also a Dreamhost > user. > Here is the situation : > my Typo domain is blog.example.com. The home directory of that domain points > to Typo''s ''public'' directory which contains dispatch.fcgi which is correctly > used (even if I feel it''s slow, but that''s another point). My .htaccess file > contains the following : > > AddHandler fastcgi-script .fcgi > RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] > RewriteEngine On > SetEnv RAILS_ENV production > > I guess the last line is useless because I have "RAILS_ENV = production" in > environment.rb, but whatever. > > When I go to blog.example.com, I have my Typo homepage and I can''t say it > doesn''t work, BUT when at the same time I''m doing a ''tail -f > production.log'', I see a lot of routing errors (and a lot more when going to > blog.example.com/admin). Here''s an excerpt : > > ActionController::RoutingError (Recognition failed for > "/javascripts/cookies.js"): > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:444:in > `recognition_failed'' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:434:in > `recognize!'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in > `dispatch'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in > `process_request'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in > `process!'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `each_cgi'' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each'' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `process!'' > > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in > `process!'' > dispatch.fcgi:24 > > I get the same error for everything behind "/javascripts", "/stylesheets" > and "/images", and when I access the admin interface, I get the page but > without all (you guessed it) js, images and stylesheets, which is not very > comfortable > > My routes.rb is the default from Typo 2.5.2 and contains : > > map.connect ''/stylesheets/theme/:filename'', > :controller => ''theme'', :action => ''stylesheets'' > map.connect ''/javascript/theme/:filename'', > :controller => ''theme'', :action => ''javascript'' > map.connect ''/images/theme/:filename'', > :controller => ''theme'', :action => ''images'' > > Do I have to change the routes ? Did I miss something else ? Do I have to > make a change in another file ? > With Webrick, there''s no such problem. The rails version appears to be > 0.13.1 s listed in "gem list". > > I''m not a rails specialist, so any help (your blog topics helped me a lot > Tom, thx) would be greatly appreciated ! > > b. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Tobi http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog