# Deploy with specific earlier version of capistrano

**URL:** <https://www.ruby-forum.com/t/deploy-with-specific-earlier-version-of-capistrano/168572>\
**Category:** Deployment\
**Created:** [May 22, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/deploy-with-specific-earlier-version-of-capistrano/168572 "2009-05-22T16:07:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [May 22, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/deploy-with-specific-earlier-version-of-capistrano/168572/1 "2009-05-22T16:07:31Z")

</div>

I started a new app, using the latest version of capistrano (2.5.5) to  
deploy. All fine. But, when i’ve gone back to an app i started  
earlier, i can’t deploy it - i get this error:

failed: “sh -c "sudo -p 'sudo password: ’ chown app\_e\_learning\_resource  
/var/www/apps/e\_learning\_resource/shared/log/mongrel.log"” on  
[prelive.ourhost.com](http://prelive.ourhost.com)

Now, i thought that this was maybe because of some differences in  
capistrano between the new version and the one i was using previously  
(2.4.3). So, i’m trying to deploy using the earlier version of  
capistrano.

According to this page…

[http://www.42.mach7x.com/2008/02/14/using-older-capistrano-version-1x-after-upgrading-to-capistrano-2x/](http://www.42.mach7x.com/2008/02/14/using-older-capistrano-version-1x-after-upgrading-to-capistrano-2x/)

…i do this by putting the required version in underscores: eg

cap _2.4.3_ deploy STAGE=prelive

But, when i do this, i get this error:  
/usr/local/lib/site\_ruby/1.8/rubygems.rb:149:in `activate’: can’t  
activate capistrano (\> 2.5.0, runtime), already activated  
capistrano-2.4.3 (Gem::Exception)

Looking down the trace for the first reference to anything in my code,  
the problem seems to occur when i try to require ‘deprec’.

Can anyone give me any help/advice?  
thanks  
max
