Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup:install needs to provide the password arg #55

Open
rfay opened this issue Aug 25, 2023 · 0 comments
Open

setup:install needs to provide the password arg #55

rfay opened this issue Aug 25, 2023 · 0 comments
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant