#Hello! Not sure what's going on with Railway or Strapi

53 messages · Page 1 of 1 (latest)

tacit bay
#

Hello! I have an issue with the domain generated by Railway (I think). I'm not using Railway's Strapi service; instead, I uploaded it through a GitHub repository. Everything is set up correctly; I configured the Railway database to integrate with the repository.

But I'm facing an issue with the domain provided by Railway. Every time it's finishing the upload, the following error occurs:

> [email protected] start
> strapi start
> [2023-12-14 18:48:26.851] error: getaddrinfo ENOTFOUND (HERE IS THE RAILWAY DOMAIN)
Error: getaddrinfo ENOTFOUND (HERE IS THE RAILWAY DOMAIN)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)

This is my first time using Railway and seeking help here. If you need any additional information, please let me know. Thank you for your time.

clever locustBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

young moatBOT
#

Project ID: N/A

heavy chasm
#

looks like maybe you are trying to set the database url as your railway domain?

#

can you show me a screenshot of your railway project?

tacit bay
#

Clear! Specifically what you want me to show you.

#

What about the services?

heavy chasm
#

nothing specific, I'd just like a screenshot of the project

tacit bay
#

Something like that?

heavy chasm
#

perfect

#

can I see your database.js file?

tacit bay
#

Sure

#

Do you think it's because I'm not using Strapi's env()?

heavy chasm
#

I don't

#

can you show me your service variables on the strapi service?

#

I'd like a screenshot of what the raw editor shows, of course block off anything that may be sensitive

tacit bay
heavy chasm
heavy chasm
#

reference the postgres service, please read the link.. Referencing another service's variable

tacit bay
#

Thanks for the information, I'm already doing it.

#

Ready, the variables are linked to the database.

#

it looks something like this.

PGHOST=${{Postgres.PGHOST}}
PGPORT=${{Postgres.PGPORT}}
PGDATABASE=${{Postgres.PGDATABASE}}
PGUSER=${{Postgres.PGUSER}}
PGPASSWORD=${{Postgres.PGPASSWORD}}
POSTGRES_DB=${{Postgres.POSTGRES_DB}}

heavy chasm
#

do they render properly when you click on the eye icon?

tacit bay
#

yes

heavy chasm
#

and strapi has redeployed right?

tacit bay
#

Yes, but it keeps giving me the same error. When I launch it in development or production, from the code I do not receive that error (perhaps because in production it is configured with another Local URL), but that is not the case here.

#

I tried to use the Strapi service from Railway and it didn't upload either, maybe it's Strapi?

heavy chasm
#

didnt upload?

tacit bay
#

I don't deploy, that's what I mean when trying to use Railway's Strapi service. Sorry if I mix up words.

heavy chasm
#

i just deployed it, ill see what happens

tacit bay
#

I'm going to try it and see.

tacit bay
#

Now it lets me use the service and everything is fine for the moment. Does it let you access the panel? It loads me and never ends.

Thanks for the help

heavy chasm
#

I can open the /admin page if that's what you're asking?

tacit bay
heavy chasm
#

i dont know what that says

tacit bay
#

Sorry, it's in Spanish, it indicates that the connection has expired.

heavy chasm
#

can you send a link to that domain?

tacit bay
heavy chasm
#

works fine for me

#

but you get a timeout?

tacit bay
#

Yes, too much and in the end it expires.

#

What browser do you use?

heavy chasm
#

sounds like an issue with your internet, maybe some kind of isp firewall?

#

try on a vpn connection to west coast of America

tacit bay
#

That's just it, using a VPN it works correctly.

heavy chasm
#

awsome

tacit bay
#

Thanks for everything, you are a great help!

heavy chasm
#

no problem!

tacit bay
#

I won't forget you, if I have any money left I'll send it to you 🙂