shopware5 / shopware-vagrant

A Vagrant setup ready for shopware development
MIT License
58 stars 30 forks source link

install_shopware fails #59

Open HerHde opened 4 years ago

HerHde commented 4 years ago

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?

HerHde commented 4 years ago

This problem lies upstream and is addressed at Ocramius/PackageVersions/issues/107. A workaround is also mentioned, wich did not worked for me: https://github.com/Ocramius/PackageVersions/issues/107#issuecomment-561274943

Also, after downgrading to VirtualBox 6.0.4 and recreating the VM the problem persists.