0

I am receiving the following error when trying to start Spring (https://github.com/jonleighton/spring). I am running it in a Vagrant box with Ubuntu 12.04 LTS 12.04.

    vagrant@rails-starter-box:/vagrant/ticketee$ spring start
    /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/server.rb:85:in `unlink': Text file busy - /vagrant/ticketee/tmp/spring/spring.pid (Errno::ETXTBSY)
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/server.rb:85:in `unlink'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/server.rb:85:in `block (2 levels) in set_exit_hook'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/server.rb:84:in `each'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/server.rb:84:in `block in set_exit_hook'
    /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/server.rb:34:in `initialize': Operation not permitted - /vagrant/ticketee/tmp/spring/spring (Errno::EPERM)
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/server.rb:34:in `open'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/server.rb:34:in `boot'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/server.rb:15:in `boot'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/client/start.rb:13:in `call'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/client/command.rb:7:in `call'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/lib/spring/client.rb:23:in `run'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spring-0.0.8/bin/spring:4:in `'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/spring:19:in `load'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/spring:19:in `'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
            from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `'
4

2 回答 2

2

由于 Vagrant 的只读文件系统,您需要环境将变量 SPRING_TMP_PATH 设置为 /vagrant 目录之外的某个位置

在命令行运行它

mkdir ~/spring_tmp; export SPRING_TMP_PATH=/home/vagrant/spring_tmp
spring start

然后运行

spring status

如果 spring 现在正在运行,则将以下行添加到 ~/.bashrc

export SPRING_TMP_PATH="/home/vagrant/spring_tmp" # Temp PATH for spring

这要归功于 George Brocklehurst

于 2013-05-17T08:13:11.060 回答
0

我在 RSpec 中遇到了这个错误。我必须通过共享文件夹中的 SMB (cifs) 挂载 /windows。我还必须更改共享文件夹的权限才能授予写入权限。您可以向所有人授予完全控制权,或向 Windows 用户授予完全控制权,但是您必须使用权限进行挂载。

mount -t cifs //10.0.2.2/aidc /windows -o credentials=/etc/samba/credentials,uid=500,gid=500

您还必须在您的 Virtual Box 中安装 Samba (cifs?)。

我听说 vboxfs 真的很糟糕,不能处理大量文件。

于 2014-05-01T08:44:21.133 回答