502 Errors, think it might be Redis
jgtwenty3
HOBBYOP

a year ago

I am deploying a medusa js backend and admin. the databases seem to be up and deployment from github says successful. when i try to go to the URL i get 502 This error appears to be caused by the application.

If this is your project, check out your deploy logs to see what went wrong. Refer to our docs on Fixing Common Errors for help, or reach out over our Help Station.

If you are a visitor, please contact the application owner or try again later.

the build logs say :
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Warning: connect.session() MemoryStore is not

designed for a production environment, as it will leak

memory, and will not scale past a single process.

No Redis url was provided - using Medusa in production without a proper Redis instance is not recommended

Ive followed the Medusa docs step by step and can't figure out what the problem is.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

7 Replies

a year ago

They key point here as per those logs is that you are running out of memory.

Upgrade to the Hobby plan and redeploy.


jgtwenty3
HOBBYOP

a year ago

I upgraded, redeployed and still have the same errors. this is the project: https://railway.app/project/9ce976bd-ca78-4daa-a0a7-e4fd919159ed if that helps


a year ago

May I try a redeploy?


jgtwenty3
HOBBYOP

a year ago

sure thank you


a year ago

Looks like they have been online for a few minutes now.


Status changed to Solved brody over 1 year ago


Status changed to Open jgtwenty3 over 1 year ago


jgtwenty3
HOBBYOP

a year ago

So they are up but when visiting the URLs they say Cannot GET/

sorry if it's a stupid question but this is my first time trying to deploy something like this



Loading...