R
Railway•11mo ago
June

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

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:
> 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)
> 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.
No description
39 Replies
Percy
Percy•11mo ago
Project ID: N/A
Brody
Brody•11mo ago
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?
June
June•11mo ago
Clear! Specifically what you want me to show you. What about the services?
Brody
Brody•11mo ago
nothing specific, I'd just like a screenshot of the project
June
June•11mo ago
Something like that?
No description
Brody
Brody•11mo ago
perfect can I see your database.js file?
June
June•11mo ago
Sure
June
June•11mo ago
No description
June
June•11mo ago
Do you think it's because I'm not using Strapi's env()?
Brody
Brody•11mo ago
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
June
June•11mo ago
So?
No description
Brody
Brody•11mo ago
^ could you please use reference variables for all database related variables? https://docs.railway.app/guides/variables#reference-variables
June
June•11mo ago
Yes I think so. Shared right?
Brody
Brody•11mo ago
reference the postgres service, please read the link.. Referencing another service's variable
June
June•11mo ago
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}}
Brody
Brody•11mo ago
do they render properly when you click on the eye icon?
June
June•11mo ago
yes
Brody
Brody•11mo ago
and strapi has redeployed right?
June
June•11mo ago
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?
Brody
Brody•11mo ago
didnt upload?
June
June•11mo ago
I don't deploy, that's what I mean when trying to use Railway's Strapi service. Sorry if I mix up words.
Brody
Brody•11mo ago
i just deployed it, ill see what happens
Brody
Brody•11mo ago
June
June•11mo ago
I'm going to try it and see. 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
Brody
Brody•11mo ago
I can open the /admin page if that's what you're asking?
June
June•11mo ago
No description
Brody
Brody•11mo ago
i dont know what that says
June
June•11mo ago
Sorry, it's in Spanish, it indicates that the connection has expired.
Brody
Brody•11mo ago
can you send a link to that domain?
Brody
Brody•11mo ago
works fine for me but you get a timeout?
June
June•11mo ago
Yes, too much and in the end it expires. What browser do you use?
Brody
Brody•11mo ago
sounds like an issue with your internet, maybe some kind of isp firewall? try on a vpn connection to west coast of America
June
June•11mo ago
That's just it, using a VPN it works correctly.
Brody
Brody•11mo ago
awsome
June
June•11mo ago
Thanks for everything, you are a great help!
Brody
Brody•11mo ago
no problem!
June
June•11mo ago
I won't forget you, if I have any money left I'll send it to you 🙂
Brody
Brody•11mo ago
haha theres no need to send me any money
Want results from more Discord servers?
Add your server