R
Railway2y ago
ErikT

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
Call Gas Limit
==================
9007199254740991
Listening on 0.0.0.0:8545
Killed
Call Gas Limit
==================
9007199254740991
Listening on 0.0.0.0:8545
Killed
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
Percy
Percy2y ago
Project ID: cccc72dc-c205-4c79-80cb-eb2f054ee9d1
ErikT
ErikTOP2y ago
projectID: cccc72dc-c205-4c79-80cb-eb2f054ee9d1
Brody
Brody2y ago
you might be running into the 512mb limit of the free plan
ErikT
ErikTOP2y ago
Does it indicate that on my project that we are running into that? Oh I see this too
ErikT
ErikTOP2y ago
But it looks like it is 437mb on my local when I run docker stats
ErikT
ErikTOP2y ago
Do you have any recommendations about why this might be less memory heavy locally ?
Brody
Brody2y ago
do those spikes go above 512mb?
ErikT
ErikTOP2y ago
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?
Brody
Brody2y ago
number 3 but to answer #2 we don't support docker compose yet
Ray
Ray2y ago
^ 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 😛
Brody
Brody2y ago
rc sure knows his stuff
ErikT
ErikTOP2y ago
Sounds good I will look at upgrading Thanks guys
Brody
Brody2y ago
no problem!
Want results from more Discord servers?
Add your server