Help with Memory and hosting my bot to Discord
aidanlynge94
HOBBYOP

2 months 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.


2 months ago

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


-# Oops. my bad.


2 months ago

What framework/tool/application..


aidanlynge94
HOBBYOP

2 months 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.


2 months ago

Do you know the language of said bot?


aidanlynge94
HOBBYOP

2 months ago

sorry, Python 😄


2 months ago

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


aidanlynge94
HOBBYOP

2 months ago

So how can we fix that?


2 months 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

2 months ago

yes, it's 8vCPU and 8GB Memory


2 months 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)


2 months ago

That would be related to your code


aidanlynge94
HOBBYOP

2 months ago

I could recreate the problem and i got the log


aidanlynge94
HOBBYOP

2 months ago

(no markdown available for this content)

Attachments


2 months ago

That error isn't related to resource usage


2 months ago

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


aidanlynge94
HOBBYOP

2 months ago

okay, so the problem is on our side


2 months ago

yes!


aidanlynge94
HOBBYOP

2 months ago

okay 😄


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


aidanlynge94
HOBBYOP

2 months 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...