Memory is not update
autogrpaph
PROOP

16 days ago

My memory was full, I raised the plan and tried to restart Postgres to increase the memory to 20 GB, but it gave an error.

Attachments

Solved$10 Bounty

9 Replies

Railway
BOT

16 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


noahd
EMPLOYEE

16 days ago

Hello,

It appears as though you have a custom start command enabled for the postgres container. Please remove that and things should be all good!


Status changed to Awaiting User Response Railway 16 days ago


noahd

Hello,It appears as though you have a custom start command enabled for the postgres container. Please remove that and things should be all good!

autogrpaph
PROOP

16 days ago

Sorry, but I don't know where it is. If it's not too much trouble, could you tell me?

Attachments


Status changed to Awaiting Railway Response Railway 16 days ago


Status changed to Awaiting Conductor Response noahd 16 days ago


autogrpaph

Sorry, but I don't know where it is. If it's not too much trouble, could you tell me?

  1. Click on the postgres service

  2. Go to settings

  3. Scroll down to the Deploy block

  4. In the Custom Start Command part, if you have a custom command set, click on the command, delete the command, and press the check mark

  5. Redeploy the postgres service


autogrpaph
PROOP

14 days ago

i do what ypu say, bu dont work


autogrpaph

i do what ypu say, bu dont work

passos
MODERATOR

14 days ago

Do you get a different error or is it the same?


Status changed to Awaiting User Response Railway 14 days ago


autogrpaph
PROOP

12 days ago

same(


Status changed to Awaiting Conductor Response Railway 12 days ago


autogrpaph
PROOP

12 days ago

Postgres crashes on startup with
PANIC: could not find free replication state, increase max_replication_slots
Please help recover or fix the database. I cannot change max_replication_slots from the UI.


autogrpaph

Postgres crashes on startup withPANIC: could not find free replication state, increase max_replication_slotsPlease help recover or fix the database. I cannot change max_replication_slots from the UI.

passos
MODERATOR

11 days ago

Hi, to increase that I would recommend downloading the Railway CLI (https://docs.railway.com/guides/cli#__next) and then SSHing into your service and manually changing the PostgreSQL conf. The flow will look like this:

  1. SSH into your service

  1. Install text editor by using apt update -y && apt install nano -y

3. Edit the PostgreSQL configuration nano /var/lib/postgresql/data/pgdata/postgresql.conf

4. Search for the max_replication_slots configuration and increase it

5. Save and re-deploy your service

If you aren't able to SSH into your service because it crashes too early, change the startup command to be sleep 1000000000; and remove it after the re-deploy so that it starts normally.


Status changed to Awaiting User Response Railway 11 days ago


Railway
BOT

4 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 days ago


Loading...