shopware5 / shopware-vagrant Goto Github PK
View Code? Open in Web Editor NEWA Vagrant setup ready for shopware development
License: MIT License
A Vagrant setup ready for shopware development
License: MIT License
I have Vagrant 2.1.5 installed and a fresh cloned repository.
When vagrant up
runs, it throws this error:
TASK [common : be sure ntpd is running and enabled] **************************** fatal: [default]: FAILED! => {"changed": false, "msg": "value of state must be one of: reloaded, restarted, started, stopped, got: running"} to retry, use: --limit @/vagrant/ansible/playbook.retry
PLAY RECAP ********************************************************************* default : ok=7 changed=5 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.
Hi,
on my Mac (10.13.6) with Vagrant 2.2.5 and Virtualbox 6.0.8 I got after a working installation and restarting the vagrant machine following error:
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant
The error output from the command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device
The issue only occurs, if I restart, after install the box is working fine, but with vagrant ssh a restart is required.
If there's anything further you need, please let me know.
After installing can't find the shopware folder to edit.
I tried switching the PHP version on the vagrant machine (after ssh)
changephp_7.0
changephp_5.6
And I get this error
vagrant@registerbyemail:~/bin$ changephp_5.6
: No such file or directory
Any hints? :)
I am following the official developers guide: https://developers.shopware.com/developers-guide/vagrant-phpstorm/
When it comes to the step "Build Shopware" and the substep "2. Configure your build properties" I get the following error message.
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
vagrant@shopware:~/www/shopware/build$ ant configure
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Buildfile: /home/vagrant/www/shopware/build/build.xml
configure:
[input] Please enter db-host: [localhost]
localhost
[input] Please enter db-port: [3306]
3306
[input] Please enter db-name: []
shopware
[input] Please enter db-username: []
root
[input] Please enter db-password:
shopware
[input] Please enter app.host (Hostname e.g. example.com): []
192.168.33.10
[input] Please enter app.path (e.g. /shopware. Leave blank if installed in document root): []
/shopware
write-properties:
[propertyfile] Creating new property file: /home/vagrant/www/shopware/build/build.properties
BUILD SUCCESSFUL
Total time: 42 seconds
vagrant@shopware:~/www/shopware/build$ ant build-unit
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Buildfile: /home/vagrant/www/shopware/build/build.xml
check-composer-binary:
install-composer-binary:
[exec] All settings correct for using Composer
[exec] Downloading...
[exec]
[exec] Composer (version 1.9.2) successfully installed to: /home/vagrant/www/shopware/composer.phar
[exec] Use it: php composer.phar
[exec]
update-composer-binary:
[exec] You are already using composer version 1.9.2 (stable channel).
build-composer-install:
[exec] Loading composer repositories with package information
[exec] Installing dependencies (including require-dev) from lock file
[exec] Package operations: 148 installs, 0 updates, 0 removals
[exec]
[exec] Fatal error: Uncaught TypeError: Return value of PackageVersions\Installer::activate() must be an instance of PackageVersions\void, none returned i n /home/vagrant/www/shopware/vendor/ocramius/package-versions/src/PackageVersions/Installer.php:80
[exec] Stack trace:
[exec] #0 phar:///home/vagrant/www/shopware/composer.phar/src/Composer/Plugin/PluginManager.php(237): PackageVersions\Installer->activate(Object(Composer\ Composer), Object(Composer\IO\ConsoleIO))
[exec] #1 phar:///home/vagrant/www/shopware/composer.phar/src/Composer/Plugin/PluginManager.php(206): Composer\Plugin\PluginManager->addPlugin(Object(Pack ageVersions\Installer))
[exec] #2 phar:///home/vagrant/www/shopware/composer.phar/src/Composer/Installer/PluginInstaller.php(62): Composer\Plugin\PluginManager->registerPackage(O bject(Composer\Package\CompletePackage), true)
[exec] #3 phar:///home/vagrant/www/shopware/composer.phar/src/Composer/Installer/InstallationManager.php(173): Composer\Installer\PluginInstaller->install (Object(Composer\Repository\InstalledFilesystemRepository), Object(Composer\P in /home/vagrant/www/shopware/vendor/ocramius/package-versions/src/PackageVersion s/Installer.php on line 80
[exec] - Installing ocramius/package-versions (1.4.2): Downloading (100%)
[exec] PHP Fatal error: Uncaught TypeError: Return value of PackageVersions\Installer::activate() must be an instance of PackageVersions\void, none retur ned in /home/vagrant/www/shopware/vendor/ocramius/package-versions/src/PackageVersions/Installer.php:80
[exec] Stack trace:
[exec] #0 phar:///home/vagrant/www/shopware/composer.phar/src/Composer/Plugin/PluginManager.php(237): PackageVersions\Installer->activate(Object(Composer\ Composer), Object(Composer\IO\ConsoleIO))
[exec] #1 phar:///home/vagrant/www/shopware/composer.phar/src/Composer/Plugin/PluginManager.php(206): Composer\Plugin\PluginManager->addPlugin(Object(Pack ageVersions\Installer))
[exec] #2 phar:///home/vagrant/www/shopware/composer.phar/src/Composer/Installer/PluginInstaller.php(62): Composer\Plugin\PluginManager->registerPackage(O bject(Composer\Package\CompletePackage), true)
[exec] #3 phar:///home/vagrant/www/shopware/composer.phar/src/Composer/Installer/InstallationManager.php(173): Composer\Installer\PluginInstaller->install (Object(Composer\Repository\InstalledFilesystemRepository), Object(Composer\P in /home/vagrant/www/shopware/vendor/ocramius/package-versions/src/PackageVersion s/Installer.php on line 80
BUILD FAILED
/home/vagrant/www/shopware/build/build.xml:98: exec returned: 255
Total time: 2 seconds
There are reserved IP addresses for this kind of usage. Also this.
ionCube is missing for the PHP versions 7.1 & 7.2:
vagrant@shop:~/www$ /usr/bin/php5.6 -v
PHP 5.6.40-14+ubuntu16.04.1+deb.sury.org+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
vagrant@shop:~/www$ /usr/bin/php7.0 -v
PHP 7.0.33-13+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 28 2019 07:43:06) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.
with Zend OPcache v7.0.33-13+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.8.1, Copyright (c) 2002-2019, by Derick Rethans
vagrant@shop:~/www$ /usr/bin/php7.1 -v
PHP 7.1.33-2+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 28 2019 07:41:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.33-2+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.8.1, Copyright (c) 2002-2019, by Derick Rethans
vagrant@shop:~/www$ /usr/bin/php7.2 -v
PHP 7.2.25-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 28 2019 07:41:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.25-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.8.1, Copyright (c) 2002-2019, by Derick Rethans
Issue #2 addressed PHP5.6 and #12 addressed PHP 7.0 but 7.1 & 7.2 is still missing.
Last time I tried to use this box I got:
Vagrant has detected that you have a version of VirtualBox installed
that is not supported. Please install one of the supported versions
listed below to use Vagrant:
4.0, 4.1, 4.2, 4.3
Hey guys!
Trying to get the vagrant box up running.
But I get the following error while provisioning.
TASK [apache : be sure apache is started and enabled] ************************** fatal: [default]: FAILED! => {"changed": false, "failed": true, "msg": "Segmentation fault (core dumped)\n"} to retry, use: --limit @/vagrant/ansible/playbook.retry
Any hints on getting the stuff up and running?
System: OSX 10.12.1
Vagrant: 1.8.5
VirtualBox: 5.1.2
thanks! Martin
The install_shopware script does not work because it is not possible to connect to mysql with your configuration.
Change the mysql_root_password from root to shopware
in file ansible/roles/mysql/defaults/main.yml
This will fix the bug and it will be possible to connect via adminer.php (user: root, password: shopware)
Maybe ioncube should be integrated automatically e.g. for the licence manager and purchased plugins?
Hi,
I cloned the box and uncommented the #-shopware. After vagrant up is done, and I visit 33.33.33.10/shopware I get redirected to http://33.33.33.10/shopware/recovery/install/ and get a blank page. Any ideas?
The php version shipped with the box is too old for Shopware 5.2. I had to run:
sudo apt-get update
sudo do-release-upgrade -d
to upgrade Ubuntu first, which installs php7.
Also the zip extension for php is missing, it can be installed afterwards with:
sudo apt-get install php7.0-zip
sudo apachectl restart
Does any upgrade already exist for the base box? What are you using in dev at Shopware?
Hi there.. Now that the current LTS version of Ubuntu is out there for almost a year, and includes PHP7 by default and other things that make such a setup run even more smooth than before, would you maybe update this vagrant box or make a new one?
First the install_script path inside the vagrant box is bin/install_script
while the readme says just install_script
. But running ./bin/install_script just outputs the error not found
.
Running the tasks from the script manually works but the ant task misses jdk so i installed openjdk-7-jdk
first.
OS: Windows 10
Virtual Box: 5.1.4
Vagrant: 1.8.5
Shopware reports:
Your server is running PHP version 7.0.33-13+ubuntu16.04.1+deb.sury.org+1 but Shopware 5 requires at least PHP 7.2.0
I guess it would be useful to set the default to PHP 7.2.
Greetings,
unfortunately the install_shopware
command fails with the following log:
vagrant@shopware:~$ install_shopware
Cloning into 'shopware'...
remote: Enumerating objects: 87, done.
remote: Counting objects: 100% (87/87), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 310971 (delta 40), reused 56 (delta 26), pack-reused 310884
Receiving objects: 100% (310971/310971), 229.32 MiB | 13.65 MiB/s, done.
Resolving deltas: 100% (202954/202954), done.
Checking connectivity... done.
Checking out files: 100% (9479/9479), done.
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Buildfile: /home/vagrant/www/shopware/build/build.xml
write-properties:
[propertyfile] Creating new property file: /home/vagrant/www/shopware/build/build.properties
BUILD SUCCESSFUL
Total time: 0 seconds
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Buildfile: /home/vagrant/www/shopware/build/build.xml
check-composer-binary:
install-composer-binary:
[exec] All settings correct for using Composer
[exec] Downloading...
[exec]
[exec] Composer (version 1.9.1) successfully installed to: /home/vagrant/www/shopware/composer.phar
[exec] Use it: php composer.phar
[exec]
update-composer-binary:
[exec] You are already using composer version 1.9.1 (stable channel).
build-composer-install:
[exec] Loading composer repositories with package information
[exec] Installing dependencies (including require-dev) from lock file
[exec] Package operations: 147 installs, 0 updates, 0 removals
[exec] - Installing ocramius/package-versions (1.4.2): Loading from cache
[exec] Plugin installation failed, rolling back
[exec] - Removing ocramius/package-versions (1.4.2)
[exec]
[exec]
[exec] [RuntimeException]
[exec] Could not delete /home/vagrant/www/shopware/vendor/ocramius/package-versions/src/PackageVersions:
[exec]
[exec]
[exec] install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
[exec]
BUILD FAILED
/home/vagrant/www/shopware/build/build.xml:98: exec returned: 1
Total time: 2 seconds
Running Vagrant 2.2.6 on Win 10
I ran changephp_7.2
inside the box, so
$ php -version
PHP 7.2.25-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 28 2019 07:41:59) ( NTS )
Also I uncommented the following line in the Vagrantfile:
config.vm.synced_folder "../src", "/home/vagrant/www/shopware", create: true;
Any tips?
The installed node version is 4.2.6, the current one is 10.12.0.
This could be solved by adding the node package source.
Error while running vagrant up
the first time:
failed: [default] (item=[u'libapache2-mod-php5.6', u'php5.6-cli', u'php5.6-curl', u'php5.6-gd', u'php5.6-mysql', u'php5.6-mbstring', u'php5.6-simplexml', u'php5.6-xml', u'php5.6-zip', u'php5.6-intl', u'libapache2-mod-php7.0', u'php7.0-cli', u'php7.0-curl', u'php7.0-gd', u'php7.0-mysql', u'php7.0-mbstring', u'php7.0-simplexml', u'php7.0-xml', u'php7.0-zip', u'php7.0-intl', u'libapache2-mod-php7.1', u'php7.1-cli', u'php7.1-curl', u'php7.1-gd', u'php7.1-mysql', u'php7.1-mbstring', u'php7.1-simplexml', u'php7.1-xml', u'php7.1-zip', u'php7.1-intl', u'libapache2-mod-php7.2', u'php7.2-cli', u'php7.2-curl', u'php7.2-gd', u'php7.2-mysql', u'php7.2-mbstring', u'php7.2-simplexml', u'php7.2-xml', u'php7.2-zip', u'php7.2-intl', u'php-apcu', u'php-xdebug']) => {"ansible_loop_var": "item", "changed": false, "item": ["libapache2-mod-php5.6", "php5.6-cli", "php5.6-curl", "php5.6-gd", "php5.6-mysql", "php5.6-mbstring", "php5.6-simplexml", "php5.6-xml", "php5.6-zip", "php5.6-intl", "libapache2-mod-php7.0", "php7.0-cli", "php7.0-curl", "php7.0-gd", "php7.0-mysql", "php7.0-mbstring", "php7.0-simplexml", "php7.0-xml", "php7.0-zip", "php7.0-intl", "libapache2-mod-php7.1", "php7.1-cli", "php7.1-curl", "php7.1-gd", "php7.1-mysql", "php7.1-mbstring", "php7.1-simplexml", "php7.1-xml", "php7.1-zip", "php7.1-intl", "libapache2-mod-php7.2", "php7.2-cli", "php7.2-curl", "php7.2-gd", "php7.2-mysql", "php7.2-mbstring", "php7.2-simplexml", "php7.2-xml", "php7.2-zip", "php7.2-intl", "php-apcu", "php-xdebug"], "msg": "No package matching 'libapache2-mod-php5.6' is available"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.