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