steps to connect to a private network
Anonymous
PROOP

2 years ago

The connection between my database and web app takes a long time to load a page after changing my runtime to v2 and sometimes gives me 504 gateway time out.. please how can I solve this

Closed

58 Replies

Anonymous
PROOP

2 years ago

N/A


2 years ago

Is your database and service in the same region?


Anonymous
PROOP

2 years ago

No


Anonymous
PROOP

2 years ago

Am on hobby plan


2 years ago

Hobby plan has different regions, 1 GCP and 2 metal regions

can you make sure they're not in different regions? By default services are set to metal except for databases so it's very possible they're not in the same region


Anonymous
PROOP

2 years ago

Yes my web app and database are in different region


2 years ago

Thought so, could you try moving your web app to the same region your database is in?


Anonymous
PROOP

2 years ago

I tried move my web app to the same region as my database but it changes to the default region which is metal


2 years ago

it doesn't let you set it to US-WEST Oregon?


Anonymous
PROOP

2 years ago

Yes


2 years ago

<:yujihmm:1260232217284841484>


2 years ago

I'm stumped


Anonymous
PROOP

2 years ago

Same here too


2 years ago

project id please


Anonymous
PROOP

2 years ago

561464cd-a4da-4734-b7f9-c3d7c9b046e4


2 years ago

there has been no change to anything in that project within the last 10 days


Anonymous
PROOP

2 years ago

My api and database are in different region so my web app can't connect to the database through the api


2 years ago

yeah so as fragly suggested, move the api to the same region as the database


Anonymous
PROOP

2 years ago

Am on hobby when I changr it, it revert back to default metal


2 years ago

im not sure why you say that, you haven't tried to


2 years ago

last activity was 10 days ago


Anonymous
PROOP

2 years ago

I tried that before let me try again too see


Anonymous
PROOP

2 years ago

@Brody I have tried and it's working but it takes quite a time to load the page


2 years ago

there has been no changes in this project in the last 10 days, did you give me the wrong id?


Anonymous
PROOP

2 years ago

Is the right ID just effected the change on the region


Anonymous
PROOP

2 years ago

As fragly suggests


2 years ago

you are likely looking at the wrong project, i made the change for you


2 years ago

feel free to click deploy -


Anonymous
PROOP

2 years ago

I actually have have my (api,database and redis) as one project and my web app as a different project make api calls to this project

https://railway.com/project/561464cd-a4da-4734-b7f9-c3d7c9b046e4/service/ceeafe9b-4856-4b24-a493-570d64a15783/settings?environmentId=e425488b-f770-4a70-a546-e41696c873e2


2 years ago

feel free to make the same change i have


2 years ago

for reference, you could have make the change, its not something an admin needed to do for you


Anonymous
PROOP

2 years ago

I have effected the changes as suggest but the pages takes time to load.. sorry this my actual project Id 905f2f53-a9d5-489e-93e2-ffc1dcc9588f


2 years ago

thats already not on metal


2 years ago

can you have the app connect to postgres and redis via the private network


Anonymous
PROOP

2 years ago

Can you assist me on that


2 years ago

feel free to deploy


Anonymous
PROOP

2 years ago

@Brody this a typo we are discussing about how to connect my app the postgres and redis via private network


Anonymous
PROOP

2 years ago

Not deployment


2 years ago

yes and ive just done that


Anonymous
PROOP

2 years ago

Ok


2 years ago

1323768874193387641


Anonymous
PROOP

2 years ago

After deployment how do I access my app and if I push form github to railway will it work since is in private just a clarification before I deploy


2 years ago

the changes i made only effect how the app itself connects to the databases


Anonymous
PROOP

2 years ago

Ok and can I access the app from the old url


2 years ago

the url isnt changing


Anonymous
PROOP

2 years ago

Ok


Anonymous
PROOP

2 years ago

It has failed @Brody


juan
HOBBY

2 years ago

Hi! Not to be a bother here, but the exactly same thing is happening to me


2 years ago

no bother at all, but please open your own thread 🙂


2 years ago

please follow our guide -


Anonymous
PROOP

2 years ago

Pls can you revert the chance you made to previous


Anonymous
PROOP

2 years ago

Pls @Brody


2 years ago

your app is still online


Anonymous
PROOP

2 years ago

Yes


2 years ago

please refrain from the tagging -> <#727685388893945877> #5


Anonymous
PROOP

2 years ago

Ok


Anonymous
PROOP

2 years ago

This deployment has failed..


2 years ago

the build failed because you are trying to access redis during build, but the private network is not available during build.

you would need to access redis only during the runtime.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...