簡體   English   中英

隨着stdin,start,ssh,stderr和stdout錯誤,Vagrant up失敗

[英]Vagrant up fails with stdin, start, ssh, stderr & stdout errors

我不能為我的生活...重新安裝所有的東西VVV / VBox(4.3.10)和運行流浪漢 - 提供弄清楚為什么這個美麗(VVV)不會運行。 我無法訪問任何wordpress網站,如http://local.wordpress.dev/

規格:Windows 8.1 Cygwin

運行cmd后的最后一行 - > vagrant up --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

我哪里錯了?

在Vagrantfile中添加以下行

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

這將bash作為非登錄shell啟動,但也告訴它來源/ etc / profile,我假設這是默認情況下使用登錄shell的唯一原因。 適用於我的股票exact64 Vagrant框。

不是你在做什么。 顯然這是一個已知問題。

我通過運行vagrant ssh修復它

然后

sudo service mysql restart || true

您可以在此處找到問題的記錄

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM