google-cloud-sql

Error with Maven GAE Plugin + Google Cloud SQL

我是研究僧i 提交于 2019-12-10 11:19:15
问题 Here's my plugin configuration: <plugin> <groupId>net.kindleit</groupId> <artifactId>maven-gae-plugin</artifactId> <version>0.7.3</version> <dependencies> <dependency> <groupId>net.kindleit</groupId> <artifactId>gae-runtime</artifactId> <version>${gae.version}</version> <type>pom</type> </dependency> </dependencies> <configuration> <jvmFlags> <jvmFlag>-Drdbms.server=local</jvmFlag> <jvmFlag>-Drdbms.driver=com.mysql.jdbc.Driver</jvmFlag> <jvmFlag>-Drdbms.url=jdbc:mysql://localhost:3306/prova

/_ah/queue/__deferred__ in App Engine Logs

断了今生、忘了曾经 提交于 2019-12-10 10:35:20
问题 I have an App Engine application which uses Google Cloud SQL, and from a page in my application I am doing some database operation; whenever this page is accessed, it is not able to perform all database operations. When I go to the console, all I see is /_ah/queue/__deferred__ . I am able to run the application without any issues on localhost so code has no errors, however, there is an issue with the Cloud SQL after deploying it. Note : I have not used queues anywhere in my code. What is the

Could not create socket factory 'com.google.cloud.sql.mysql.SocketFactory;'

你离开我真会死。 提交于 2019-12-10 10:14:02
问题 I can't seem to get this to work .. I am using Google Flexible Environment and want to connect to my Second Generation Cloud SQL database. I am currently getting this exception: [main] ERROR com.mahlzeit.server.BootstrappingServerConfig - Error trying to migrate SQL scripts .. org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:56) at org.flywaydb.core.Flyway.execute(Flyway.java

cannot fetch token error when using cloudsql-proxy with GKE

狂风中的少年 提交于 2019-12-10 09:31:38
问题 I am using GKE with istio add-on enabled. Myapp somehow gives 503 errors using when using websocket. I am starting to think that maybe the websocket is working but the database connection is not and that causes 503's, as the cloudsql-proxy logs give errors: $ kubectl logs myapp-54d6696fb4-bmp5m cloudsql-proxy 2019/01/04 21:56:47 using credential file for authentication; email=proxy-user@myproject.iam.gserviceaccount.com 2019/01/04 21:56:47 Listening on 127.0.0.1:5432 for myproject:europe

no connection pool with primary found

若如初见. 提交于 2019-12-10 03:36:41
问题 I am using Rails and am experiencing a connection pool error very randomly and it does not target any single endpoint specifically. I can hit endpoints about 70% of the time without getting this error. The database is PostgreSQL running on Google Cloud. Here's the main stuff of the error I'm getting: #<ActiveRecord::ConnectionNotEstablished: ActiveRecord::ConnectionNotEstablished> /usr/local/bundle/gems/activerecord-5.1.5/lib/active_record/connection_handling.rb:112:in `connection_pool'

How to fix “An Unknown Error Occurred” when creating multiple Google Cloud SQL instances with private IP simultaneously?

无人久伴 提交于 2019-12-09 22:23:37
问题 Our cloud backend setup contains 5 Cloud SQL for Postgres instances. We manage our infrastructure using Terraform. We are using connecting them from GKE using a public IP and the Cloud SQL container. In order to simplify our setup we wish to get rid of the proxy containers by moving to a private IP. I tried following the Terraform guide. While a creating a single instance works fine, trying to create 5 instances simultaneously ends in 4 failed ones and one successful: The error which appears

Run node.js database migrations on Google Cloud SQL during Google Cloud Build

孤人 提交于 2019-12-09 13:05:01
问题 I would like to run database migrations written in node.js during the Cloud Build process. Currently, the database migration command is being executed but it seems that the Cloud Build process does not have access to connect to Cloud SQL via an IP address with username/password. 回答1: In the case with Cloud SQL and Node.js it would look something like this: steps: # Install Node.js dependencies - id: yarn-install name: node:dubnium entrypoint: yarn waitFor: ['-'] # Install CLoud SQL proxy - id

App engine fails to connect to Google cloud sql

。_饼干妹妹 提交于 2019-12-09 10:02:01
问题 My Google app engine application fails to connect to Google cloud sql instance with this error: 'PDOException' with message 'SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. I've checked the documentation and followed instructions closely. I added the app as an authorised application and set the root password using the cloud console. I also gave the instace an ip address and can connect to it from Workbench on the local development machine.

Google App Engine and Cloud SQL: Lost connection to MySQL server at 'reading initial communication packet'

狂风中的少年 提交于 2019-12-09 09:30:48
问题 I have a Django app on Google App Engine app which is connected to a Google Cloud SQL, using the App Engine authentication. Most of the time everything works fine, but from time to time the following exception is raised: OperationalError: (2013, "Lost connection to MySQL server at 'reading initial communication packet', system error: 38") According to the docs, this error is returned when: If Google Cloud SQL rejects the connection, for example, because the IP address your client is

My google app instances does not seem to be on correct region

只谈情不闲聊 提交于 2019-12-09 01:09:13
问题 I have just created one google app engine application and one 2nd Generation MySQL instance in eu-west2 region. In GCP Console they both seems to be in eu-west2 region. However when I try to gelocate my ip's they seem to be in somewhere in US. What should I do to use GCP in eu-west2 region? my GCP instances: their locations: 回答1: Google has an extensive world wide network. What you are seeing is us routing you to Google's closest Point of Presence (POP), which from that point on you're on a