#Help with Memory and hosting my bot to Discord

24 messages · Page 1 of 1 (latest)

odd thistle
#

Hey!

We have a bot that's currently cannot generate the image we would like to get, but the Agent said this:

Your hohbot service doesn't have explicit CPU/memory limits set in the configuration, which means it's using Railway's default allocation. Railway's default is 0.5 vCPU and 512 MB memory.

Since you need 2GB of memory available, you'll need to upgrade your plan. Railway's memory tiers are:

512 MB (default)
1 GB
2 GB
4 GB
8 GB
16 GB
To allocate 2GB of memory to your service, I can update the configuration. However, this requires a plan upgrade on your Railway account. Do you want me to proceed with updating the service config to request 2GB, or do you need to upgrade your plan first?

It's already at 8gb, but not working properly. Can someone help me, please? Thank you!

plain jewelBOT
turbid spruce
#

Can you define "not working properly"?

proud dawn
#

Resuming our convo in #🎤|chit-chat , what are you trying to host?

proud dawn
#

What framework/tool/application..

odd thistle
#

We have an image generation stuff within the code ( with Docker as well ), and it get stuck on the screen. My mate tried it, but it dropped him back and cannot generate a new one. This is a Discord bot.

proud dawn
#

Do you know the language of said bot?

odd thistle
#

sorry, Python 😄

proud dawn
#

My bet is that the framework/language is limiting total resource usage, nodejs does that, python sometimes does that too afaik

odd thistle
#

So how can we fix that?

proud dawn
#

Just to clear everything else, just make sure that your replica limits are set to the highest possible and that you redeployed your service

odd thistle
#

yes, it's 8vCPU and 8GB Memory

proud dawn
#

That would be related to your code

odd thistle
#

I could recreate the problem and i got the log

proud dawn
#

That error isn't related to resource usage

#

I never created discord bots with python but that looks like a race condition on a bot restart

odd thistle
#

okay, so the problem is on our side

proud dawn
#

yes!

odd thistle
#

okay 😄

muted wolf
#

discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction
This happens when you reply to a non-deferred interaction too late

#

You only have like 3 seconds