Postgres crashes after config
pxtecnologia
PROOP

2 years ago

I ran the following command:
ALTER SYSTEM SET shared_preload_libraries = 'timescaledb,pg_stat_statements';

and my deploy is crashing:
`PostgreSQL Database directory appears to contain a database; Skipping initialization

2024-04-29 12:31:11.626 UTC [8] FATAL: could not access file "pgstatstatements,timescaledb": No such file or directory

2024-04-29 12:31:11.626 UTC [8] LOG: database system is shut down`

how can i fix?

59 Replies

pxtecnologia
PROOP

2 years ago

6f1d26dd-c104-43d6-8f3d-2f6bc6f9042c


pxtecnologia
PROOP

2 years ago

i cant set the previous value:
sharedpreloadlibraries = 'timescaledb';


brody
EMPLOYEE

2 years ago

did you have a backup?


pxtecnologia
PROOP

2 years ago

@Brody, actually i don't have a backup


brody
EMPLOYEE

2 years ago

is there important data on the database?


pxtecnologia
PROOP

2 years ago

@Brody yes, its company's production database


pxtecnologia
PROOP

2 years ago


pxtecnologia
PROOP

2 years ago

it's seems your engineers change the config file


brody
EMPLOYEE

2 years ago

yeah but the only difference is that they are on the Pro plan


pxtecnologia
PROOP

2 years ago

oh no 😦


brody
EMPLOYEE

2 years ago

I'll do my best to help you remove that config yourself, but I make no promises


brody
EMPLOYEE

2 years ago

going forward please upgrade to Pro as well, you should not be running a company's production database on a Hobby plan


pxtecnologia
PROOP

2 years ago

i'll appreciate that


pxtecnologia
PROOP

2 years ago

if i migrate for pro right now, helps?


brody
EMPLOYEE

2 years ago

while I could get the team involved if you upgraded to pro right now, there's no guarantee that they would be able to fix it faster than we could


brody
EMPLOYEE

2 years ago

what is the source image for your database?


pxtecnologia
PROOP

2 years ago

i understand, then i'll wait and migrate for pro after this


pxtecnologia
PROOP

2 years ago

it's railway's postgres base template


brody
EMPLOYEE

2 years ago

railway has a few, please tell me your database's source


brody
EMPLOYEE

2 years ago

im trying to work out a plan of action, so id need to know that



brody
EMPLOYEE

2 years ago

what version


pxtecnologia
PROOP

2 years ago

pg 15

1234500411357008000


pxtecnologia
PROOP

2 years ago

thats right?


brody
EMPLOYEE

2 years ago

i take it this is a migrated database?


pxtecnologia
PROOP

2 years ago

yes! from mandatory migration that occurred at jan/2024, right?


brody
EMPLOYEE

2 years ago

how much of the volume is used?


pxtecnologia
PROOP

2 years ago

are you referring to disk space and memory?


brody
EMPLOYEE

2 years ago

just disk space


pxtecnologia
PROOP

2 years ago

less than 2 GB


brody
EMPLOYEE

2 years ago

if im able to work out a plan of action would you be down to let me do it?


pxtecnologia
PROOP

2 years ago

yes, of course


brody
EMPLOYEE

2 years ago

know that i dont take any responsibility for data loss


brody
EMPLOYEE

2 years ago

1234502762583031800
1234502762905997300


pxtecnologia
PROOP

2 years ago

ok, no problems!


brody
EMPLOYEE

2 years ago

i was able to recover a database with the same error you are facing, if you want to add me to the project i will get started


pxtecnologia
PROOP

2 years ago

yes, i will


brody
EMPLOYEE

2 years ago

brodyover@gmail.com


pxtecnologia
PROOP

2 years ago

1234503381729415200


brody
EMPLOYEE

2 years ago

you have a backup service?


pxtecnologia
PROOP

2 years ago

yes, from railways s3 backup template


pxtecnologia
PROOP

2 years ago

but only bakcups once a day


pxtecnologia
PROOP

2 years ago

from last backup to now, there was new data added


brody
EMPLOYEE

2 years ago

gotcha


brody
EMPLOYEE

2 years ago

btw your backup service is using the database's public url, meaning you are paying extra egress when a database backup runs


pxtecnologia
PROOP

2 years ago

oh, that's interesting. an alternative would a private url?


brody
EMPLOYEE

2 years ago

i can change that if you'd like?


pxtecnologia
PROOP

2 years ago

ill appreciate it!


brody
EMPLOYEE

2 years ago

database is back up


pxtecnologia
PROOP

2 years ago

omg, worked. and was no data loss!!


brody
EMPLOYEE

2 years ago

backup service updated too


pxtecnologia
PROOP

2 years ago

thanks a lot, Brody!!!


brody
EMPLOYEE

2 years ago

no problem!


brody
EMPLOYEE

2 years ago

non admins (me) cant delete stuff, so you can delete these two things

1234506573473120300


pxtecnologia
PROOP

2 years ago

i'll migrate to pro now. i'll need to redeploy some service or additional configs??


brody
EMPLOYEE

2 years ago

after youve upgraded you will be asked what projects you want to move over to the pro workspace


pxtecnologia
PROOP

2 years ago

ok, i'll do it


pxtecnologia
PROOP

2 years ago

thank you one more time and have a nice day!


brody
EMPLOYEE

2 years ago

no prob, and you as well!


Loading...