shopware
shopware copied to clipboard
Installer does not accept existing database (does not detect fresh install from console)
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
We found the following existing issues which may help or are related to your topic:
- installer Error Identifier DB not initialized yet
- Installer Error "Critical environment variable 'DATABASE_URL' missing!\n"
- [GitHub] Console system:install can't connect to database without password
- Many problems with CLI installer since 6.4.6.0
- Custom database Port not possible in installer
- CLI-Installer seems absent starting with v6.4.15.0
- bin/setup database port failes
- "system:install" does not support URL-encoded special characters in database password
- When installing, "Critical environment variable DATABASE_URL missing" thrown
- installation failes if user has no global right
Hi,
thx for your issue we will put it into our new evaluation process and have a look at it again.
[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37941.
[created from NEXT-37941, comment 488997]