2014-06-26 67 views
7

我无法为我的生活...重新安装所有东西后VVV/VBox(4.3.10)&运行vagrant up --provision找出为什么这个美丽(VVV)不会运行。我无法访问任何的wordpress网站,如http://local.wordpress.dev/流浪汉up失败,stdin,start,ssh,stderr和stdout错误

规格: 的Windows 8.1 Cygwin的

最终运行CMD后线 - > 游民了--provision

==> default: http://gruntjs.com/getting-started 
==> default: Downloading phpMyAdmin 4.1.14... 
==> default: Restart Nginx... 
==> default: * Restarting nginx nginx 
==> default: ...done. 
==> default: Cleaning the virtual machine's /etc/hosts file... 
==> default: Adding domains to the virtual machine's /etc/hosts file... 
==> default: * Added vvv.dev from /srv/www/vvv-hosts 
==> default: * Added local.wordpress.dev from /srv/www/vvv-hosts 
==> default: * Added local.wordpress-trunk.dev from /srv/www/vvv-hosts 
==> default: * Added src.wordpress-develop.dev from /srv/www/vvv-hosts 
==> default: * Added build.wordpress-develop.dev from /srv/www/vvv-hosts 
==> default: ----------------------------- 
==> default: Provisioning complete in 1636 seconds 
==> default: External network connection established, packages up to date. 
==> default: For further setup instructions, visit http://vvv.dev 
==> default: Running provisioner: shell... 
    default: Running: inline script 
==> default: stdin: is not a tty 
==> default: start: Job is already running: mysql 
The following SSH command responded with a non-zero exit status. 
Vagrant assumes that this means the command failed! 

chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell 

Stdout from the command: 



Stderr from the command: 

stdin: is not a tty 
start: Job is already running: mysql 

我要去哪里错了?

回答

2

没有你在做什么。显然这是一个已知的问题。

我固定它通过运行vagrant ssh

然后

sudo service mysql restart || true 

您可以找到问题的记录here

+0

我从来没有去测试这个,因为我结束了移动到Mac开发(在Windows临时),并没有在Windows上开发。我在工作时在Windows电脑上设置了一个类似的开发环境......尽管在业余时间。最初接受这个答案,因为问题链接张贴...似乎坚实。根据新的答案,我认为最好是在我可以测试或者有人能够阐明如何处理这个问题之前,去掉答案接受。 – djfrsn

12

以下行添加到您Vagrantfile

config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" 

这会将bash作为非登录shell启动,但也是如此告诉它来源/ etc/profile,我假设这是默认使用登录shell的唯一原因。适用于库存精确的Vagrant箱子。

+0

工作,谢谢。我没有使用MySQL,因此接受的答案不可能是解决方案,至少不适合我。 – Sven

+0

我也为PuPHPet配置工作。 – Tisch