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

New mariadb version breaks @wordpress/env funcionality #59244

Closed
angcl opened this issue Feb 21, 2024 · 1 comment
Closed

New mariadb version breaks @wordpress/env funcionality #59244

angcl opened this issue Feb 21, 2024 · 1 comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Tool] Env /packages/env [Type] Bug An existing feature does not function as intended

Comments

@angcl
Copy link

angcl commented Feb 21, 2024

Description

Since the release of a new mariadb docker image, starting an environment over @wordpress/env doesn't work anymore.

Workaround

Change mariadb images in build-docker-compose-config.js from mariadb to a prior version like mariadb:10.3

Suggestion

Make mariadb version selectable and default to a reasonable version, not latest.

Step-by-step reproduction instructions

  1. mkdir new-project
  2. cd new-project
  3. npm init -y
  4. npm install @wordpress/env --save-dev
  5. create a .wp-env.json file
  6. npx wp-env start

Screenshots, screen recording, code snippet

❯ npx wp-env start
✖ Error while running docker compose command.
Container 879c0e8cf3a66537f687a6eca145da4c-tests-mysql-1 Running
Container 879c0e8cf3a66537f687a6eca145da4c-tests-wordpress-1 Running
Error: Error establishing a database connection. This either means that the username and password information in your wp-config.php file is incorrect or that contact with the database server at tests-mysql could not be established. This could mean your host’s database server is down.

Environment info

macOS 14.2.1
Docker version 20.10.23, build 7155243
v20.11.1

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@angcl angcl added the [Type] Bug An existing feature does not function as intended label Feb 21, 2024
@t-hamano t-hamano added the [Tool] Env /packages/env label Feb 21, 2024
@t-hamano
Copy link
Contributor

Thanks for the report.

This issue is reported in #59232. This issue was fixed in #59237 and will be fixed in the next npm package update.

@t-hamano t-hamano closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2024
@t-hamano t-hamano added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Feb 21, 2024
techieshark added a commit to techieshark/planet4-develop that referenced this issue Feb 22, 2024
Why:
* fixes issue caused by a newly released MariaDB docker image

see -
WordPress/gutenberg#59244
techieshark added a commit to techieshark/planet4-develop that referenced this issue Feb 22, 2024
Why:
* there's a known bug affecting versions older than 9.4

see - WordPress/gutenberg#59244

Note also:
* the version is specified in package.json so unless people have 
  installed @wordpress/env globally, they should be on the correct version anyway
lithrel pushed a commit to greenpeace/planet4-develop that referenced this issue Feb 28, 2024
* Update to wp-env 9.4 (fix 🐛)

Why:
* fixes issue caused by a newly released MariaDB docker image

see -
WordPress/gutenberg#59244

* Update required wp-env version

Why:
* there's a known bug affecting versions older than 9.4

see - WordPress/gutenberg#59244

Note also:
* the version is specified in package.json so unless people have 
  installed @wordpress/env globally, they should be on the correct version anyway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Tool] Env /packages/env [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants