2014-06-26 69 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