Capistrano, SVN & Apache problems


#1
  1. Apache (nothing gets served!)

In ~\logs :

[Fri Aug 25 21:45:12 2006] [error] [client 208.106.21.7]
(104)Connection reset by peer: FastCGI: comm with server
"/home/saizai1/prayermatch.org/public/dispatch.fcgi" aborted: read failed
[Fri Aug 25 21:45:12 2006] [error] [client 208.106.21.7] FastCGI:
incomplete headers (0 bytes) received from server
"/home/saizai1/prayermatch.org/public/dispatch.fcgi"

I’ve tried everything listed in
http://wiki.dreamhost.com/index.php/Ruby_on_Rails. Shebangs set
correctly, chmod set, frao added, fcgi enabled, not using print…

What does work:

REQUEST_METHOD=GET HTTP_HOST=prayermatch.org REQUEST_URI=/
QUERY_STRING= ./dispatch.fcgi

^^ gets the proper index page (not the placeholder index.html) just fine

./dispatch.fcgi

^^ gets the error 500 page

http://www.prayermatch.org/main/index

^^ gets the error 500 page after a long timeout. Should get the proper
index page gotten from the request_method version above.

  1. SVN:

I’m suddenly getting “connection terminated unexpectedly” errors when using svn ssh://www.prayermatch.org/home/saizai1/svn/PrayerMatch/trunk - even though it was working fine last night (and I got it all imported & checked out).

http://svn.prayermatch.org works.

The username/pass for the svn subdomain and general SSH are the same.

This is even true running off an SSH:
[homer]$ cap deploy
loading configuration /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/recipes/standard.rb
loading configuration ./config/deploy.rb

  • executing task deploy
    ** transaction: start
  • executing task update_code
  • querying latest revision…
    ssh: home: Name or service not known
    svn: Connection closed unexpectedly

the server’s version of deploy.rb currently has:
set :repository, “svn ssh://home/saizai1/svn/PrayerMatch/trunk”

mine has:
set :repository, “http://svn.prayermatch.org/PrayerMatch/trunk
#set :repository, “svn ssh://saizai1@svn.prayermatch.org/PrayerMatch/trunk”
#set :repository, “svn ssh://www.prayermatch.org/home/saizai1/svn/PrayerMatch/trunk”
#set :repository, “svn ssh://saizai1@prayermatch.org/home/.my_server/saizai1/svn/PrayerMatch/trunk”

^^^ none of which work :frowning:

  1. Capistrano

Not sure if it’s just the SVN problem, but I’ve been getting a bunch of EOF errors, permission denied errors, etc when trying to run the deploy task. :frowning:

rake show_deploy_tasks doesn’t work either. (“Don’t know how to build…”

  1. SVN config newb question

I have local and server versions of dispatch.cgi/fcgi/rb, .htaccess, database.yml, and environment.rb.

I’ve set those all to be ignored by SVN (using Tortoise), and created *.online and *.offline versions of each that are versioned.

However, when I deploy (the one time it sorta ran but got bad permissions on the restart task), using export per the FAQ… how do I get it to rename all the *.online ones to just *? It doesn’t keep the same directory (unlike my local version), so I can’t just add an unversioned copy and expect it to be there after I deploy again.

Any suggestions on how to fix these issues?

Thanks a lot for the help!