Hola amigos,
tengo un problema con rake y capistrano, no sé si es el lugar
correcto,
pero supongo que lo es dado que mucho de ustedes seguramente utilizan
capistrano para hacer sus deploys si estoy equivocado y no es el lugar
diganmelo.
Esta es la salida de ‘cap deploy’
- executing “cd /home/glow/deploy/releases/20090224121038; rake
RAILS_ENV=production db:migrate”
servers: [“xxx xxx xxx”]
[xxx xxx xxx] executing command
*** [err :: xxx xxx xxx]
/usr/lib/ruby/1.8/rubygems/source_index.rb:92:in
load_specification' *** [err :: xxx xxx xxx] : *** [err :: xxx xxx xxx] private method
specification_version=’ called
for
#Gem::Specification:0xb7bf9ca0
*** [err :: xxx xxx xxx] (
*** [err :: xxx xxx xxx] NoMethodError
*** [err :: xxx xxx xxx] )
*** [err :: xxx xxx xxx] from
/usr/lib/ruby/1.8/rubygems/specification.rb:421:ininitialize' *** [err :: xxx xxx xxx] from (eval):3:in
new’
*** [err :: xxx xxx xxx] from (eval):3:inload_specification' *** [err :: xxx xxx xxx] from /usr/lib/ruby/1.8/rubygems/source_index.rb:128:in
eval’
*** [err :: xxx xxx xxx] from
/usr/lib/ruby/1.8/rubygems/source_index.rb:92:inload_specification' *** [err :: xxx xxx xxx] from /usr/lib/ruby/1.8/rubygems/source_index.rb:128:in
load_gems_in’
*** [err :: xxx xxx xxx] from
/usr/lib/ruby/1.8/rubygems/source_index.rb:127:ineach' *** [err :: xxx xxx xxx] from /usr/lib/ruby/1.8/rubygems/source_index.rb:127:in
load_gems_in’
*** [err :: xxx xxx xxx] from
/usr/lib/ruby/1.8/rubygems/source_index.rb:81:infrom_gems_in' *** [err :: xxx xxx xxx] from /usr/lib/ruby/1.8/rubygems/source_index.rb:53:in
from_installed_gems’
*** [err :: xxx xxx xxx] from /usr/lib/ruby/1.8/rubygems.rb:125:in
source_index' *** [err :: xxx xxx xxx] from /usr/lib/ruby/1.8/rubygems.rb:245:in
activate’
*** [err :: xxx xxx xxx] from /usr/lib/ruby/1.8/rubygems.rb:75:in
active_gem_with_options' *** [err :: xxx xxx xxx] from /usr/lib/ruby/1.8/rubygems.rb:49:in
gem’
*** [err :: xxx xxx xxx] from /var/lib/gems/1.8/bin/rake:18
command finished
failed: “sh -c “cd /home/glow/deploy/releases/20090224121038; rake
RAILS_ENV=production db:migrate”” on xxx xxx xxx
he googleado sobre el error y parece ser que es un problema de versiones
aunque tengo las mismas versiones de rubygems (1.3.1), de rake (0.8.3),
capistrano (2.5.4). Lo raro es que si me logeo en el server y ejecuto el
comando que falla (cd /home/glow/deploy/releases/20090224121038; rake
RAILS_ENV=production db:migrate) funciona sin problemas,
a alguien se le ocurre que puede ser? Gracias.
Saludos,
Franco.