Memory is not update
autogrpaph
HOBBYOP

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

8 months 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!


8 months 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 8 months 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
HOBBYOP

8 months 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 8 months ago


Status changed to Awaiting Conductor Response noahd 8 months ago


autogrpaph

Sorry, but I don't know where it is. If it's not too much trouble, could you tell me?![](https://station-server.railway.com/attachments/att_01kah3bsb1ferbtk2p1aqtz74h)

  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
HOBBYOP

7 months ago

i do what ypu say, bu dont work


autogrpaph

![](https://station-server.railway.com/attachments/att_01kanpqq3tfk3a7a3bb70t5mnc)![](https://station-server.railway.com/attachments/att_01kanpqq54e8j8ydc2pw6gq4wn)i do what ypu say, bu dont work

7 months ago

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


Status changed to Awaiting User Response Railway 8 months ago


autogrpaph
HOBBYOP

7 months ago

same(


Status changed to Awaiting Conductor Response Railway 8 months ago


autogrpaph
HOBBYOP

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

7 months ago

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

  1. SSH into your service
  2. 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 7 months ago


Railway
BOT

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...