Confusion about linking App vs Linking Service
gregt-home
HOBBYOP

5 months ago

Last night <@539512869780455445> fixed a 500 ("We'sorry, but something went wrong") error on my app that was due to a disconnect between my app and my database ostensibly because my railway up was linked to my Postgres service instead of my website service. I was very happy to get that help.

Today, I deployed a new version of the app and it appeared to deploy the app, but I again started getting the same error. I was going to re-deploy the database from the Database Service-&gt; CMD+K-&gt;Deploy latest, but the dashboard shows that the database was redeployed in the time frame of my railway up, but the app shows as not having been deployed in two months. I have not moved forward to re-deploy either yet as I want to understand what is wrong with my console environment.

The output of my railway up sure looks like it is building the app and not the database. Am I misunderstanding something about the linking mechanism?

I have attached a screenshot of an excerpt of my console output from what I think is the app deploy.

What am I doing wrong here? I feel like I am not understanding something basic and it is keeping me from being able to troubleshoot this.

Thanks.

7 Replies

brody
EMPLOYEE

5 months ago

You linked to Postgres again and ran railway up against it.

Railway is going to try to do what you asked it to, deploy your code, there are no guardrails that prevent you from doing this.

1413235166096261000


gregt-home
HOBBYOP

5 months ago

Thanks. Now I understand.


gregt-home
HOBBYOP

5 months ago

Hang on, maybe I don't understand.

After I unlink the service, railway up prompts me for a service and since I assume I do not want Postgres, I chose Motley Tones App. Subsequently, I get an error sending request failure.

11213$ railway status
Project: Motley Tones App
Environment: production
Service: None
-- tarsa@m1nomad:~/src/self/motleytones [main] --
11214$ railway up
> Select a service Motleytones
  Indexed                                                                                                                                     Compressed [====================] 100%                                                                                                    error sending request for url (https://backboard.railway.com/project/4368befc-175f-411e-aed7-9ba5a0f17748/environment/f687d285-aa1b-401c-af60-9fe36b677c40/up?serviceId=60da7e1a-3347-4840-bf54-6e94d602f4de)

Caused by:
    operation timed out

brody
EMPLOYEE

5 months ago

Run the command with the --verbose flag please?


gregt-home
HOBBYOP

5 months ago

I do not know what changed since a few minutes ago, but the railway up --verbose appears to be working properly now.


gregt-home
HOBBYOP

5 months ago

Here is a screenshot, for the record.

1413248654826803200


brody
EMPLOYEE

5 months ago

IIRC that endpoint has a 15 second timeout, so if your Internet cannot upload your project in 15 seconds it will fail.


Loading...