Problem of Free Plan?
soyjuanmedina
FREEOP

2 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",
"requestid": "SyRnryi4R-O6hdQrJsmnA"
}
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

0 Replies

dev
MODERATOR

2 months ago

Does this happen for all requests or only the first request? Free plan requires app sleeping / serverless to be enabled which makes your app sleep after inactivity, the first request may time out as the app wakes up

If this happens for all requests then can you check that your domain is binded to the same port your app's server is listening on? You can do that by going to your service settings, editing the domain, and then checking the port.

Generally Railway will automatically bind the port but I find that it doesn't always work for me.


soyjuanmedina
FREEOP

2 months ago

Thanks a lot @Fragly … the problems happens for all requests…. the port is 8080… before this deploy I deploy other version and I have a Out of Memory issue, but with some settings I achived works ok…. then I add some others endpoints to my app and deploy it again and then I have this issue, even for my simple ping endpoint…. I deploy again the first version and I can again do ping, but again, when I deploy my last version I have the problem 🙁


dev
MODERATOR

2 months ago

interesting <:Thinking:1360710341239242762>


dev
MODERATOR

2 months ago

i wonder if its silently crashing due to memory constraints


soyjuanmedina
FREEOP

2 months ago

Now the deploy is completed
but as you can see the ping request is not achived

1419949141655683000
1419949142062399488


dev
MODERATOR

2 months ago

so its listening on 8080 both on the domain within service settings and within the application?


soyjuanmedina
FREEOP

2 months ago

Yes, I have in my application.propierties
server.port=${PORT:8080}
server.address=0.0.0.0


soyjuanmedina
FREEOP

2 months ago

I don't undestand… I remove
server.address=0.0.0.0
And now is working… have sense?


dev
MODERATOR

2 months ago

yea that is very weird


soyjuanmedina
FREEOP

2 months ago

Thats why I still don't want to pay… because seems is not problem of the plan and if I pay I have the same issue 🙁


noahd
EMPLOYEE

2 months ago

Can i get any info on the type of app?


soyjuanmedina
FREEOP

2 months ago

It's a simple app in Spring Boot… still don't have many endpoints


soyjuanmedina
FREEOP

2 months ago

If you say me what do you need I try to give you all the information you need


brody
EMPLOYEE

2 months ago

Let me cut down on all the back and forth, you are running out of memory, you will need to upgrade to a paid plan.

1420069851644297500


dev
MODERATOR

2 months ago

called it <:gemini_sunglasses:1235005311354671226>


brody
EMPLOYEE

2 months ago

For future reference, please have the user check the Activity tab.


dev
MODERATOR

2 months ago

thanks brody, will do


soyjuanmedina
FREEOP

2 months ago

Thanks a lot @Brody , but I still don't understand why crash before and now is working without problem


dev
MODERATOR

2 months ago

!s


Status changed to Solved dev 2 months ago


dev
MODERATOR

2 months ago

whoops, forgot to answer, best guess would be that it was running out of memory but isnt anymore for some reason, in any case upgrading to hobby plan will solve this for you since it has a higher memory limit


Loading...