Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/387.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 应用程序在本地工作,但在谷歌云平台上不处于生产模式_Java_Mysql_Spring_Google Cloud Platform_Vaadin - Fatal编程技术网

Java 应用程序在本地工作,但在谷歌云平台上不处于生产模式

Java 应用程序在本地工作,但在谷歌云平台上不处于生产模式,java,mysql,spring,google-cloud-platform,vaadin,Java,Mysql,Spring,Google Cloud Platform,Vaadin,我正试图在谷歌云平台上部署我的应用程序。这个应用程序是使用SpringBoot+Vaadin+MySQL构建的。通常,当我以本地主机的生产模式加载我的应用程序(数据库在Google Cloud中)时,它是工作的,但如果我尝试在Google Cloud中部署,那么我的应用程序就是启动/停止-来自日志的信息 我试过使用Vaadin 14.6版(LTS)和最新的19.0.6版(beta版),但还是一样。在mvn vaadin创建jar之前,我上传了:构建前端和之后的mvn clean package-

我正试图在谷歌云平台上部署我的应用程序。这个应用程序是使用SpringBoot+Vaadin+MySQL构建的。通常,当我以本地主机的生产模式加载我的应用程序(数据库在Google Cloud中)时,它是工作的,但如果我尝试在Google Cloud中部署,那么我的应用程序就是启动/停止-来自日志的信息

我试过使用Vaadin 14.6版(LTS)和最新的19.0.6版(beta版),但还是一样。在mvn vaadin创建jar之前,我上传了:构建前端和之后的mvn clean package-p产品,但仍然没有解决

如果我尝试启动我的URL,那么我有500代码的消息

错误:服务器错误服务器遇到错误,无法运行 完成您的请求。请在30秒后重试

下面是我制作产品jar时从谷歌云和Maven获得的日志

差异我标记为“在谷歌云中重新运行”

首先来自谷歌云:

2021-05-15 18:36:44 default[20210515t202938]
2021-05-15 18:36:44 default[20210515t202938]    .   ____          _            __ _ _
2021-05-15 18:36:44 default[20210515t202938]   /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2021-05-15 18:36:44 default[20210515t202938]  ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2021-05-15 18:36:44 default[20210515t202938]   \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2021-05-15 18:36:44 default[20210515t202938]    '  |____| .__|_| |_|_| |_\__, | / / / /
2021-05-15 18:36:44 default[20210515t202938]   =========|_|==============|___/=/_/_/_/
2021-05-15 18:36:44 default[20210515t202938]   :: Spring Boot ::                (v2.4.5)
2021-05-15 18:36:44 default[20210515t202938]
2021-05-15 18:36:44 default[20210515t202938]  2021-05-15 18:36:44.989  INFO 10 --- [           main] p.orlowski.CarFuelCalculatorApplication  : Starting CarFuelCalculatorApplication v0.0.1-SNAPSHOT using Java 11.0.10 on localhost with PID 10 (/workspace/CarFuelCalculator-0.0.1-SNAPSHOT.jar started by www-data in /workspace)
2021-05-15 18:36:44 default[20210515t202938]  2021-05-15 18:36:44.993  INFO 10 --- [           main] p.orlowski.CarFuelCalculatorApplication  : The following profiles are active: mysql
2021-05-15 18:36:47 default[20210515t202938]  2021-05-15 18:36:47.375  INFO 10 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-05-15 18:36:47 default[20210515t202938]  2021-05-15 18:36:47.578  INFO 10 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 186 ms. Found 3 JPA repository interfaces.
2021-05-15 18:36:48 default[20210515t202938]  2021-05-15 18:36:48.889  INFO 10 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-05-15 18:36:48 default[20210515t202938]  2021-05-15 18:36:48.907  INFO 10 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-05-15 18:36:48 default[20210515t202938]  2021-05-15 18:36:48.907  INFO 10 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.45]
2021-05-15 18:36:49 default[20210515t202938]  2021-05-15 18:36:49.036  INFO 10 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-05-15 18:36:49 default[20210515t202938]  2021-05-15 18:36:49.036  INFO 10 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3886 ms
2021-05-15 18:36:49 default[20210515t202938]  2021-05-15 18:36:49.780  INFO 10 --- [           main] c.v.f.s.VaadinServletContextInitializer  : Search for VaadinAppShell took 80 ms
2021-05-15 18:36:50 default[20210515t202938]  2021-05-15 18:36:50.047  INFO 10 --- [           main] o.s.c.g.a.s.GcpCloudSqlAutoConfiguration : Default MYSQL JdbcUrl provider. Connecting to jdbc:mysql://google/car_fleet_management?socketFactory=com.google.cloud.sql.mysql.SocketFactory&cloudSqlInstance=car-fleet-management-313720:us-central1:car-fleet-management with driver com.mysql.cj.jdbc.Driver
2021-05-15 18:36:50 default[20210515t202938]  2021-05-15 18:36:50.048  WARN 10 --- [           main] o.s.c.g.a.s.GcpCloudSqlAutoConfiguration : Ignoring provided spring.datasource.url. Overwriting it based on the spring.cloud.gcp.sql.instance-connection-name.
2021-05-15 18:36:50 default[20210515t202938]  2021-05-15 18:36:50.449  INFO 10 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-05-15 18:36:50 default[20210515t202938]  2021-05-15 18:36:50.618  INFO 10 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.30.Final
2021-05-15 18:36:50 default[20210515t202938]  2021-05-15 18:36:50.946  INFO 10 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-05-15 18:36:51 default[20210515t202938]  2021-05-15 18:36:51.191  INFO 10 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2021-05-15 18:36:51 default[20210515t202938]  2021-05-15 18:36:51.360  INFO 10 --- [           main] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-fleet-management-313720:us-central1:car-fleet-management] via SSL socket.
2021-05-15 18:36:51 default[20210515t202938]  2021-05-15 18:36:51.360  INFO 10 --- [           main] c.g.cloud.sql.core.CoreSocketFactory     : First Cloud SQL connection, generating RSA key pair.
2021-05-15 18:36:54 default[20210515t202938]  2021-05-15 18:36:54.878  INFO 10 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2021-05-15 18:36:54 default[20210515t202938]  2021-05-15 18:36:54.952  INFO 10 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
2021-05-15 18:36:54 default[20210515t202938]  2021-05-15 18:36:54.981  INFO 10 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-fleet-management-313720:us-central1:car-fleet-management] via SSL socket.
2021-05-15 18:37:00 default[20210515t202938]
2021-05-15 18:37:00 default[20210515t202938]    .   ____          _            __ _ _
2021-05-15 18:37:00 default[20210515t202938]   /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2021-05-15 18:37:00 default[20210515t202938]  ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2021-05-15 18:37:00 default[20210515t202938]   \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2021-05-15 18:37:00 default[20210515t202938]    '  |____| .__|_| |_|_| |_\__, | / / / /
2021-05-15 18:37:00 default[20210515t202938]   =========|_|==============|___/=/_/_/_/
2021-05-15 18:37:00 default[20210515t202938]   :: Spring Boot ::                (v2.4.5)
2021-05-15 18:37:00 default[20210515t202938]
2021-05-15 18:37:00 default[20210515t202938]  2021-05-15 18:37:00.673  INFO 10 --- [           main] p.orlowski.CarFuelCalculatorApplication  : Starting CarFuelCalculatorApplication v0.0.1-SNAPSHOT using Java 11.0.10 on localhost with PID 10 (/workspace/CarFuelCalculator-0.0.1-SNAPSHOT.jar started by www-data in /workspace)
2021-05-15 18:37:00 default[20210515t202938]  2021-05-15 18:37:00.678  INFO 10 --- [           main] p.orlowski.CarFuelCalculatorApplication  : The following profiles are active: mysql
2021-05-15 18:37:03 default[20210515t202938]  2021-05-15 18:37:03.351  INFO 10 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-05-15 18:37:03 default[20210515t202938]  2021-05-15 18:37:03.569  INFO 10 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 195 ms. Found 3 JPA repository interfaces.
2021-05-15 18:37:05 default[20210515t202938]  2021-05-15 18:37:05.092  INFO 10 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-05-15 18:37:05 default[20210515t202938]  2021-05-15 18:37:05.137  INFO 10 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-05-15 18:37:05 default[20210515t202938]  2021-05-15 18:37:05.137  INFO 10 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.45]
2021-05-15 18:37:05 default[20210515t202938]  2021-05-15 18:37:05.324  INFO 10 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-05-15 18:37:05 default[20210515t202938]  2021-05-15 18:37:05.324  INFO 10 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4475 ms
2021-05-15 18:37:06 default[20210515t202938]  2021-05-15 18:37:06.095  INFO 10 --- [           main] c.v.f.s.VaadinServletContextInitializer  : Search for VaadinAppShell took 54 ms
2021-05-15 18:37:06 default[20210515t202938]  2021-05-15 18:37:06.398  INFO 10 --- [           main] o.s.c.g.a.s.GcpCloudSqlAutoConfiguration : Default MYSQL JdbcUrl provider. Connecting to jdbc:mysql://google/car_fleet_management?socketFactory=com.google.cloud.sql.mysql.SocketFactory&cloudSqlInstance=car-fleet-management-313720:us-central1:car-fleet-management with driver com.mysql.cj.jdbc.Driver
2021-05-15 18:37:06 default[20210515t202938]  2021-05-15 18:37:06.399  WARN 10 --- [           main] o.s.c.g.a.s.GcpCloudSqlAutoConfiguration : Ignoring provided spring.datasource.url. Overwriting it based on the spring.cloud.gcp.sql.instance-connection-name.
2021-05-15 18:37:06 default[20210515t202938]  2021-05-15 18:37:06.871  INFO 10 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-05-15 18:37:07 default[20210515t202938]  2021-05-15 18:37:07.101  INFO 10 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.30.Final
2021-05-15 18:37:07 default[20210515t202938]  2021-05-15 18:37:07.424  INFO 10 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-05-15 18:37:07 default[20210515t202938]  2021-05-15 18:37:07.690  INFO 10 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2021-05-15 18:37:07 default[20210515t202938]  2021-05-15 18:37:07.941  INFO 10 --- [           main] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-fleet-management-313720:us-central1:car-fleet-management] via SSL socket.
2021-05-15 18:37:07 default[20210515t202938]  2021-05-15 18:37:07.941  INFO 10 --- [           main] c.g.cloud.sql.core.CoreSocketFactory     : First Cloud SQL connection, generating RSA key pair.
2021-05-15 18:37:55 default[20210515t202938]
2021-05-15 18:37:55 default[20210515t202938]    .   ____          _            __ _ _
2021-05-15 18:37:55 default[20210515t202938]   /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2021-05-15 18:37:55 default[20210515t202938]  ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2021-05-15 18:37:55 default[20210515t202938]   \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2021-05-15 18:37:55 default[20210515t202938]    '  |____| .__|_| |_|_| |_\__, | / / / /
2021-05-15 18:37:55 default[20210515t202938]   =========|_|==============|___/=/_/_/_/
2021-05-15 18:37:55 default[20210515t202938]   :: Spring Boot ::                (v2.4.5)
2021-05-15 18:37:55 default[20210515t202938]
2021-05-15 18:37:55 default[20210515t202938]  2021-05-15 18:37:55.389  INFO 10 --- [           main] p.orlowski.CarFuelCalculatorApplication  : Starting CarFuelCalculatorApplication v0.0.1-SNAPSHOT using Java 11.0.10 on localhost with PID 10 (/workspace/CarFuelCalculator-0.0.1-SNAPSHOT.jar started by www-data in /workspace)
2021-05-15 18:37:55 default[20210515t202938]  2021-05-15 18:37:55.394  INFO 10 --- [           main] p.orlowski.CarFuelCalculatorApplication  : The following profiles are active: mysql
2021-05-15 18:37:57 default[20210515t202938]  2021-05-15 18:37:57.876  INFO 10 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-05-15 18:37:58 default[20210515t202938]  2021-05-15 18:37:58.144  INFO 10 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 251 ms. Found 3 JPA repository interfaces.
2021-05-15 18:37:59 default[20210515t202938]  2021-05-15 18:37:59.675  INFO 10 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-05-15 18:37:59 default[20210515t202938]  2021-05-15 18:37:59.703  INFO 10 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-05-15 18:37:59 default[20210515t202938]  2021-05-15 18:37:59.708  INFO 10 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.45]
2021-05-15 18:37:59 default[20210515t202938]  2021-05-15 18:37:59.885  INFO 10 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-05-15 18:37:59 default[20210515t202938]  2021-05-15 18:37:59.885  INFO 10 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4347 ms
2021-05-15 18:38:00 default[20210515t202938]  2021-05-15 18:38:00.849  INFO 10 --- [           main] c.v.f.s.VaadinServletContextInitializer  : Search for VaadinAppShell took 97 ms
2021-05-15 18:38:01 default[20210515t202938]  2021-05-15 18:38:01.098  INFO 10 --- [           main] o.s.c.g.a.s.GcpCloudSqlAutoConfiguration : Default MYSQL JdbcUrl provider. Connecting to jdbc:mysql://google/car_fleet_management?socketFactory=com.google.cloud.sql.mysql.SocketFactory&cloudSqlInstance=car-fleet-management-313720:us-central1:car-fleet-management with driver com.mysql.cj.jdbc.Driver
2021-05-15 18:38:01 default[20210515t202938]  2021-05-15 18:38:01.099  WARN 10 --- [           main] o.s.c.g.a.s.GcpCloudSqlAutoConfiguration : Ignoring provided spring.datasource.url. Overwriting it based on the spring.cloud.gcp.sql.instance-connection-name.
2021-05-15 18:38:01 default[20210515t202938]  2021-05-15 18:38:01.591  INFO 10 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-05-15 18:38:01 default[20210515t202938]  2021-05-15 18:38:01.764  INFO 10 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.30.Final
2021-05-15 18:38:02 default[20210515t202938]  2021-05-15 18:38:02.103  INFO 10 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-05-15 18:38:02 default[20210515t202938]  2021-05-15 18:38:02.352  INFO 10 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2021-05-15 18:38:02 default[20210515t202938]  2021-05-15 18:38:02.506  INFO 10 --- [           main] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-fleet-management-313720:us-central1:car-fleet-management] via SSL socket.
2021-05-15 18:38:02 default[20210515t202938]  2021-05-15 18:38:02.506  INFO 10 --- [           main] c.g.cloud.sql.core.CoreSocketFactory     : First Cloud SQL connection, generating RSA key pair.
2021-05-15 18:38:05 default[20210515t202938]  2021-05-15 18:38:05.916  INFO 10 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2021-05-15 18:38:05 default[20210515t202938]  2021-05-15 18:38:05.987  INFO 10 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
2021-05-15 18:38:06 default[20210515t202938]  2021-05-15 18:38:06.019  INFO 10 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-fleet-management-313720:us-central1:car-fleet-management] via SSL socket.
2021-05-15 18:38:07 default[20210515t202938]  2021-05-15 18:38:07.124  INFO 10 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-fleet-management-313720:us-central1:car-fleet-management] via SSL socket.
本地:

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.4.5)

2021-05-16 09:07:55.740  INFO 12424 --- [           main] p.o.CarFuelCalculatorApplicationTests    : Starting CarFuelCalculatorApplicationTests using Java 1.8.0_29
1 on DESKTOP-35TA80Q with PID 12424 (started by S.Orlowski in L:\IdeaProjects\java_car_feet_management)
2021-05-16 09:07:55.744  INFO 12424 --- [           main] p.o.CarFuelCalculatorApplicationTests    : The following profiles are active: mysql
2021-05-16 09:08:00.252  INFO 12424 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-05-16 09:08:00.581  INFO 12424 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 296 ms. Found 3 JP
A repository interfaces.
2021-05-16 09:08:02.961  INFO 12424 --- [           main] o.s.c.g.a.s.GcpCloudSqlAutoConfiguration : Default MYSQL JdbcUrl provider. Connecting to jdbc:mysql://goo
gle/car_fleet_management?socketFactory=com.google.cloud.sql.mysql.SocketFactory&cloudSqlInstance=car-management1908:europe-central2:car-fleet-management with drive
r com.mysql.cj.jdbc.Driver
2021-05-16 09:08:02.970  WARN 12424 --- [           main] o.s.c.g.a.s.GcpCloudSqlAutoConfiguration : Ignoring provided spring.datasource.url. Overwriting it based
on the spring.cloud.gcp.sql.instance-connection-name.
2021-05-16 09:08:03.931  INFO 12424 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-05-16 09:08:04.261  INFO 12424 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.30.Final
2021-05-16 09:08:05.002  INFO 12424 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-05-16 09:08:06.004  INFO 12424 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2021-05-16 09:08:06.483  INFO 12424 --- [           main] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
2021-05-16 09:08:06.483  INFO 12424 --- [           main] c.g.cloud.sql.core.CoreSocketFactory     : First Cloud SQL connection, generating RSA key pair.
2021-05-16 09:08:06.710  WARN 12424 --- [           main] c.g.a.oauth2.DefaultCredentialsProvider  : Your application has authenticated using end user credentials
from Google Cloud SDK. We recommend that most server applications use service accounts instead. If your application continues to use end user credentials from Clou
d SDK, you might receive a "quota exceeded" or "API not enabled" error. For more information about service accounts, see https://cloud.google.com/docs/authenticati
on/.
2021-05-16 09:08:10.179  INFO 12424 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2021-05-16 09:08:10.283  INFO 12424 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
2021-05-16 09:08:10.379  INFO 12424 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect
2021-05-16 09:08:10.466  INFO 12424 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
2021-05-16 09:08:10.816  INFO 12424 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
2021-05-16 09:08:10.988  INFO 12424 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
2021-05-16 09:08:11.160  INFO 12424 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
2021-05-16 09:08:11.341  INFO 12424 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
2021-05-16 09:08:11.526  INFO 12424 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
2021-05-16 09:08:11.750  INFO 12424 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
2021-05-16 09:08:11.929  INFO 12424 --- [onnection adder] c.g.cloud.sql.core.CoreSocketFactory     : Connecting to Cloud SQL instance [car-management1908:europe-ce
ntral2:car-fleet-management] via SSL socket.
======================HERE RE RUN IN GOOGLE CLOUD===================================
2021-05-16 09:08:18.484  INFO 12424 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.en
gine.transaction.jta.platform.internal.NoJtaPlatform]
2021-05-16 09:08:18.523  INFO 12424 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'def
ault'
2021-05-16 09:08:19.665  WARN 12424 --- [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, data
base queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2021-05-16 09:08:22.587  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/VAADIN/**'] with []
2021-05-16 09:08:22.588  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/favicon.ico'] with []
2021-05-16 09:08:22.588  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/robots.txt'] with []
2021-05-16 09:08:22.588  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/manifest.webmanifest'] with []
2021-05-16 09:08:22.589  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/sw.js'] with []
2021-05-16 09:08:22.591  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/offline.html'] with []
2021-05-16 09:08:22.592  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/icons/**'] with []
2021-05-16 09:08:22.592  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/images/**'] with []
2021-05-16 09:08:22.592  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/styles/**'] with []
2021-05-16 09:08:22.593  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Ant [pattern='/h2-console/**'] with []
2021-05-16 09:08:23.318  INFO 12424 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure any request with [org.springframework.security.web
.context.request.async.WebAsyncManagerIntegrationFilter@41e7a544, org.springframework.security.web.context.SecurityContextPersistenceFilter@7c682e26, org.springfra
mework.security.web.header.HeaderWriterFilter@3ec7ad61, org.springframework.security.web.authentication.logout.LogoutFilter@55682482, org.springframework.security.
web.authentication.UsernamePasswordAuthenticationFilter@3e2772a9, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@340fc1aa, org.springframewo
rk.security.web.servletapi.SecurityContextHolderAwareRequestFilter@275902e1, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@3b66ac74
, org.springframework.security.web.session.SessionManagementFilter@7598d675, org.springframework.security.web.access.ExceptionTranslationFilter@3e2c8ef, org.spring
framework.security.web.access.intercept.FilterSecurityInterceptor@1d06801f]
2021-05-16 09:08:26.388  INFO 12424 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2021-05-16 09:08:27.463  WARN 12424 --- [           main] o.s.b.a.m.MustacheAutoConfiguration      : Cannot find template location: classpath:/templates/ (please a
dd some templates, check your Mustache configuration, or set spring.mustache.check-template-location=false)
2021-05-16 09:08:27.901  INFO 12424 --- [           main] o.s.c.g.core.DefaultCredentialsProvider  : Default credentials provider for user 764086051850-6qr4p6gpi6h
n506pt8ejuq83di341hur.apps.googleusercontent.com
2021-05-16 09:08:27.902  INFO 12424 --- [           main] o.s.c.g.core.DefaultCredentialsProvider  : Scopes in use by default credentials: [https://www.googleapis.
com/auth/pubsub, https://www.googleapis.com/auth/spanner.admin, https://www.googleapis.com/auth/spanner.data, https://www.googleapis.com/auth/datastore, https://ww
w.googleapis.com/auth/sqlservice.admin, https://www.googleapis.com/auth/devstorage.read_only, https://www.googleapis.com/auth/devstorage.read_write, https://www.go
ogleapis.com/auth/cloudruntimeconfig, https://www.googleapis.com/auth/trace.append, https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth
/cloud-vision, https://www.googleapis.com/auth/bigquery, https://www.googleapis.com/auth/monitoring.write]
2021-05-16 09:08:28.122  INFO 12424 --- [           main] o.s.c.g.a.c.GcpContextAutoConfiguration  : The default project ID is car-management1908
2021-05-16 09:08:29.713  INFO 12424 --- [           main] p.o.CarFuelCalculatorApplicationTests    : Started CarFuelCalculatorApplicationTests in 35.43 seconds (JV
M running for 40.335)

正如我在前面的问题中提到的,日志没有给出任何线索,只是看起来您的应用程序被终止了。也许你需要检查一下你是否给你的pod分配了足够的内存。另一方面,在堆栈溢出时,删除和重新发布问题是不受欢迎的,如果您做得太多,可能会触发自动问题禁令。在将来,我建议用其他信息更新您的问题。正如我在前面的问题(scnr)中提到的,您是否尝试过将日志记录升级到调试?google是否期望某些健康点在前10秒内对“开始”级别的消息作出反应?我去消息2021-05-16T13:22:54.046801Z在总共处理0个请求后,超过了256 MB的硬盘内存限制,达到272 MB。考虑在App.YAML中设置更大的实例类。如何编辑app.yaml?我试图通过“gcloud app deploy app.yaml”来部署它,但我解决了错误。我更改了app.yaml中的实例类和类型F4,因为我没有足够的内存作为F1,很可能我的错误是没有部署/target文件夹中的所有内容,而只部署jar文件。回答您自己的问题就可以了。请随意写下您在项目中为使其工作而更改的内容,以及帮助您调试的内容。