shopware icon indicating copy to clipboard operation
shopware copied to clipboard

Installer does not accept existing database (does not detect fresh install from console)

Open ecxod opened this issue 10 months ago • 3 comments

PHP Version

any

Shopware Version

6.6.1.0

Expected behaviour

**If someone installs shopware using composer : **

php composer.phar create-project shopware/production shopware-prod

you get the following text :

  * Run Shopware locally:

    1. Adjust the .env file to your database
    2. Run ./bin/console system:install --basic-setup

so people will modify at this moment the dotenv file filling in the mysql data

btw : here is the info missing that the following folders must be writable by the web server

Datei/Verzeichnis Status
. writable
var/log/ writable
var/cache/ writable
public/ writable
config/jwt/ writable

at this moment the database gets populated.

then the install crashes because for some reason var/cache/._A96/url_matching_routes.php can not be deleted and then the install starts again (it is created by composer user, and can not be deleted by php user, normally they should not be the same for security reasons)

and when starting installation again from installer/database-import it does not detect that the database is populated already, asking one to delete the database.

Actual behaviour

it should detect that the database is already there and populated

How to reproduce

when making a fresh install

ecxod avatar Apr 10 '24 22:04 ecxod

Hi,

thx for your issue we will put it into our new evaluation process and have a look at it again.

MarcelSchmaeing avatar Aug 21 '24 09:08 MarcelSchmaeing

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37941.

[created from NEXT-37941, comment 488997]

shopwareBot avatar Aug 21 '24 09:08 shopwareBot