Capistrano资产错误:Errno :: EMLINK:@ dir_s_mkdir链接太多

时间:2016-07-26 16:22:44

标签: ruby-on-rails capistrano

我的导轨应用程序当前的capistrano部署存在问题。

Errno::EMLINK: Too many links @ dir_s_mkdir - /home/travelninja/app_staging/releases/20160726161529/tmp/cache/assets/production/sass/34b38f7adaaf169bd78016fa78239bdc16903911
  (in /home/travelninja/app_staging/releases/20160726161529/app/assets/stylesheets/admin.scss)
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/cache/file_store.rb:25:in `[]='
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/caching.rb:34:in `cache_set'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sass-rails-5.0.3/lib/sass/rails/cache_store.rb:13:in `_store'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sass-3.4.22/lib/sass/cache_stores/base.rb:51:in `store'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sass-3.4.22/lib/sass/engine.rb:417:in `_to_tree'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sass-3.4.22/lib/sass/engine.rb:281:in `render'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sass-rails-5.0.3/lib/sass/rails/template.rb:47:in `evaluate'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:197:in `block in evaluate'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `each'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `evaluate'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/processed_asset.rb:12:in `initialize'
/home/travelninja/app_staging/shared/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:374:in `new'

有没有人经历过类似的事情?

1 个答案:

答案 0 :(得分:0)

问题是我们的登台服务器从未清除缓存文件夹。它在每次部署时都符号链接。里面有很多文件。清理后效果很好。