R
RailwayAlgeu 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
P
Percy18d ago
Project ID: 6f1d26dd-c104-43d6-8f3d-2f6bc6f9042c
AJ
Algeu Junior18d ago
6f1d26dd-c104-43d6-8f3d-2f6bc6f9042c i cant set the previous value: shared_preload_libraries = 'timescaledb';
B
Brody18d ago
did you have a backup?
AJ
Algeu Junior18d ago
@Brody, actually i don't have a backup
B
Brody18d ago
is there important data on the database?
AJ
Algeu Junior18d 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
B
Brody18d ago
yeah but the only difference is that they are on the Pro plan
AJ
Algeu Junior18d ago
oh no 😦
B
Brody18d 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
AJ
Algeu Junior18d ago
i'll appreciate that if i migrate for pro right now, helps?
B
Brody18d 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?
AJ
Algeu Junior18d ago
i understand, then i'll wait and migrate for pro after this it's railway's postgres base template
B
Brody18d 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
AJ
Algeu Junior18d 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
B
Brody18d ago
what version
AJ
Algeu Junior18d ago
pg 15
No description
AJ
Algeu Junior18d ago
thats right?
B
Brody18d ago
i take it this is a migrated database?
AJ
Algeu Junior18d ago
yes! from mandatory migration that occurred at jan/2024, right?
B
Brody18d ago
how much of the volume is used?
AJ
Algeu Junior18d ago
are you referring to disk space and memory?
B
Brody18d ago
just disk space
AJ
Algeu Junior18d ago
less than 2 GB
B
Brody18d ago
if im able to work out a plan of action would you be down to let me do it?
AJ
Algeu Junior18d ago
yes, of course
B
Brody18d ago
know that i dont take any responsibility for data loss
B
Brody18d ago
No description
No description
AJ
Algeu Junior18d ago
ok, no problems!
B
Brody18d 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
AJ
Algeu Junior18d ago
yes, i will
B
Brody18d ago
brodyover@gmail.com
AJ
Algeu Junior18d ago
No description
B
Brody18d ago
you have a backup service?
AJ
Algeu Junior18d ago
yes, from railways s3 backup template but only bakcups once a day from last backup to now, there was new data added
B
Brody18d ago
gotcha btw your backup service is using the database's public url, meaning you are paying extra egress when a database backup runs
AJ
Algeu Junior18d ago
oh, that's interesting. an alternative would a private url?
B
Brody18d ago
i can change that if you'd like?
AJ
Algeu Junior18d ago
ill appreciate it!
Solution
B
Brody18d ago
database is back up
AJ
Algeu Junior18d ago
omg, worked. and was no data loss!!
B
Brody18d ago
backup service updated too
AJ
Algeu Junior18d ago
thanks a lot, Brody!!!
B
Brody18d ago
no problem!
B
Brody18d ago
non admins (me) cant delete stuff, so you can delete these two things
No description
AJ
Algeu Junior18d ago
i'll migrate to pro now. i'll need to redeploy some service or additional configs??
B
Brody18d ago
after youve upgraded you will be asked what projects you want to move over to the pro workspace
AJ
Algeu Junior18d ago
ok, i'll do it thank you one more time and have a nice day!
B
Brody18d ago
no prob, and you as well!
Want results from more Discord servers?
Add your server
More Posts
backup postgres R2What's the problem with this error? wrong credential? ``` Error while running backup: Error: getaddI cant deploy.Hello! i for some reason cant deploy my self hosted version of the zeppelin discord bot. Please helpHow do I create a template from the following Docker files?`Dockerfile` ```yml FROM postgres:16-alpine3.19 RUN apk -U add --no-cache \ alpine-sdk \ curl-Is it possible to use Redis?After all that has happened to Redis, is it still possible to create a Docker image and update it toIs it possible to use Redis?After all that has happened to Redis, is it still possible to create a Docker image and receive updaWatch paths to ignore on PR deployment (preview)I have watch paths set on the `preview` environment, but am still seeing instances spin up for new PPayment fails on portal but is success on Visa appWhen I try to subscribe to hobby plan, my payment fails on the railway site with "card declined" wheCannot change nixpkgsArchive hash from railway.tomlHello, seems like I can't change the nixpkgs archive version from railway.toml ``` [build] builder =can i use railway postgres db with @vercel/postgres ?I am try trying to use railway postgress db with @vercel/postgres. Is it compatible? How do I map raIssue Deploying Django App with Gunicorn on RailwayIt's been a few days of trying to get this up for some production tests but I'm having issues gettinPrisma Nickpacks with Bun errorWhen trying to build nixpacks with bun and prisma using this config: ```toml # nixpacks.toml [phasesHow to retrieve env vars from railway?I need to use them in github action and I don't want to have them as a secret in github as well as iDjango app, slow server responseI am having django app, regular django templates. Database is on google cloud. This is railway reMongoDB prismaWhen ever i try to connect my mongodb with prisma i does not work :( when i genarate the schema it gAccessing an image within a railway. app PGS databaseHi all, Absolutely love Railway.app but just wondering if anyone can assist with accessing an imagincorrect cron time trigger@Brody I'm using your template (https://railway.app/template/fwH-l3) and it seems to trigger at incoHow do I connect Webste <-> Server <-> Database❓Github code for Main website in public and server.js https://github.com/Lanonymus/todowebsite/tree/mDevika DeployProject ID: ec66fb06-96a7-4f3e-8481-72f97991dc35 Hello, I am trying to deploy Github project DevikaLaravel Image upload returns 413 (file too large)Hi, I have endpoint in my laravel app that uploads images but it returns with the status code of 413RAILWAY_TCP_PROXY_DOMAIN and RAILWAY_TCP_PROXY_PORT are emptyI noticed this morning, in my Postgres database PGPORT is set ${{RAILWAY_TCP_PROXY_PORT}} but it's e