Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

setup:install needs to provide the password arg #55

Open
rfay opened this issue Aug 25, 2023 · 1 comment
Open

setup:install needs to provide the password arg #55

rfay opened this issue Aug 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@rfay
Copy link
Contributor

rfay commented Aug 25, 2023

Describe the bug

The template currently assumes that the database has no password (as it doesn't on platform.sh).

But it does on DDEV.

The --password arg should be provided.

Include some logs

Build failed w/ command: php bin/magento setup:install --ansi --no-interaction --skip-db-validation --base-url=https://platform-magento2ce.ddev.site/ --db-host=db --db-name=db --db-user=db --backend-frontname=admin --language=en_US --currency=USD --timezone=Europe/Paris --use-rewrites=1 --session-save=redis --session-save-redis-host=redis --session-save-redis-port=6379 --session-save-redis-db=0 --cache-backend=redis --cache-backend-redis-server=redis --cache-backend-redis-port=6379 --cache-backend-redis-db=1 --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-port=6379 --page-cache-redis-db=2 --admin-firstname=admin --admin-lastname=admin [email protected] --admin-user=admin --admin-password=admin123

(Note that it doesn't pass the db-password)

[Progress: 4 / 705]
Installing database schema:

In Abstract.php line 144:

  SQLSTATE[HY000] [1045] Access denied for user 'db'@'172.17.0.3' (using password: NO)

It's failing because it's not using a password.

Reproducing

ddev get https://github.com/ddev/ddev-platformsh/tarball/main

ddev start

Expected behavior

Start

Your environment

DDEV v1.22.1

Screenshots

No response

Additional context

No response

@rfay rfay added the bug Something isn't working label Aug 25, 2023
@jww-sh
Copy link

jww-sh commented Feb 6, 2025

should be fixed in the new version of the template, please check https://github.com/platformsh-templates/magentoCE24

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants