Restart at new request
soyjuanmedina
FREEOP

5 months ago

When I deploy my app looks like it's ok, and the status is completed, but when I send a simple request to my app (curl --location 'forestplus-back-production.up.railway.app/ping') looks like it always restarted ( a lot of
. ____ _ __ _ _

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

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

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

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

=========|_|==============|___/=/_/_/_/
logs)
And the response is

{
    "status": "error",
    "code": 502,
    "message": "Application failed to respond",
    "request_id": "SyRnryi4R-O6h_dQrJsmnA"
}

Maybe is because is a free plan, but Is a small app and I still don't need other plan... or yes, but I want to be suer what is the problem

Solved$10 Bounty

Pinned Solution

noahd
EMPLOYEE

5 months ago

Yeah I do suggest upgrading to the Hobby plan to fix this issue.

If it ends up not working out and fixing the issue, you are able to refund it.

12 Replies

Railway
BOT

5 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Because it's Java, it seems like its OOMing causing it to crash.

Attachments


Status changed to Awaiting User Response Railway 5 months ago


soyjuanmedina
FREEOP

5 months ago

Thanks a lot angelo-railway but I would like to be sure if it is due to a lack of memory and if there is a way to solve it with the free plan and if it is not possible if by switching to a Hobby plan I would be sure that it would work, because despite the fact that it is a Java Spring-Boot application it is still very embryonic and should not have those problems.


Status changed to Awaiting Railway Response Railway 5 months ago


noahd
EMPLOYEE

5 months ago

From the logs that I've seen above it does look like you are encountering a resource issue.
With the Hobby plan you'll have 8g of ram which shouldnt run out of memory (OOM).

Java is frequently a heavy language to run so you should be just fine with the Hobby plan!
Happy to detail out what you get when upgrading or explain anything else.


noahd

From the logs that I've seen above it does look like you are encountering a resource issue. With the Hobby plan you'll have 8g of ram which shouldnt run out of memory (OOM). Java is frequently a heavy language to run so you should be just fine with the Hobby plan! Happy to detail out what you get when upgrading or explain anything else.

soyjuanmedina
FREEOP

5 months ago

Thanks @error, but I wan to be sure that my issue is because I have a free plan... I don't want to pay only to see that I still have the same problem, because I'm trying to deploy other versions that works ok before and now don't respond even to the ping endpoint


soyjuanmedina

Thanks @error, but I wan to be sure that my issue is because I have a free plan... I don't want to pay only to see that I still have the same problem, because I'm trying to deploy other versions that works ok before and now don't respond even to the ping endpoint

noahd
EMPLOYEE

5 months ago

If your project is open source or similar to something that already exists I'd be more then happy to run it on resources capped to the hobby plan and see.

Otherwise, if you can run it and ping the endpoint then grab the crash logs I'd love to look over them to confirm my suspicion.


soyjuanmedina
FREEOP

5 months ago

Ok, now respond ok
{ "requestId": "qcobXwJgSVyyPHm7w9P4nw", "timestamp": "2025-09-22T15:23:03.364075355Z", "method": "GET", "path": "/ping", "host": "forestplus-back-production.up.railway.app", "httpStatus": 200, "upstreamProto": "HTTP/1.1", "downstreamProto": "HTTP/1.1", "responseDetails": "", "totalDuration": 406, "upstreamAddress": "http://[fd12:2df5:febf:0:1000:23:d61a:c254]:8080", "clientUa": "PostmanRuntime/7.46.1", "upstreamRqDuration": 268, "txBytes": 4, "rxBytes": 332, "srcIp": "81.33.179.8", "edgeRegion": "europe-west4-drams3a", "upstreamErrors": "" }
but before I had this
{ "requestId": "TF0-3xm1T1eZPLGug4a9AQ", "timestamp": "2025-09-22T15:17:40.913896531Z", "method": "GET", "path": "/ping", "host": "forestplus-back-production.up.railway.app", "httpStatus": 499, "upstreamProto": "HTTP/1.1", "downstreamProto": "HTTP/2.0", "responseDetails": "client has closed the request before the server could send a response", "totalDuration": 3235, "upstreamAddress": "http://[fd12:2df5:febf:0:1000:23:d61a:c254]:8080", "clientUa": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36", "upstreamRqDuration": 618, "txBytes": 0, "rxBytes": 765, "srcIp": "50.124.182.146", "edgeRegion": "us-east4-eqdc4a", "upstreamErrors": "[{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":92,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":92,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":92,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":92,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":92,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":92,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":66,\"error\":\"client has closed the request before the server could send a response\"}]" }
and even before
{ "requestId": "b_e2ootJR4GtaoRwm3z_FQ", "timestamp": "2025-09-22T15:15:54.932828205Z", "method": "GET", "path": "/ping", "host": "forestplus-back-production.up.railway.app", "httpStatus": 502, "upstreamProto": "", "downstreamProto": "HTTP/1.1", "responseDetails": "Retried single replica", "totalDuration": 31310, "upstreamAddress": "", "clientUa": "PostmanRuntime/7.46.1", "upstreamRqDuration": 470, "txBytes": 109, "rxBytes": 332, "srcIp": "81.33.179.8", "edgeRegion": "europe-west4-drams3a", "upstreamErrors": "[{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":1,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":1,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":1,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":1,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-81a9084fdf2c\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"d3d02b70-f8dc-43d1-87ac-
...
I don't know if you are proving with hobby plan resources


noahd
EMPLOYEE

5 months ago

I dont have the ability to modify your deployments so I was suggesting deploying it myself for testing if you would like.

This does seem to me like an OOM as Angelo originally pointed out. I do suggest upgrading to the Hobby plan for more then 500mb of Ram available.
If you have any concerns about it not being sufficient and wish for a refund after I suggest reading these docs on billing!
https://docs.railway.com/reference/pricing/refunds
https://railway.com/legal/terms
https://docs.railway.com/reference/pricing/faqs#how-do-i-viewmanagecancel-my-subscription

I'm more then happy to answer any question you might have on this.


noahd

I dont have the ability to modify your deployments so I was suggesting deploying it myself for testing if you would like. This does seem to me like an OOM as Angelo originally pointed out. I do suggest upgrading to the Hobby plan for more then 500mb of Ram available. If you have any concerns about it not being sufficient and wish for a refund after I suggest reading these docs on billing!https://docs.railway.com/reference/pricing/refundshttps://railway.com/legal/termshttps://docs.railway.com/reference/pricing/faqs#how-do-i-viewmanagecancel-my-subscriptionI'm more then happy to answer any question you might have on this.

soyjuanmedina
FREEOP

5 months ago

Ok, then I try again to deploy my current versión and if crash again if you can I let you to deploy it in a hobby plan to be sure there is the problem. Thanks


soyjuanmedina
FREEOP

5 months ago

I deploy my current version and looks like starts ok but again the logs with many (I can't attach alls)

. ____ _ __ _ _

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

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

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

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

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

and the ping
{ "requestId": "L56CBkWMSNenFEy-m3z_FQ", "timestamp": "2025-09-22T16:19:44.077730324Z", "method": "GET", "path": "/ping", "host": "forestplus-back-production.up.railway.app", "httpStatus": 502, "upstreamProto": "", "downstreamProto": "HTTP/1.1", "responseDetails": "Retried single replica", "totalDuration": 31886, "upstreamAddress": "", "clientUa": "PostmanRuntime/7.46.1", "upstreamRqDuration": 1029, "txBytes": 109, "rxBytes": 332, "srcIp": "81.33.179.8", "edgeRegion": "europe-west4-drams3a", "upstreamErrors": "[{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":1,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":1,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":1022,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":1,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"519fa109-c601-45e0-819c-5488ddaf8992\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\....


noahd
EMPLOYEE

5 months ago

Yeah I do suggest upgrading to the Hobby plan to fix this issue.

If it ends up not working out and fixing the issue, you are able to refund it.


soyjuanmedina
FREEOP

5 months ago

Ok... I see finally crash but I don't see why in the logs... the lasts are
489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)

2025-09-22T16:24:15.350Z INFO 1 --- [forestplus] [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'

DATABASE_URL = jdbc:postgresql://aws-1-eu-central-1.pooler.supabase.com:5432/postgres?sslmode=require

DATABASE_USERNAME = postgres.refaaijwnnsultznopnc

DATABASE_PASSWORD = SET

2025-09-22T16:24:17.738Z WARN 1 --- [forestplus] [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning

2025-09-22T16:24:18.046Z INFO 1 --- [forestplus] [ main] eAuthenticationProviderManagerConfigurer : Global AuthenticationManager configured with AuthenticationProvider bean with name authenticationProvider

2025-09-22T16:24:18.047Z WARN 1 --- [forestplus] [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with an AuthenticationProvider bean. UserDetailsService beans will not be used by Spring Security for automatically configuring username/password login. Consider removing the AuthenticationProvider bean. Alternatively, consider using the UserDetailsService in a manually instantiated DaoAuthenticationProvider. If the current configuration is intentional, to turn off this warning, increase the logging level of 'org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer' to ERROR


Status changed to Solved noahd 5 months ago


Loading...