mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
An exception occured in driver: MySQL server has gone away (Doctrine2, Typo3, Kubernetes, cloud sql proxy) #6082
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cccdemon on GitHub (Oct 9, 2018).
Proxy Service definition:
Google Cloud Proxy Definition:
Exception:
After removing the Proxy and connecting direct to Google Cloud SQL, the connection will work properly.
It seems that
does not returns the correct state (i dont know why)
PHP Version: 7.1.22
Kubernetes Version 1.9.x
Google Managed Kubnernetes (Autoscaled - thats why we cant use fixed IPs for DB Access)
This issue is happens when you use TYPO3 CMS 8.7.19 on Google Kubernetes with SQL Proxy, install tool - Install tool: Database analyzer
@Ocramius commented on GitHub (Oct 9, 2018):
@cccdemon what's the result of
$this->_driver->connect()there?@cccdemon commented on GitHub (Oct 10, 2018):
@Ocramius
@cccdemon commented on GitHub (Oct 10, 2018):
In my tests i figured out that:
because of the "$flags"
$flags value = 2112 (duno what it means yet - but i will figure it out)
@cccdemon commented on GitHub (Oct 10, 2018):
Well.
this is a Patch, made by our Developers. The are using
'flags' => MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT,This is NOT working with google kubernetes Cloud SQL Proxy!!!
So this is not a Bug on Doctrine.
Issue Closed