Running Ganache Node on Port 8545 keeps logging "Killed"
Hey! I just deployed my application successfully but then added a background process that has a node on 8545. This works locally. But when I try to deploy this with railway. I get the logs
In a loop.
Is there a reason that I cannot start a node on 8545? I am having my node server take in the environment variable PORT and then always make requests to 8545 because that is convention for ganache.
14 Replies
Project ID:
cccc72dc-c205-4c79-80cb-eb2f054ee9d1
You might find these helpful:
- Error on deploy: "your app is listening on 127.0.0.1. You may need to listen on 0.0.0.0 instead"
- Deploy successfully on railway but get an 503 Server Error.
⚠️ experimental feature
projectID: cccc72dc-c205-4c79-80cb-eb2f054ee9d1
you might be running into the 512mb limit of the free plan
Does it indicate that on my project that we are running into that?
Oh I see this too
But it looks like it is 437mb on my local when I run docker stats
Do you have any recommendations about why this might be less memory heavy locally ?
do those spikes go above 512mb?
Ya these spikes definitely go above 512 unfortunately
It's only on start though
I guess my options are
1. I can run each one in separate projects because one is 300mb and the other is 150mb
2. I can try making a docker-compose file. Do you support those?
3. I can upgrade out of free tier.
Do you have a recommendation for what I should go for?
number 3
but to answer #2 we don't support docker compose yet
^ yeah what Brody said. Upgrade to the Developer plan. It gives you an 8GB limit and you don't pay for usages below $5/mo (i.e. once you're on the dev plan, you get $5/mo in free credits + increased limits).
docker-compose isn't supported in nixpacks right now; best you can do if you wanna go that route is to bunch the services into a Dockerfile and run them with some process manager like supervisord. Although you can also run multiple processes inside a nixpacks build, but upgrading is really the easiest 😛
rc sure knows his stuff
Sounds good I will look at upgrading
Thanks guys
no problem!