独角兽错误:文本文件繁忙

Sef*_*ang 3 ruby-on-rails unicorn

我使用以下命令启动我的unicorn服务器 bundle exec unicorn -E production -c config/unicorn.rb

但我发现服务器没有运行.我检查日志并发现错误:

/usr/local/rvm/gems/ruby-2.0.0-p0-turbo/gems/unicorn-4.2.1/lib/unicorn/
    http_serv??er.rb:202:in rename': Text file busy - (/vagrant/ruby-china
    /tmp/pids/0.2628933382622929.13474, /vagrant/ruby-china/tmp/pids/unicorn.pid)
    (Errno::ETXTBSY)
Run Code Online (Sandbox Code Playgroud)

如何解决这个问题呢?

Sef*_*ang 9

我已经解决了这个问题,问题是我正在使用虚拟盒并在同步文件夹中部署项目.所以我尝试将文件夹移动到本地文件系统,错误消失了.可以帮助别人.