Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

Capistranoで"Could not parse object"

More than 5 years have passed since last update.

RVM 1.14.2
Ruby 1.9.3p194

capistrano (2.12.0)
capistrano-ext (1.2.1)

--

こんなふうにでたんよ。

fatal: Could not parse object '789740e97a03558cf252c988b50b05a331dea386'.
deploy.rb
set :deploy_via, :remote_cache

参考
Deploying with Capistrano
https://help.github.com/articles/deploying-with-capistrano

remote_cacheってのはremoteサーバーにgitリポジトリをlocalに作って、
デプロイの度にクローンするんじゃなくて差分だけ落とすだけにする方法。
そのリポジトリが壊れた可能性があるから、それを消そうって解決策が載ってた。
https://groups.google.com/group/capistrano/browse_thread/thread/60de741e9691de12

cd shared/
rm -rf cached-copy/

で解決した。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away