#Strapi won't load on Railway App
67 messages · Page 1 of 1 (latest)
Project ID: d6360c76-95aa-49e2-90db-62587e583b43
d6360c76-95aa-49e2-90db-62587e583b43
can you show me a screenshot of your service variables please
please make sure all database variables are variable references
https://docs.railway.app/develop/variables#reference-variables
Yes, I have done that. Not sure what else to do. I'm matching up with the other Strapi on Railway and everything aligned the same
please show me the screenshot again?
2023-07-12 19:07:08.019 UTC [1] LOG: starting PostgreSQL 13.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, 64-bit
2023-07-12 19:07:08.019 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2023-07-12 19:07:08.019 UTC [1] LOG: listening on IPv6 address "::", port 5432
2023-07-12 19:07:08.023 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-07-12 19:07:08.029 UTC [62] LOG: database system was shut down at 2023-07-12 19:07:07 UTC
2023-07-12 19:07:08.034 UTC [1] LOG: database system is ready to accept connections
2023-07-12 19:07:08.036 UTC [68] LOG: TimescaleDB background worker launcher connected to shared catalogs
2023-07-12 19:07:08.454 UTC [72] LOG: the "timescaledb" extension is not up-to-date
2023-07-12 19:07:08.454 UTC [72] HINT: The most up-to-date version is 2.11.1, the installed version is 2.1.1.
2023-07-12 19:10:09.872 UTC [99] LOG: could not accept SSL connection: No error information
2023-07-12 20:07:07.994 UTC [468] LOG: the "timescaledb" extension is not up-to-date
2023-07-12 20:07:07.994 UTC [468] HINT: The most up-to-date version is 2.11.1, the installed version is 2.1.1.
2023-07-12 20:07:08.386 UTC [469] LOG: the "timescaledb" extension is not up-to-date
2023-07-12 20:07:08.386 UTC [469] HINT: The most up-to-date version is 2.11.1, the installed version is 2.1.1.
2023-07-12 21:07:07.634 UTC [836] LOG: the "timescaledb" extension is not up-to-date
2023-07-12 21:07:07.634 UTC [836] HINT: The most up-to-date version is 2.11.1, the installed version is 2.1.1.
2023-07-12 21:07:08.377 UTC [837] LOG: the "timescaledb" extension is not up-to-date
2023-07-12 21:07:08.377 UTC [837] HINT: The most up-to-date version is 2.11.1, the installed version is 2.1.1.
why are they all shared variables??
i never mentioned anything about shared variables, please undo all of that
Done
another screenshot please
please make sure all database variables are variable references
https://docs.railway.app/develop/variables#reference-variables
[2023-07-12 21:28:58.340] debug: ⛔️ Server wasn't able to start properly.
[2023-07-12 21:28:58.342] error: database "containers-us-west-203.railway.app" does not exist
PGDATABASE=${{DATABASE_NAME}}
PGHOST=${{DATABASE_HOST}}
PGPASSWORD=${{DATABASE_PASSWORD}}
PGPORT=${{DATABASE_PORT}}
PGUSER=${{DATABASE_USERNAME}}```
another screenshot please
without cropping please
please make sure all database variables are variable references
https://docs.railway.app/develop/variables#reference-variables
What am I missing?
your database variables are not variable references
so I need to delete all the DATABASE_?
sure, whatever is easiest for you
Okay, so I'll have to change it on Strapi's end?
one thing at a time
please use the standardized variable names for your reference variables
show me an example
the drop-down uses these variable names by default, you would have had to change them manually, don't do that please
It still doesn't work. I found my solution
a lot of bad practices in that guide
all you needed to do was setup your variables correctly in railway and then we would have moved on to utilizing the variables correctly in strapi
it just seems like you weren't trying
well you said it works now?
No
so may we continue?
yes, please
Okay, the problem was never the variables. The problem was this
I don't know where that came from but that was the problem.
correction, the variables where a problem, but not the only problem
This is strapi@latest and that was new to me. All the other strapi doesn't have it. It was weird that I was able to connect on localhost but then not on serverside.
well, yes the variables was a problem too because I kept changing them LOL
✅
well finally solved 🥳
Sorry for the headache