server-automation icon indicating copy to clipboard operation
server-automation copied to clipboard

Error establishing a database connection. When using Wordpress 6.2

Open tawmeh opened this issue 1 year ago • 3 comments

Hi there and thanks for the amazing work you've done.

When using this in my .env:

#Site image SITE_IMAGE=wordpress SITE_VERSION=6.2

The WP cli doesn't work.

I'm don't know how to troubleshoot further. I ran into the problem when trying to use the update site name script provided in the wordpress folder.

I may have tracked it down to the Wordpress version. It works when I use 4.6 for the site version.

Any pointers on how to troubleshoot would be awesome!

Thanks again.

edit: The output i get when trying to run wp.sh is: (I replaced my domain with "site" in the following)

...:/home/root/server/sites/dev2.site.org/compose# ./wp.sh /snap/docker/2746/lib/python3.6/site-packages/paramiko/transport.py:32: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography (40.0) will be the last to support Python 3.6. from cryptography.hazmat.backends import default_backend Creating site-m0dff_wpcli_run ... done Error: Error establishing a database connection. ERROR: 1

tawmeh avatar May 09 '23 15:05 tawmeh