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&cloudSqlInstance=<cloud_sql_instance_name>&socketFactory=com.google.cloud.sql.postgres.SocketFactory&user=&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]
}