3 months ago
Hi All,
I am deploying a Spring Boot REST API on Railway. During deployment, the service crashes midway without any error and keeps restarting. The service is working perfectly fine in the local environment.
Any assistance regarding this issue would be greatly appreciated.
Please find the last few lines of the deployment log from Railway below -
2025-04-16T16:35:46.777Z WARN 1 --- [ main] org.hibernate.orm.deprecation : HHH90000025: MySQLDialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2025-04-16T16:35:46.809Z INFO 1 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info:
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
Database driver: undefined/unknown
Database version: 9.3
Autocommit mode: undefined/unknown
Isolation level: undefined/unknown
Minimum pool size: undefined/unknown
Maximum pool size: undefined/unknown
. ____ _ __ _ _
/\\ / ___'_ __ _ ()_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.4.1)
2025-04-16T16:35:58.170Z INFO 1 --- [ main] c.e.i.InvestmentServicesApplication : Starting InvestmentServicesApplication v0.0.1-SNAPSHOT using Java 17.0.7 with PID 1 (/app/target/investmentServices-0.0.1-SNAPSHOT.jar started by root in /app)
2025-04-16T16:35:58.180Z INFO 1 --- [ main] c.e.i.InvestmentServicesApplication : The following 1 profile is active: "prod"
2025-04-16T16:36:02.775Z INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2025-04-16T16:36:03.112Z INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 310 ms. Found 3 JPA repository interfaces.
2025-04-16T16:36:06.600Z INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
2025-04-16T16:36:06.799Z INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2025-04-16T16:36:06.800Z INFO 1 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.34]
2025-04-16T16:36:07.588Z INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2025-04-16T16:36:07.593Z INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 9071 ms
2025-04-16T16:36:09.764Z INFO 1 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2025-04-16T16:36:10.491Z INFO 1 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.6.4.Final
2025-04-16T16:36:10.873Z INFO 1 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled
2 Replies
3 months ago
Deployment ID - 19b8529a-4bd3-4bc8-8549-567773809ccb