Vvv: xdebug_on is not in the environment path after updating to VVV 2.0,

Created on 24 May 2017  路  11Comments  路  Source: Varying-Vagrant-Vagrants/VVV


Expected Behavior


After SSHing into my VVV environment, I expected running

$ xdebug_on

would activate xdebug.

Current Behavior


After SSHing into my VVV environment, running

$ xdebug_on

results in

xdebug_on: command not found

Possible Solution


Add /vagrant/config/homebin to the PATH.

Your Environment

  • VVV version: Current HEAD 4d1fb6f
  • Vagrant version: 1.8.5
  • VM Provider name: VirtualBox
  • VM Provider version: 5.0.24 r108355
  • Operating System and version: Mac OS X 10.11.6
bug reproduce

All 11 comments

Just noticed the same, xdebug_on is not found, but running from /vagrant/config/homebin/xdebug_on works.

VVV version: Current HEAD master 710f085
Vagrant version: 2.0.0
VM Provider name: VirtualBox
Operating System and version: Linux 4.13.4-1-ARCH

@LC43 does this happen with the develop branch after a provision? /vagrant/config/homebin/ should be in PATH, can you get us the value of PATH?

Uh, my bad, i was testing develop and just checked with user _vagrant_.

home/vagrant/bin is fully populated with xdebug_on/off.

PATH, as _vagrant_

vagrant@vvv:~/bin$ echo $PATH
/home/vagrant/bin:/usr/local/rvm/gems/ruby-2.4.1/bin:/usr/local/rvm/gems/ruby-2.4.1@global/bin:/usr/local/rvm/rubies/ruby-2.4.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/rvm/bin:/srv/www/phpcs/scripts/

I was trying to run as root, as i assumed this would be a system change, but is instead the script uses sudo.
As _root_:

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

so, all good for me, maybe OP has it different.

I'm unable to replicate using the vagrant user, I'm going to close this out, but if anybody encounters this with a freshly provisioned box on the develop branch or the latest master, please don't hesitate to reopen

I got this one just now. /vagrant/config/homebin/xdebug_on worked for me as well.

Vagrant 2.0.1-master on Mac El Capitan using vagrant user.
VirtualBox 5.1.30.

I got this one on the latest _develop_. I had to add /vagrant/config/homebin on the $PATH using

echo 'export PATH=$PATH:/vagrant/config/homebin' >> ~/.bashrc

why is this happening?

I have this as well. When I run it from /vagrant/config/homebin/xdebug_on I see 2 processes being run:

php7.1-fpm stop/waiting
php7.1-fpm start/running, process 13101
php7.2-fpm stop/waiting
php7.2-fpm start/running, process 13120

I added php71 as a utility but my php -v throws

PHP 7.2.5-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: May  5 2018 06:17:01) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.5-1+ubuntu14.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans

Same issue here after upgrading from VVV 2.1.0 to VVV 2.2.1 and re-provisioning.

  • VVV Version: 2.2.1
  • VVV Git Branch: master at b7b51b7 as well as at tag 2.2.1 d68db35
  • Vagrant version: Vagrant 2.1.1
  • VM Provider name: virtualbox
  • VM Provider version: 5.1.36r122089
  • ubuntu/trusty64 box version: 20180530.1.0 and 20180604.0.0 after updating the box
  • Operating System and version: Kubuntu 18.04, $ uname -a: Linux {$MY_USER} 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

    vagrant@vvv:~$ echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/rvm/bin:/srv/www/phpcs/scripts/

/vagrant/config/homebin/xdebug_on is the location of the command and it's off equivalent

Yup, I see, thanks for the quick response. I just thought I'd confirm I can reproduce and add my specs in case it's ever useful.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings