beta_settings: │
cloud_sql_instances: <project-id>:<region-id>:<database-id>
This led to the /cloudsql directory existing, but the contents didn't match what I expected, I expected /cloudsql/<app-id>:<database-id>, but it had <region-id> in the middle.
After all that, it still failed to connect, giving me errors that the remote mysql had gone away (even though the app was definitely in the authorized list).
I ended up connecting via IP as a workaround, but I'd like to get this working with the socket. Is Cloud SQL supported in the Flexible Environment?
Warning: mysqli::mysqli(): MySQL server has gone away in /var/www/html/test.php on line 2
Warning: mysqli::mysqli(): Error while reading greeting packet. PID=222 in /var/www/html/test.php on line 2
Warning: mysqli::mysqli(): (HY000/2006): MySQL server has gone away in /var/www/html/test.php on line 2
Traceback (most recent call last):File "/env/lib/python3.4/site-packages/sqlalchemy/engine/base.py", line 2074, in _wrap_pool_connect
return fn()
File "/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 376, in connect
return _ConnectionFairy._checkout(self)
File "/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 713, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 480, in checkout
rec = pool._do_get()
File "/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 1060, in _do_get
self._dec_overflow()
File "/env/lib/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/env/lib/python3.4/site-packages/sqlalchemy/util/compat.py", line 184, in reraise
raise value
File "/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 1057, in _do_get
return self._create_connection()
File "/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 323, in _create_connection
return _ConnectionRecord(self)
File "/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 449, in __init__
self.connection = self.__connect()
File "/env/lib/python3.4/site-packages/sqlalchemy/pool.py", line 607, in __connect
connection = self.__pool._invoke_creator(self)
File "/env/lib/python3.4/site-packages/sqlalchemy/engine/strategies.py", line 97, in connect
return dialect.connect(*cargs, **cparams)
File "/env/lib/python3.4/site-packages/sqlalchemy/engine/default.py", line 385, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/env/lib/python3.4/site-packages/pymysql/__init__.py", line 88, in Connect
return Connection(*args, **kwargs)
File "/env/lib/python3.4/site-packages/pymysql/connections.py", line 679, in __init__
self.connect()
File "/env/lib/python3.4/site-packages/pymysql/connections.py", line 890, in connect
self._get_server_information()
File "/env/lib/python3.4/site-packages/pymysql/connections.py", line 1190, in _get_server_information
packet = self._read_packet()
File "/env/lib/python3.4/site-packages/pymysql/connections.py", line 946, in _read_packet
packet_header = self._read_bytes(4)
File "/env/lib/python3.4/site-packages/pymysql/connections.py", line 982, in _read_bytes
2013, "Lost connection to MySQL server during query")
pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')
import main
main.db.create_all()
Sorry, I should have been clearer- I don't expect it to error of things are working correctly. The fact that it does error is the bug.
--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/4V7k7giW8zU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/050c28f0-3351-417d-b589-a56943e3d266%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sorry, I should have been clearer- I don't expect it to error of things are working correctly. The fact that it does error is the bug.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
| beta_settings: | |
| cloud_sql_instances: PROJECT:us-central1:INSTANCE |
Sorry, I should have been clearer- I don't expect it to error of things are working correctly. The fact that it does error is the bug.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/050c28f0-3351-417d-b589-a56943e3d266%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/31522fdf-4ef9-412d-8019-adbaf416619b%40googlegroups.com.
ERROR: (gcloud.preview.app.deploy) Error Response: [13] Invalid Cloud SQL name: [PROJECT]:[INSTANCE]
Hey Prashant,
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Warning: mysqli::mysqli(): MySQL server has gone away in /var/www/html/test.php on line 2
Warning: mysqli::mysqli(): Error while reading greeting packet. PID=222 in /var/www/html/test.php on line 2
Warning: mysqli::mysqli(): (HY000/2006): MySQL server has gone away in /var/www/html/test.php on line 2