R
Railway•7mo ago
Algeu Junior

Postgres crashes after config

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 "pg_stat_statements,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?
Solution:
database is back up
Jump to solution
48 Replies
Percy
Percy•7mo ago
Project ID: 6f1d26dd-c104-43d6-8f3d-2f6bc6f9042c
Algeu Junior
Algeu JuniorOP•7mo ago
6f1d26dd-c104-43d6-8f3d-2f6bc6f9042c i cant set the previous value: shared_preload_libraries = 'timescaledb';
Brody
Brody•7mo ago
did you have a backup?
Algeu Junior
Algeu JuniorOP•7mo ago
@Brody, actually i don't have a backup
Brody
Brody•7mo ago
is there important data on the database?
Algeu Junior
Algeu JuniorOP•7mo ago
@Brody yes, its company's production database i found this user with same error: https://discord.com/channels/713503345364697088/1119792911819751566 it's seems your engineers change the config file
Brody
Brody•7mo ago
yeah but the only difference is that they are on the Pro plan
Algeu Junior
Algeu JuniorOP•7mo ago
oh no 😦
Brody
Brody•7mo ago
I'll do my best to help you remove that config yourself, but I make no promises going forward please upgrade to Pro as well, you should not be running a company's production database on a Hobby plan
Algeu Junior
Algeu JuniorOP•7mo ago
i'll appreciate that if i migrate for pro right now, helps?
Brody
Brody•7mo 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 what is the source image for your database?
Algeu Junior
Algeu JuniorOP•7mo ago
i understand, then i'll wait and migrate for pro after this it's railway's postgres base template
Brody
Brody•7mo ago
railway has a few, please tell me your database's source im trying to work out a plan of action, so id need to know that
Algeu Junior
Algeu JuniorOP•7mo ago
GitHub
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
From An unknown user
From An unknown user
From An unknown user
Brody
Brody•7mo ago
what version
Algeu Junior
Algeu JuniorOP•7mo ago
pg 15
No description
Algeu Junior
Algeu JuniorOP•7mo ago
thats right?
Brody
Brody•7mo ago
i take it this is a migrated database?
Algeu Junior
Algeu JuniorOP•7mo ago
yes! from mandatory migration that occurred at jan/2024, right?
Brody
Brody•7mo ago
how much of the volume is used?
Algeu Junior
Algeu JuniorOP•7mo ago
are you referring to disk space and memory?
Brody
Brody•7mo ago
just disk space
Algeu Junior
Algeu JuniorOP•7mo ago
less than 2 GB
Brody
Brody•7mo ago
if im able to work out a plan of action would you be down to let me do it?
Algeu Junior
Algeu JuniorOP•7mo ago
yes, of course
Brody
Brody•7mo ago
know that i dont take any responsibility for data loss
Brody
Brody•7mo ago
No description
No description
Algeu Junior
Algeu JuniorOP•7mo ago
ok, no problems!
Brody
Brody•7mo 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
Algeu Junior
Algeu JuniorOP•7mo ago
yes, i will
Algeu Junior
Algeu JuniorOP•7mo ago
No description
Brody
Brody•7mo ago
you have a backup service?
Algeu Junior
Algeu JuniorOP•7mo ago
yes, from railways s3 backup template but only bakcups once a day from last backup to now, there was new data added
Brody
Brody•7mo ago
gotcha btw your backup service is using the database's public url, meaning you are paying extra egress when a database backup runs
Algeu Junior
Algeu JuniorOP•7mo ago
oh, that's interesting. an alternative would a private url?
Brody
Brody•7mo ago
i can change that if you'd like?
Algeu Junior
Algeu JuniorOP•7mo ago
ill appreciate it!
Solution
Brody
Brody•7mo ago
database is back up
Algeu Junior
Algeu JuniorOP•7mo ago
omg, worked. and was no data loss!!
Brody
Brody•7mo ago
backup service updated too
Algeu Junior
Algeu JuniorOP•7mo ago
thanks a lot, Brody!!!
Brody
Brody•7mo ago
no problem!
Brody
Brody•7mo ago
non admins (me) cant delete stuff, so you can delete these two things
No description
Algeu Junior
Algeu JuniorOP•7mo ago
i'll migrate to pro now. i'll need to redeploy some service or additional configs??
Brody
Brody•7mo ago
after youve upgraded you will be asked what projects you want to move over to the pro workspace
Algeu Junior
Algeu JuniorOP•7mo ago
ok, i'll do it thank you one more time and have a nice day!
Brody
Brody•7mo ago
no prob, and you as well!
Want results from more Discord servers?
Add your server