Deployment cuba 7 app to GCP

Hi guys!
I try to deploy my cuba (cubaVersion = 7.0.7) app into google cloud.
I use CloudSQL (postgres) and Appengine. Application deployed successfully with appengine plugin, uberJar (according to manual How to Run a CUBA App in Google App Engine Flexible - CUBA.Platform).
In Appengine dashboard I don’t see errors, but if I try to go http://my_project_id.appspot.com/app I see next:

Error: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.

What could be the error?

My configuration:

app.yaml:

runtime: java
runtime_config:
jdk: openjdk8
env: flex
manual_scaling:
instances: 1
readiness_check:
app_start_timeout_sec: 1500
env_variables:
JAVA_OPTS: “-Dapp.home=/opt/app_home”

jetty-env.conf:
config like in manual that I mentioned before.

jdbc:postgresql://google/<db_name>?useSSL=false&amp;cloudSqlInstance=<cloud_sql_instance_name>&amp;socketFactory=com.google.cloud.sql.postgres.SocketFactory&amp;user=&amp;password=

In build.gradle:

jdbc(‘com.google.cloud.sql:postgres-socket-factory:1.0.14’)
def postgres = ‘org.postgresql:postgresql:42.2.5’

task buildUberJar(type: CubaUberJarBuilding) {
coreJettyEnvPath = ‘modules/core/web/META-INF/jetty-env.xml’
logbackConfigurationFile = ‘etc/uber-jar-logback.xml’
singleJar = true
appProperties = [‘cuba.automaticDatabaseUpdate’: true]
}

Hi there,

I am having the same issue. Is there a fix for this? Sometimes I see the loading element as well.

Thanks

Hi,
Have you checked any log files for errors? It’s hard to advise anything based on single error message that means very little.

Hi @reuben.dsouza

Please check the updated manual here: GitHub - cuba-labs/gaef-sample: Google App Engine Flexible Deployment It should work for CUBA 7

1 Like