# Deploying Rails 2.02 app with Cap 2.2 - PID file problems

**URL:** <https://www.ruby-forum.com/t/deploying-rails-2-02-app-with-cap-2-2-pid-file-problems/142552>\
**Category:** Rails\
**Created:** [July 9, 2008, 4:17am UTC](https://www.ruby-forum.com/t/deploying-rails-2-02-app-with-cap-2-2-pid-file-problems/142552 "2008-07-09T04:17:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://www.ruby-forum.com/u/andy)\
**Post date:** [July 9, 2008, 4:17am UTC](https://www.ruby-forum.com/t/deploying-rails-2-02-app-with-cap-2-2-pid-file-problems/142552/1 "2008-07-09T04:17:09Z")

</div>

I’m deploying using the recipes laid out in Agile Development w/  
Rails.

My app was deploying fine for about 3 months, now I have problems with  
PID files.

I get this error during the deploy:  
\*\*\* [err :: xx.xxx.xx.xxx]  
\*\*\* [err :: xx.xxx.xx.xxx] \*\*  
\*\*\* [err :: xx.xxx.xx.xxx] !!! Exiting with error. You must stop  
mongrel and cl  
ear the .pid before I’ll attempt a start.  
\*\*\* [err :: xx.xxx.xx.xxx]  
\*\*\* [err :: xx.xxx.xx.xxx] \*\* Ruby version is not up-to-date; loading  
cgi\_multip  
art\_eof\_fix  
\*\*\* [err :: xx.xxx.xx.xxx] \*\* !!! PID file tmp/pids/mongrel.8001.pid  
already exi  
sts. Mongrel could be running already. Check your log/mongrel.  
8001.log for err  
ors.  
\*\*\* [err :: xx.xxx.xx.xxx] \*\* !!! Exiting with error. You must stop  
mongrel and  
clear the .pid before I’ll attempt a start.  
\*\* [out :: xx.xxx.xx.xxx] stopping port 8000  
\*\* [out :: xx.xxx.xx.xxx] stopping port 8001  
\*\* [out :: xx.xxx.xx.xxx] starting port 8000  
\*\* [out :: xx.xxx.xx.xxx]  
\*\* [out :: xx.xxx.xx.xxx] starting port 8001  
\*\* [out :: xx.xxx.xx.xxx]  
command finished

I often will have to delete the PID files and then do a deploy, but  
then it only creates the “8001” version, so I have to create the  
“8000” version, and then all is ok.

Any ideas?
