随着stdin,start,ssh,stderr& stdout错误

时间:2014-06-26 02:35:31

标签: wordpress ssh cygwin vagrant windows-8.1

我不能为我的生活...重新安装所有的东西VVV / VBox(4.3.10)&运行流浪汉 - 提供弄清楚为什么这个美女(VVV)不会运行。我无法访问任何wordpress网站,例如http://local.wordpress.dev/

规格: Windows 8.1 Cygwin的

运行cmd后的最后一行 - >     流浪汉 - 提供

==> 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 个答案:

答案 0 :(得分:12)

在Vagrantfile中添加以下行

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

这会将bash作为非登录shell启动,但也告诉它来源/ etc / profile,我假设这是默认情况下使用登录shell的唯一原因。使用库存precision64 Vagrant盒子为我工作。

答案 1 :(得分:2)

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

我通过运行vagrant ssh

修复了它

然后

sudo service mysql restart || true

您可以找到问题here

的记录