a year ago
I successfully deployed medusa.js with Postgres and Redis using a deploy button in the docs (https://docs.medusajs.com/deployments/server/deploying-on-railway). But subsequent commits to the Github codebase or changes to the environment variables result in failed re-deployments.
The deploy logs don't seem to show anything out of the normal except "Error starting server", which makes it difficult to figure out what the problem may be.
Will be happy to get some help.
3 Replies
a year ago
Error logs (snippet):
query: SELECT * FROM current_schema()
query: SELECT version();
query: SELECT * FROM "informationschema"."tables" WHERE "tableschema" = 'public' AND "table_name" = 'migrations'
query: SELECT * FROM "public"."migrations" "migrations" ORDER BY "id" DESC
No migrations are pending
Connection to Redis in module 'event-bus-redis' established
Connection to Redis in module 'cache-redis' established
Connection to Redis established
Initializing models
Models initialized
Initializing plugin models
Plugin models initialized
Initializing strategies
Strategies initialized
Initializing database
Database initialized
Initializing repositories
Repositories initialized
Initializing services
Services initialized
Initializing modules
Connection to Redis in module 'event-bus-redis' established
Connection to Redis in module 'cache-redis' established
Modules initialized
Initializing express
Express intialized
Initializing plugins
Registering custom endpoints for @medusajs/admin
Registering custom endpoints for @medusajs/file-local
No middleware files found in /app/node_modules/@medusajs/admin/api. Skipping middleware configuration.
No middleware files found in /app/node_modules/@medusajs/file-local/dist/api. Skipping middleware configuration.
Routes loaded in 4.28 ms
Routes loaded in 7.20 ms
Error starting server
a year ago
Do you see a +
icon in the log line on the left? Perhaps try expanding that for more info? If you're logging in JSON we don't expand the full object by default.
a year ago
Yes, thanks! I can see the + icon and I expanded it. I'm not sure I can decode the error message(s) but let me give it a try.