Help | Spring Boot Service Crashing During Deployment

Anonymous
FREE

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)

Apr 16 22:05:46

investmentServices

2025-04-16T16:35:46.809Z INFO 1 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info:

Apr 16 22:05:46

investmentServices

Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']

Apr 16 22:05:46

investmentServices

Database driver: undefined/unknown
Database version: 9.3

Apr 16 22:05:46

investmentServices

Autocommit mode: undefined/unknown

Apr 16 22:05:46

investmentServices

Isolation level: undefined/unknown

Apr 16 22:05:46

investmentServices

Minimum pool size: undefined/unknown

Apr 16 22:05:46

investmentServices

Maximum pool size: undefined/unknown

Apr 16 22:06:06

investmentServices

Apr 16 22:06:06

investmentServices

. ____ _ __ _ _

Apr 16 22:06:06

investmentServices

/\\ / ___'_ __ _ ()_ __ __ _ \ \ \ \

Apr 16 22:06:06

investmentServices

( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \

Apr 16 22:06:06

investmentServices

\\/ ___)| |_)| | | | | || (_| | ) ) ) )

Apr 16 22:06:06

investmentServices

' |____| .__|_| |_|_| |_\__, | / / / /

Apr 16 22:06:06

investmentServices

=========|_|==============|___/=/_/_/_/

Apr 16 22:06:06

investmentServices

Apr 16 22:06:06

investmentServices

:: Spring Boot :: (v3.4.1)

Apr 16 22:06:06

investmentServices

Apr 16 22:06:06

investmentServices

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)

Apr 16 22:06:06

investmentServices

2025-04-16T16:35:58.180Z INFO 1 --- [ main] c.e.i.InvestmentServicesApplication : The following 1 profile is active: "prod"

Apr 16 22:06:06

investmentServices

2025-04-16T16:36:02.775Z INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.

Apr 16 22:06:06

investmentServices

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.

Apr 16 22:06:06

investmentServices

2025-04-16T16:36:06.600Z INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)

Apr 16 22:06:06

investmentServices

2025-04-16T16:36:06.799Z INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]

Apr 16 22:06:06

investmentServices

2025-04-16T16:36:06.800Z INFO 1 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.34]

Apr 16 22:06:07

investmentServices

2025-04-16T16:36:07.588Z INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext

Apr 16 22:06:07

investmentServices

2025-04-16T16:36:07.593Z INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 9071 ms

Apr 16 22:06:09

investmentServices

2025-04-16T16:36:09.764Z INFO 1 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]

Apr 16 22:06:10

investmentServices

2025-04-16T16:36:10.491Z INFO 1 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.6.4.Final

Apr 16 22:06:10

investmentServices

2025-04-16T16:36:10.873Z INFO 1 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled

2 Replies

Anonymous
FREE

3 months ago

Attached full Deploy Logs

Attachments


Anonymous
FREE

3 months ago

Deployment ID - 19b8529a-4bd3-4bc8-8549-567773809ccb


Help | Spring Boot Service Crashing During Deployment - Railway Help Station