10 months ago
Experiencing 504 timeouts in railway after metal region migration
Either fix ur metal region issue, or give old regions
55 Replies
10 months ago
Hello,
I noticed your deployment state is COMPLETED This means your application has exited.
This is an issue with your application, Railway and the Metal infrastructure would not cause your application to exit, that would be purely an application-level issue.
Best,
Brody
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
How come , when the region was non metal it worked , other non railway environments also work , only when raiway started to migrate to metal region , the application is causing issue with 504?
How come that is an application issue
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
I previously raised concerns ealrlier as well 1 month back , that time also metal region was causing issue, when I changed manually to non metal region , it wrked, now non metal option is completely removed from ur system ,
10 months ago
SO we need solution from ur end asap
10 months ago
Problem is I am facing 504 for many apis , that means timeout is happening
10 months ago
Hello,
There is no scenario where we would return a 504 status code on your behalf, that would be something your application is returning, and thus outside of the scope of what we can help with.
Best,
Brody
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
You give us non metal region , that is fine for us
That works fine for us
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
I'm sorry but we cannot accommodate that request, we are well underway of migrating all workloads off of non-Metal, and we must press forward on that front given that this is not an issue with Metal.
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
See my previos tickets, where I have already raised concern 1 month back , that was also same issue,
where u were doing auto deployment to metal , and it stated slowdown
That time , i used to manually turn to non metal and application used to work without slowness
Now u cmpletely removed that option
SO this means its a issue with metal only which u have to debug with ur development team?
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
Obviously , if application works in other environments , its not an application issue
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
yes
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
You need to have all related services within the same project and then you need to use the private network.
Again, this is an issue with your application, specifically how you have setup your application on Railway.
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
SO , MY frontend rilway communicates to backend railway
Backed railway communicates to db railway
from the point of backend railway to railway db , I am using public network , since 3 years
If this url is issue,my backend applicaton is thriwoing errors when I use pricate url in my code ase for railway
So is there a ny documentation hwo to use private url in backen project to communicate to db for railway
Status changed to Awaiting Railway Response Railway • 11 months ago
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
So all are in one same project, 4 services in one project already
Status changed to Awaiting Railway Response Railway • 11 months ago
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
gray-weather
trustworthy nature
long smell
loving endurance
All 4 part of a single project
Status changed to Awaiting Railway Response Railway • 11 months ago
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
Please see our basics doc to read up on the terminology -
brody
Please see our basics doc to read up on the terminology -https://docs.railway.com/overview/the-basics
10 months ago
So , in railway , every project has different build process
Like java project , it require s maven
Frontend , it requires node
DB , its a storage
Railway doesnt provide option to have all 3 as a single entity
If so , pls provide how to have 3 different techstackas a single project in railway
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
Can u also pls xplain how it was working in non metal region?
10 months ago
I think you are mixing up your terminology, Please review our docs -
https://docs.railway.com/overview/the-basics
https://docs.railway.com/overview/best-practices
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
Can u also pls xplain how it was working in non metal region?
Can u explain this?
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
I am unable to understand if application worked in non metal , now if it doent work inmetal , how come its an application issue
3 years it worked without any issue
10 months ago
We are paid customers , so we expect some support from development team of railway when there are infrastructure issues and migrations at ur end which is causing issue
If not , what the use of paying for these services?
10 months ago
You are using the public network for connections when you need to use the private network going forward.
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
Existing database properties
spring.datasource.url=jdbc:mysql://root:sWXgNlVypErvuZYOtbigtadElIoTIhGj@junction.proxy.rlwy.net:33691/railway
spring.datasource.username=root
spring.datasource.password=******
What I changed to
spring.datasource.url=jdbc:mysql://mysql.railway.internal:3306/railway
spring.datasource.username=root
spring.datasource.password=******
But I am getting connection refused issue
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
This I am putting in backend code
10 months ago
what shuld be exact config for private url?
10 months ago
Let's take this one step at a time.
You need to have the database and all other accompanying services in the same project, you currently do not.
Please let me know when you have done that.
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
SO lets say I want a sngl project
What option should I select while creating that project
Railway asks me to select github repo
And project has 1 backend repo which is independent, one frontend repo which is independent
also one db storage which is independent
So repos itslef are independent , and architecture cant be combined
Status changed to Awaiting Railway Response Railway • 11 months ago
shreejith
SO lets say I want a sngl projectWhat option should I select while creating that projectRailway asks me to select github repoAnd project has 1 backend repo which is independent, one frontend repo which is independentalso one db storage which is independentSo repos itslef are independent , and architecture cant be combined
10 months ago
In that case, how to craete a project in railway , combining 3 repo into a single one
10 months ago
At a time , whatver service gets created gets mapped to one single github repo, and I have 3 repos
10 months ago
Please read:
We are paid customers , so we expect some support from development team of railway when there are infrastructure issues and migrations at ur end which is causing issue
You're on the Hobby plan, which does not include support from Railway. You're eligible for community support only.
All of your questions can be answered by reading through our documentation, which I encourage you to do
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
So now all services are in 1 project , and also private urls used
Now check what is causing the issue of 504 Gateway Timeout
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
That's an error from your application, not the platform. We cannot help you with application errors.
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
I mean how come u people give so funny answers
How come the same application works in other enviornments apart from railway?
Also how did application work for 3 years in non metal
These are questions still unanswered
How come a applivation give timeout error
The status code itslef mentions its a gateway timeout
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
Had it been application error, status code would be 500 internal server error, 401 unauthorized, 400 bad request etc
10 months ago
If u see my previous thread , I already raised similar concern 1 month back where I faced same issue with metal , the momemnt I switched to non metal it worked fine
That time also , u guys werent able to figur out the issue
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
yes
https://knorr-bremse-trainingfrontend-prod.up.railway.app/login
Here
after entering the valid application credentials we are getting unauthorized
Status changed to Awaiting Railway Response Railway • 11 months ago
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
I mean gateway timeout 504, not unauthoized*
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
Unauthorized I mean I am not able to enter inside the application because of 504 gateway timeout
Not 401 unathourized
10 months ago
I believe metal is not allowing processing large chunk of data
That's why apis where we have some considerable amount of data in db is giving timeouts
And apis where there is less data in db it works
10 months ago
Which never happened with non metal
10 months ago
The data was also exactly same
10 months ago
Hello,
Looks like you have your services in the same project, has performance improved?
Best,
Brody
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
No it's still same as before
No improvement in performance and getting 504 gateway timeout
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
this.attemptsCache = CacheBuilder.newBuilder()
.expireAfterWrite(1, TimeUnit.DAYS) // 1
.build(new CacheLoader<String, Integer>() { // 2
public Integer load(String key) { // 3
return 0;
}
});
After debugging , it looks metal region is not allowing to build an in-memory cache and getting timeout
In non metal it worked
Debug with ur development team , why latest metal inforstructure not allowing building inmemory cache
10 months ago
This is part of Google Guava's caching library
10 months ago
We have no limitations on in memory cache stores, nor would it even be technically possible for us to put limits on such a thing, additionally, we would see mass widespread reports if such issues existed.
Your issue is assuredly elsewhere.
Are you using the private network for all service to service communications?
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
I am using privare network
I commented above code and application worked without timeout issue
But commenting above code is not a proper solution , wants railway to review why caching is not working properly n railway metal infrastructure
Status changed to Awaiting Railway Response Railway • 11 months ago
10 months ago
There are no issues on our side in regards to an in-memory cache.
We are going to step away from this thread and let the community involve themselves if they want since we cannot offer application-level support from the team here.
Best,
Brody
Status changed to Awaiting User Response Railway • 11 months ago
7 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 7 months ago