Hallo,
ich möchte ein neues SW5 Projekt aufsetzen, dabei soll das Projekt in ein Git-Repository übertragen werden. Ich habe nun lokal folgende Schritte ausgeführt und erhalte einen Fehler:
-
Ich habe das Git Repository gecloned.
-
Ich habe im root composer update ausgeführt.
-
Ich habe in /recovery/common composer update ausgeführt
-
Ich habe in /build folgende commands ausgeführt:
ant configure
ant build-unit
-> Dies sagt komischerweise, obwohl die Daten der DB richtig eingegeben worden sind:
[exec] WARNING! Could not connect to database. Message from SQL Server: SQLSTATE[HY000] [2002] No such file or directory in /Users/mac/Sites/fp_shop/src/engine/Shopware/Components/DependencyInjection/Bridge/Db.php
[exec] Could not connect to database: SQLSTATE[HY000] [2002] No such file or directory
-
Ich habe die Installation im Browser aufgerufen und den Wizard gestartet. Dann erhalte ich folgenden Fehler, wenn ich auf Starten klicke:
Received an error message.
URL: importDatabase?offset=0&totalCount=0
Message: Internal Server ErrorPlease try to fix this error and restart the update.
Response
Slim Application Error
The application could not run because of the following error:Details
Type: ErrorException
Code: 2
Message: fopen(/Users/mac/Sites/fp_shop/src/recovery/install/src/…/data/sql/install.sql): failed to open stream: No such file or directory
File: /Users/mac/Sites/fp_shop/src/recovery/common/src/DumpIterator.php
Line: 60
Trace
#0 [internal function]: Slim\Slim::handleErrors(2, ‘fopen(/Users/to…’, ‘/Users/mac/S…’, 60, Array)
#1 /Users/mac/Sites/fp_shop/src/recovery/common/src/DumpIterator.php(60): fopen(’/Users/mac/S…’, ‘rb’)
#2 /Users/mac/Sites/fp_shop/src/recovery/install/src/ContainerProvider.php(98): Shopware\Recovery\Common\DumpIterator->__construct(’/Users/mac/S…’)
#3 /Users/mac/Sites/fp_shop/src/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(109): Shopware\Recovery\Install\ContainerProvider->Shopware\Recovery\Install{closure}(Object(Pimple\Container))
#4 /Users/mac/Sites/fp_shop/src/recovery/install/src/app.php(469): Pimple\Container->offsetGet(‘database.dump_i…’)
#5 [internal function]: {closure}()
#6 /Users/mac/Sites/fp_shop/src/recovery/common/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Object(Closure), Array)
#7 /Users/mac/Sites/fp_shop/src/recovery/common/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()
#8 /Users/mac/Sites/fp_shop/src/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#9 /Users/mac/Sites/fp_shop/src/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#10 /Users/mac/Sites/fp_shop/src/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#11 /Users/mac/Sites/fp_shop/src/recovery/common/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#12 /Users/mac/Sites/fp_shop/src/recovery/install/index.php(74): Slim\Slim->run()
#13 {main}
Wie kann ich diesen Fehler beheben? Und warum steht im Shopware Installationsguide (GitHub - shopware/shopware at 5.1) nichts davon, dass composer ausgeführt werden muss, um fehlende Libraries zu installieren?
Danke!