2 months ago
I have successfully deployed my Spring Boot backend service and it connects properly to my Railway MySQL database. The service logs indicate that the application has started successfully.
However, I am unable to access the service via the public URL provided by Railway. I have verified the following:
My app is running and connected to the database.
I have set a port in
application.yml.The public URL is generated in Railway.
Could you please help me identify why the service is not accessible publicly and how to resolve this?
15 Replies
2 months ago
Hey there! We've found the following might help you get unblocked faster:
🧵 frontend service works, database service works but backend service hangs
🧵 NextJS + Spring Boot projects within the same network cannot communicate
If you find the answer from one of these, please let us know by solving the thread!
Railway
Hey there! We've found the following might help you get unblocked faster: - [📚 Deploy a Spring Boot App](https://docs.railway.com/guides/spring-boot) - [🧵 frontend service works, database service works but backend service hangs](https://station.railway.com/questions/frontend-service-works-database-service-4bf87307) - [🧵 NextJS + Spring Boot projects within the same network cannot communicate](https://station.railway.com/questions/next-js-spring-boot-projects-within-the-a0931242) - [🧵 Trying make a connection http with two backend](https://station.railway.com/questions/trying-make-a-connection-http-with-two-b-8ec17504) If you find the answer from one of these, please let us know by solving the thread!
2 months ago
Not found relevant solution
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 2 months ago
2 months ago
What port did you set? The recommendation is to listen to the PORT variable from the environment. If not, please make sure your domain is using the port you specified at application.yml
Service -> Settings -> Networking
Attachments
2 months ago
my application.yml is having with port 8080 but public url is not working. Same config working in my local machine
2 months ago
2 months ago
I figured as much, your website is exposed propery through Railway, the issue is that every endpoint is 404ing which is an issue with your app internally. In this case, the browser is able to reach your app's server but your app's server isn't able to provide any resources (or pages) for that endpoint. Do you have any endpoints in your app? Can you describe its structure more?
2 months ago
use this which worked with local machine https://tortoise-international-service-production.up.railway.app/tortoiseinternational-service/api/welcome
2 months ago
this seems to work on Railway too, it says "Welcome to tortoise-international web service" when I visit it
dev
this seems to work on Railway too, it says "Welcome to tortoise-international web service" when I visit it
2 months ago
I'm getting server not found, can you suggest how to resolve it
dev
this seems to work on Railway too, it says "Welcome to tortoise-international web service" when I visit it
2 months ago
give me the url which you have used
valuemoretec
give me the url which you have used
2 months ago
Hey, please try clearing your local cache, visiting https://tortoise-international-service-production.up.railway.app/tortoiseinternational-service/api/welcome results in the content that was mentioned above.
Visiting https://tortoise-international-service-production.up.railway.app/TortoiseInternationalWeb results in a custom not found page returned by your backend.
valuemoretec
give me the url which you have used
2 months ago
I used the same URL you gave me: https://tortoise-international-service-production.up.railway.app/tortoiseinternational-service/api/welcome
valuemoretec
I'm getting server not found, can you suggest how to resolve it
2 months ago
Could you send a screenshot of what you're seeing?