Hello. I recently deployed my new rails application. Everything went
fine, except for the fast that my mongrel cluster managed by
Capistrano is only serving up the first revision. For instance, i one
of my revisions I added a new action to my application. I checked it
into svn, and ran cap deploy in my application’s root directory. I
didn’t get any serious errors, except for these:
- executing “find /srv/www/theatheistconservative/releases/
20080221050042/public/images /srv/www/theatheistconservative/releases/
20080221050042/public/stylesheets /srv/www/theatheistconservative/
releases/20080221050042/public/javascripts -exec touch -t
200802210500.57 {} ‘;’; true”
servers: [“theatheistconservative.com”]
[theatheistconservative.com] executing command
*** [err :: theatheistconservative.com] find:
*** [err :: theatheistconservative.com] /srv/www/
theatheistconservative/releases/20080221050042/public/images
*** [err :: theatheistconservative.com] : No such file or directory
*** [err :: theatheistconservative.com]
*** [err :: theatheistconservative.com] find:
*** [err :: theatheistconservative.com] /srv/www/
theatheistconservative/releases/20080221050042/public/stylesheets
*** [err :: theatheistconservative.com] : No such file or directory
*** [err :: theatheistconservative.com]
*** [err :: theatheistconservative.com] find:
*** [err :: theatheistconservative.com] /srv/www/
theatheistconservative/releases/20080221050042/public/javascripts
*** [err :: theatheistconservative.com] : No such file or directory
*** [err :: theatheistconservative.com]
Then, when I access my application in a browser, none of the changes
have taken effect.
What could be causing this and how can I rectify this particular
crisis?
Full cap deploy messages:
- executing `deploy’
- executing `deploy:update’
** transaction: start - executing `deploy:update_code’
- getting (via checkout) revision 9 to /tmp/20080221050042
compressing /tmp/20080221050042 to /tmp/20080221050042.tar.gz
servers: [“theatheistconservative.com”]
Password: - uploading /tmp/20080221050042.tar.gz
** uploading data to theatheistconservative.com:/tmp/
20080221050042.tar.gz - done uploading data to theatheistconservative.com:/tmp/
20080221050042.tar.gz
upload finished - executing “cd /srv/www/theatheistconservative/releases && tar xzf /
tmp/20080221050042.tar.gz && rm /tmp/20080221050042.tar.gz”
servers: [“theatheistconservative.com”]
[theatheistconservative.com] executing command
command finished - executing `deploy:finalize_update’
- executing “chmod -R g+w /srv/www/theatheistconservative/releases/
20080221050042”
servers: [“theatheistconservative.com”]
[theatheistconservative.com] executing command
command finished - executing “rm -rf /srv/www/theatheistconservative/releases/
20080221050042/log /srv/www/theatheistconservative/releases/
20080221050042/public/system /srv/www/theatheistconservative/releases/
20080221050042/tmp/pids &&\n mkdir -p /srv/www/
theatheistconservative/releases/20080221050042/public &&\n mkdir -
p /srv/www/theatheistconservative/releases/20080221050042/tmp &&
\n ln -s /srv/www/theatheistconservative/shared/log /srv/www/
theatheistconservative/releases/20080221050042/log &&\n ln -s /
srv/www/theatheistconservative/shared/system /srv/www/
theatheistconservative/releases/20080221050042/public/system &&\n
ln -s /srv/www/theatheistconservative/shared/pids /srv/www/
theatheistconservative/releases/20080221050042/tmp/pids”
servers: [“theatheistconservative.com”]
[theatheistconservative.com] executing command
command finished - executing “find /srv/www/theatheistconservative/releases/
20080221050042/public/images /srv/www/theatheistconservative/releases/
20080221050042/public/stylesheets /srv/www/theatheistconservative/
releases/20080221050042/public/javascripts -exec touch -t
200802210500.57 {} ‘;’; true”
servers: [“theatheistconservative.com”]
[theatheistconservative.com] executing command
*** [err :: theatheistconservative.com] find:
*** [err :: theatheistconservative.com] /srv/www/
theatheistconservative/releases/20080221050042/public/images
*** [err :: theatheistconservative.com] : No such file or directory
*** [err :: theatheistconservative.com]
*** [err :: theatheistconservative.com] find:
*** [err :: theatheistconservative.com] /srv/www/
theatheistconservative/releases/20080221050042/public/stylesheets
*** [err :: theatheistconservative.com] : No such file or directory
*** [err :: theatheistconservative.com]
*** [err :: theatheistconservative.com] find:
*** [err :: theatheistconservative.com] /srv/www/
theatheistconservative/releases/20080221050042/public/javascripts
*** [err :: theatheistconservative.com] : No such file or directory
*** [err :: theatheistconservative.com]
command finished - executing `deploy:symlink’
- executing “rm -f /srv/www/theatheistconservative/current && ln -s /
srv/www/theatheistconservative/releases/20080221050042 /srv/www/
theatheistconservative/current”
servers: [“theatheistconservative.com”]
[theatheistconservative.com] executing command
command finished
** transaction: commit - executing `deploy:restart’
- executing `mongrel:cluster:restart’
- executing “sudo -p 'sudo password: ’ mongrel_rails
cluster::restart -C /srv/www/theatheistconservative/config/
mongrel_cluster.yml”
servers: [“theatheistconservative.com”]
[theatheistconservative.com] executing command
** [out :: theatheistconservative.com] stopping port 8000
** [out :: theatheistconservative.com] stopping port 8001
** [out :: theatheistconservative.com] stopping port 8002
** [out :: theatheistconservative.com] starting port 8000
** [out :: theatheistconservative.com] starting port 8001
** [out :: theatheistconservative.com] starting port 8002
command finished
- executing `deploy:update’