Welcome Guest | Login

Capistrano - cap deploy:rollback crashes site

After much help from support, Capistrano was working, and I could update my site from the SVN repository. But today I tried to cap deploy:rollback and now my site gives a 503 error.  When I issued the command I got an error that said

!!! PID file log/mongrel.pid already exists.  Mongrel could be running already.

Is there something I need to add to deploy.rb or my capfile to fix this?

Here is the whole output from the terminal:

74-60-7-188:ftree masterblaster$ cap deploy:rollback
 * executing `deploy:rollback'
 * executing `deploy:rollback_code'
 * executing "ls -x /home/bradsfa/apps/familytree/releases"
   servers: ["111brad.wycliffe.hostingrails.com"]
Password:
   [111brad.wycliffe.hostingrails.com] executing command
   command finished
 * executing "rm /home/bradsfa/apps/familytree/current; ln -s /home/bradsfa/apps/familytree/releases/20080214230910 /home/bradsfa/apps/familytree/current && rm -rf /home/bradsfa/apps/familytree/releases/20080215020059"
   servers: ["111brad.wycliffe.hostingrails.com"]
   [111brad.wycliffe.hostingrails.com] executing command
   command finished
 * executing `deploy:restart'
 * executing "cd /home/bradsfa/apps/familytree/current && mongrel_rails stop"
   servers: ["111brad.wycliffe.hostingrails.com"]
   [111brad.wycliffe.hostingrails.com] executing command
** [out :: 111brad.wycliffe.hostingrails.com] Sending TERM to Mongrel at PID 28967...Done.
   command finished
 * executing "cd /home/bradsfa/apps/familytree/current && mongrel_rails start -e production -p 4200 -d"
   servers: ["111brad.wycliffe.hostingrails.com"]
   [111brad.wycliffe.hostingrails.com] executing command
** [out :: 111brad.wycliffe.hostingrails.com] **
** [out :: 111brad.wycliffe.hostingrails.com] !!! PID file log/mongrel.pid already exists.  Mongrel could be running already.
** [out :: 111brad.wycliffe.hostingrails.com] Check your log/mongrel.log for errors.
** [out :: 111brad.wycliffe.hostingrails.com]
** [out :: 111brad.wycliffe.hostingrails.com] **
** [out :: 111brad.wycliffe.hostingrails.com] !!! Exiting with error.  You must stop mongrel and clear the .pid before I'll att
** [out :: 111brad.wycliffe.hostingrails.com] empt a start.
** [out :: 111brad.wycliffe.hostingrails.com]
   command finished
command "cd /home/bradsfa/apps/familytree/current && mongrel_rails start -e production -p 4200 -d" failed on 111brad.wycliffe.hostingrails.com

2008-02-14 08:16 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.