Memory is not update
autogrpaph
HOBBYOP

4 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

4 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!


4 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 4 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

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


Status changed to Awaiting Conductor Response noahd 4 months 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
HOBBYOP

4 months ago

i do what ypu say, bu dont work


autogrpaph

i do what ypu say, bu dont work

4 months ago

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


Status changed to Awaiting User Response Railway 4 months ago


autogrpaph
HOBBYOP

4 months ago

same(


Status changed to Awaiting Conductor Response Railway 4 months ago


autogrpaph
HOBBYOP

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

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


Railway
BOT

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


Loading...