7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

たまたまブレーカーが落ちたら bundle install できなくなり困りました。

Posted at

gemのactiveadminを試そうと bundle install をしていたら、その最中に電子レンジつけていたためかブレーカーが落ち、ルータの電源が切れてしまいネットが繋がらなくなりました。そのためか bundle install ができなくなりました\(^o^)/

bundle install で失敗

bundle installできません。

bundle install

Updating git://github.com/activeadmin/activeadmin.git
fatal: '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Retrying git clone --no-checkout --quiet "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528" "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60" due to error (2/3): Bundler::Source::Git::GitCommandError Git error: command `git clone --no-checkout --quiet "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528" "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60"` in directory /var/www/html/pugiemonn.com has failed.
If this error persists you could try removing the cache directory '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528'
fatal: '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Retrying git clone --no-checkout --quiet "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528" "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60" due to error (3/3): Bundler::Source::Git::GitCommandError Git error: command `git clone --no-checkout --quiet "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528" "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60"` in directory /var/www/html/pugiemonn.com has failed.
If this error persists you could try removing the cache directory '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528'
fatal: '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Git error: command `git clone --no-checkout --quiet
"/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528"
"/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60"` in directory /var/www/html/pugiemonn.com has failed.
If this error persists you could try removing the cache directory
'/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528'

こまりました。

cache directory を rm

cache directoryを消してみなよとあるので消してみました。

rm -rf /var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528

再度 bundle install

もう一度 bundle install を試します。

bundle install

こんどはうまくいきました(☝ ՞ਊ ՞)

7
8
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?