Help with Memory and hosting my bot to Discord
aidanlynge94
HOBBYOP

25 days ago

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!

24 Replies

Can you define "not working properly"?


Also, refer to the pricing page () for info on resource limits.


25 days ago

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


-# Oops. my bad.


25 days ago

What framework/tool/application..


aidanlynge94
HOBBYOP

25 days ago

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.


25 days ago

Do you know the language of said bot?


aidanlynge94
HOBBYOP

25 days ago

sorry, Python 😄


25 days ago

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


aidanlynge94
HOBBYOP

25 days ago

So how can we fix that?


25 days ago

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


aidanlynge94
HOBBYOP

25 days ago

yes, it's 8vCPU and 8GB Memory


25 days ago

I was wrong here, python doesn't have a hard memory cap like nodejs, so your application using 600mb is simply because that's all it currently needs (considering that we are indeed allocating all available resources to it)


25 days ago

That would be related to your code


aidanlynge94
HOBBYOP

25 days ago

I could recreate the problem and i got the log


aidanlynge94
HOBBYOP

25 days ago

(no markdown available for this content)

Attachments


25 days ago

That error isn't related to resource usage


25 days ago

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


aidanlynge94
HOBBYOP

25 days ago

okay, so the problem is on our side


25 days ago

yes!


aidanlynge94
HOBBYOP

25 days ago

okay 😄


25 days ago

discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction

This happens when you reply to a non-deferred interaction too late


25 days ago

You only have like 3 seconds


aidanlynge94
HOBBYOP

25 days ago

yeah i get this answer from AI, maybe we will solve this problem soon


Welcome!

Sign in to your Railway account to join the conversation.

Loading...