I had a similar problem during deployment when I moved the pid file
from logs to pids folder.  The solution was to run:
$ sudo kill `ps -ef | grep -i "httpd" | awk '{print $2}'`
$ sudo kill `ps -ef | grep -i "mongrel_rails" | awk '{print $2}'`
to kill all previously created httpd and mongrel_rails instances.

Also, I set pid_file: /deploy/path/shared/pids/mongrel.pid in the
mongrel_cluster.yml file (probably something similar in the spinner)

Give that a shot and then try to run the deploy:restart.

On Feb 18, 11:48 pm, sergio_101 <[email protected]> wrote:
> i am trying to figure out one more thing with my spin file, and i
> think i will have everything set up correctly..
>
> i copied my spin file from another site, and it seems okay, but it
> can't get it to stop or restart because it can't find the pid file..
>
> my spin file looks like this:
>
> ,----[ script/spin ]
> | #!/bin/sh
> |
> | #~/Sites/Deployed/Thrive_Project/current/script/process/spawner \
> |   mongrel_rails start \
> |   --environment=production \
> |   --port=5000
> `----
>
> i think i may add a -d to it to daemonize the script..
>
> sooooo..
>
> when i try to stop or restart the server, i get:
>
> ,----[ results ]
> | cap deploy:restart
> |   * executing `deploy:restart'
> |   * executing 
> "~/Sites/Deployed/Thrive_Project/current/script/process/reaper"
> |     servers: ["thrive-oh.org"]
> |     [thrive-oh.org:8724] executing command
> | *** [err :: thrive-oh.org:8724] Couldn't find any pid file in
> '/home/thriveoh/Sites/Deployed/Thrive_Project/releases/20090219031900/tmp/pids'
> matching 'dispatch.[0-9]*.pid'
> | *** [err :: thrive-oh.org:8724]
> | *** [err :: thrive-oh.org:8724] (also looked for processes matching
> "/home/thriveoh/Sites/Deployed/Thrive_Project/releases/20090219031900/public/dispatch.fcgi")
> | *** [err :: thrive-oh.org:8724]
> |     command finished
> `----
>
> anyone have any ideas on this?
>
> thanks!
>
> --
> ___
> peace,
> sergiowww.village-buzz.com
> photographer, journalist, visionary

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to