Comments (3)
Looked more into the issue, vagrant provision (which happens at the start of vagrant up) is emptying the /etc/guest folder on the host machine which means the files cannot be mounted to the virtual machine and the symlinks break to the /etc folder.
edit Solution: comment out lines 48 and 49 in configure_environment_recurring.sh as this is deleting all the config files during a vagrant provision/vagrant up. I am not sure why the code is doing this.
from magento2-vagrant-for-developers.
I use vagrant resume
after vagrant suspend
And get different errors:
$ vagrant resume
==> magento2.vagrant204: Resuming suspended VM...
==> magento2.vagrant204: Booting VM...
==> magento2.vagrant204: Waiting for machine to boot. This may take a few minutes...
magento2.vagrant204: SSH address: 127.0.0.1:3204
magento2.vagrant204: SSH username: vagrant
magento2.vagrant204: SSH auth method: private key
==> magento2.vagrant204: Machine booted and ready!
==> magento2.vagrant204: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> magento2.vagrant204: flag to force provisioning. Provisioners marked to run always will still run.
==> magento2.vagrant204: Running provisioner: fix_no_tty (shell)...
magento2.vagrant204: Running: inline script
==> magento2.vagrant204: Running provisioner: upgrade_environment_recurring (shell)...
magento2.vagrant204: Running: /var/folders/6p/09t024v92z1f3cmkb_c29wlh0000gn/T/vagrant-shell20160922-78971-810mx4.sh
==> magento2.vagrant204: + use_php7=1
==> magento2.vagrant204: + sudo rm -f /etc/apt/sources.list.d/ondrej-php-7_0-trusty.list
==> magento2.vagrant204: + [[ 1 -eq 1 ]]
==> magento2.vagrant204: + grep -q 7.0.5
==> magento2.vagrant204: + /usr/bin/php7.0 -v
==> magento2.vagrant204: ++ isServiceAvailable varnish
==> magento2.vagrant204: ++ grep -Fq varnish
==> magento2.vagrant204: ++ service --status-all
==> magento2.vagrant204: [ ? ] apport
==> magento2.vagrant204: [ ? ] console-setup
==> magento2.vagrant204: [ ? ] cryptdisks
==> magento2.vagrant204: [ ? ] cryptdisks-early
==> magento2.vagrant204: [ ? ] dns-clean
==> magento2.vagrant204: [ ? ] irqbalance
==> magento2.vagrant204: [ ? ] killprocs
==> magento2.vagrant204: [ ? ] kmod
==> magento2.vagrant204: [ ? ] mysql
==> magento2.vagrant204: [ ? ] networking
==> magento2.vagrant204: [ ? ] ondemand
==> magento2.vagrant204: [ ? ] open-vm-tools
==> magento2.vagrant204: [ ? ] pppd-dns
==> magento2.vagrant204: [ ? ] rc.local
==> magento2.vagrant204: [ ? ] screen-cleanup
==> magento2.vagrant204: [ ? ] sendsigs
==> magento2.vagrant204: [ ? ] umountfs
==> magento2.vagrant204: [ ? ] umountnfs.sh
==> magento2.vagrant204: [ ? ] umountroot
==> magento2.vagrant204: [ ? ] unlink-configs
==> magento2.vagrant204: ++ echo 1
==> magento2.vagrant204: + is_varnish_installed=1
==> magento2.vagrant204: + [[ 1 -eq 0 ]]
==> magento2.vagrant204: + service mysql restart
==> magento2.vagrant204: mysql stop/waiting
==> magento2.vagrant204: mysql start/running, process 8598
==> magento2.vagrant204: Running provisioner: configure_environment_recurring (shell)...
magento2.vagrant204: Running: /var/folders/6p/09t024v92z1f3cmkb_c29wlh0000gn/T/vagrant-shell20160922-78971-yvvlb.sh
==> magento2.vagrant204: + grep -q /vagrant/etc/guest
==> magento2.vagrant204: + cat /etc/apparmor.d/local/usr.sbin.mysqld
==> magento2.vagrant204: + config_dir=/etc
==> magento2.vagrant204: + configs=(apache2 php mysql varnish rabbitmq)
==> magento2.vagrant204: + process_configs /etc apache2
==> magento2.vagrant204: + configs_path=/etc
==> magento2.vagrant204: + configs=apache2
==> magento2.vagrant204: + for config in '"${configs[@]}"'
==> magento2.vagrant204: + [[ ! -d /vagrant/etc/guest/apache2 ]]
==> magento2.vagrant204: + [[ ! -f /vagrant/etc/guest/apache2 ]]
==> magento2.vagrant204: + [[ -d /etc/apache2 ]]
==> magento2.vagrant204: + [[ -f /etc/apache2 ]]
==> magento2.vagrant204: + for config in '"${configs[@]}"'
==> magento2.vagrant204: + [[ ! -d /vagrant/etc/guest/php ]]
==> magento2.vagrant204: + [[ ! -f /vagrant/etc/guest/php ]]
==> magento2.vagrant204: + [[ -d /etc/php ]]
==> magento2.vagrant204: + [[ -f /etc/php ]]
==> magento2.vagrant204: + for config in '"${configs[@]}"'
==> magento2.vagrant204: + [[ ! -d /vagrant/etc/guest/mysql ]]
==> magento2.vagrant204: + [[ ! -f /vagrant/etc/guest/mysql ]]
==> magento2.vagrant204: + [[ -d /etc/mysql ]]
==> magento2.vagrant204: + [[ -f /etc/mysql ]]
==> magento2.vagrant204: + for config in '"${configs[@]}"'
==> magento2.vagrant204: + [[ ! -d /vagrant/etc/guest/varnish ]]
==> magento2.vagrant204: + [[ ! -f /vagrant/etc/guest/varnish ]]
==> magento2.vagrant204: + [[ -d /etc/varnish ]]
==> magento2.vagrant204: + [[ -f /etc/varnish ]]
==> magento2.vagrant204: + for config in '"${configs[@]}"'
==> magento2.vagrant204: + [[ ! -d /vagrant/etc/guest/rabbitmq ]]
==> magento2.vagrant204: + [[ ! -f /vagrant/etc/guest/rabbitmq ]]
==> magento2.vagrant204: + [[ -d /etc/rabbitmq ]]
==> magento2.vagrant204: + [[ -f /etc/rabbitmq ]]
==> magento2.vagrant204: cp:
==> magento2.vagrant204: cannot create regular file ‘/etc/varnish/default.vcl’
==> magento2.vagrant204: : No such file or directory
==> magento2.vagrant204: sed: can't read /etc/php/7.0/cli/conf.d/20-xdebug.ini: No such file or directory
==> magento2.vagrant204: ERROR:
==> magento2.vagrant204: Module php7.0 does not exist!
==> magento2.vagrant204: sed: can't read /etc/php/7.0/cli/conf.d/20-xdebug.ini: No such file or directory
==> magento2.vagrant204: /tmp/vagrant-shell: line 91: /etc/php/7.0/cli/conf.d/20-xdebug.ini: No such file or directory
==> magento2.vagrant204: /etc/init.d/apache2: 64: .:
==> magento2.vagrant204: Can't open /etc/apache2/envvars
==> magento2.vagrant204: /etc/init.d/apache2: 76: .:
==> magento2.vagrant204: Can't open /etc/apache2/envvars
==> magento2.vagrant204: ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
==> magento2.vagrant204: [ ? ] apport
==> magento2.vagrant204: [ ? ] console-setup
==> magento2.vagrant204: [ ? ] cryptdisks
==> magento2.vagrant204: [ ? ] cryptdisks-early
==> magento2.vagrant204: [ ? ] dns-clean
==> magento2.vagrant204: cat:
==> magento2.vagrant204: /etc/php/7.0/cli/php.ini
==> magento2.vagrant204: : No such file or directory
==> magento2.vagrant204: Running provisioner: export_env_variables_recurring (shell)...
magento2.vagrant204: Running: /var/folders/6p/09t024v92z1f3cmkb_c29wlh0000gn/T/vagrant-shell20160922-78971-1kos8kj.sh
I was guessing the error was NFS related, but this time my mounts seem OK. My site still loads, but trying to run m-bin-magento
gives more errors:
$ ./m-bin-magento list
+ arguments=list
+ cd /Users/aaron/src/JBS/vagrant-magento
+ vagrant ssh -c '$MAGENTO_ROOT/bin/magento list'
Fatal error: Uncaught Error: Call to undefined function Composer\Json\json_decode() in /Users/aaron/src/JBS/vagrant-magento/magento2ce/vendor/composer/composer/src/Composer/Json/JsonFile.php:152
Stack trace:
#0 /Users/aaron/src/JBS/vagrant-magento/magento2ce/vendor/composer/composer/src/Composer/Factory.php(269): Composer\Json\JsonFile->validateSchema(1)
#1 /Users/aaron/src/JBS/vagrant-magento/magento2ce/vendor/composer/composer/src/Composer/Factory.php(532): Composer\Factory->createComposer(Object(Composer\IO\BufferIO), '/Users/aaron/sr...', false)
#2 /Users/aaron/src/JBS/vagrant-magento/magento2ce/lib/internal/Magento/Framework/Composer/ComposerFactory.php(47): Composer\Factory::create(Object(Composer\IO\BufferIO), '/Users/aaron/sr...')
#3 /Users/aaron/src/JBS/vagrant-magento/magento2ce/lib/internal/Magento/Framework/Composer/ComposerInformation.php(362): Magento\Framework\Composer\ComposerFactory->create()
#4 /Users/aaron/src/JBS/vagrant-magento/magento2ce/lib/internal/Magento/Framework/Composer/ComposerInformation.php in /Users/aaron/src/JBS/vagrant-magento/magento2ce/vendor/composer/composer/src/Composer/Json/JsonFile.php on line 152
Connection to 127.0.0.1 closed.
from magento2-vagrant-for-developers.
@nobuttsalex thank you for reporting this issue.
Directories are cleaned up to make Accessing configs from IDE feature work. To be honest, I never do suspend that's why haven't seen this issue before. Instead I use vagrant halt
. Also everything should work fine after hard VM reset.
I will look into this issue and fix it if quick fix is available, looks like low priority.
from magento2-vagrant-for-developers.
Related Issues (20)
- SSH command responded with a non-zero exit status.
- There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 365199510952
- Got some issue with clone private repos from bitbucket
- when i run init_project.sh getting error
- [Feature] Allow to enable/disable xdebug with configuration
- Magento frontend is not accessible after installation on windows host
- Issue when booting VM in ubuntu 18.10 HOT 1
- Terminal in vagrant got freezes while install/reinstall magento
- [Enhancements] Allow to disabled xdebug from config.yaml
- Increase xdebug_nesting_level for extended editions scenarios
- Cannot find NFS mount on MacOS Mojave 10.14.1
- Ubuntu Trusty is EOL; ondej/php has removed all PHP versions HOT 9
- PHP Module does not exist HOT 4
- Unable to install HOT 2
- git bash, windows 10, read-only file system error HOT 1
- y7777777777777777777777777777777777777777/8888888888888888/x
- Host PHP version php-5.6.9 -> newer and adding VC_redist.x64.exe as requirement HOT 1
- [Windows] Unzip not installed by default in gitbash
- Deleting Magento Test Module only if "checkout_source_from: git"
- https://github.com/Asquera/raspberry-devbox
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-vagrant-for-developers.