-
Notifications
You must be signed in to change notification settings - Fork 642
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
Error "Backing up the database" with SSL config #10351
Comments
I'm going ahead and changing |
Nothing in Craft has changed around this in quite a while. I'm guessing something in the local certificate chain on that box has expired or is no longer valid and that's causing SSL not to work from PHP. Take Craft out of the equation and try writing a simple PHP script that curls out using the same CA file. |
Thanks Brad. Connections from Craft itself are fine and site is up, but it’s the mysqldump command during an install that seems to fail. My guess was there had been a change (maybe in Yii?) which is preventing the SSL config being read or passed into that command.
… On 11 Jan 2022, at 17:24, Brad Bell ***@***.***> wrote:
Nothing in Craft has changed around this in quite a while. I'm guessing something in the local certificate chain on that box has expired or is no longer valid and that's causing SSL not to work from PHP.
Take Craft out of the equation and try writing a simple PHP script that curls out using the same CA file.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.
|
hrm... possibly, but I just glanced through the last few releases on https://github.com/yiisoft/yii2/blob/master/framework/CHANGELOG.md and nothing is jumping out at me. Maybe try reaching out to Azure support? If it's a common occurrence, they've probably seen it before and might have some answers. |
Craft 3 doesn't read the SSL settings at all. Line 151 in 43275a6
|
Workaround for alpine (adjust paths for other distros).
30.01.2023 - This method no longer works due to craft changing to using --defaults-file |
This is fixed now for the next Craft 3 and 4 releases, via #12596. Thanks @okolvik-avento! |
Craft 3.7.64 and 4.3.7 have been released with that fix. |
Description
When I run a project config update, Craft backs up the database. This has been working fine, but I recently updated to 3.7.28 (from 3.7.23) and when I deploy I now see:
I'm hosted in Azure and we have SSL enabled on the database:
Has anything changed recently in Craft that would break this?
Additional info
The text was updated successfully, but these errors were encountered: