deployed my app but not able to access via public url

valuemoretec
PROOP

a month 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?

$10 Bounty

15 Replies

Railway
BOT

a month 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!


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!

valuemoretec
PROOP

a month ago

Not found relevant solution


a month 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 1 month ago


a month ago

Mind sharing the URL in question?


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


valuemoretec
PROOP

a month ago

my application.yml is having with port 8080 but public url is not working. Same config working in my local machine


a month ago

but public url is not working

Can you share the URL in question?



a month 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?


valuemoretec
PROOP

a month ago


a month 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

valuemoretec
PROOP

a month 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

valuemoretec
PROOP

a month ago

give me the url which you have used


valuemoretec

give me the url which you have used

a month 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

a month ago


valuemoretec

I'm getting server not found, can you suggest how to resolve it

a month ago

Could you send a screenshot of what you're seeing?


Loading...
deployed my app but not able to access via public url - Railway Help Station