R
Railway•4mo ago
Arruda

Postgres Volume

I use n8n with postgres, doing some tests I downloaded the same file several times and it filled up postgres. My question is what do I lose if I clean the volume, do I lose my credentials and workflows too? I can no longer access it to make a backup.
No description
Solution:
you need to redeploy the crashed services
Jump to solution
44 Replies
Percy
Percy•4mo ago
Project ID: N/A
Arruda
ArrudaOP•4mo ago
N/A
Medim
Medim•4mo ago
All your data will be deleted and won't be possible to restore it
Arruda
ArrudaOP•4mo ago
Is it possible to access /var/lib/postgresql/data to delete the downloaded files?
Arruda
ArrudaOP•4mo ago
I would like to increase the volume, but it is not enabling it. There has to be a way out, I can't lose everything.
No description
Medim
Medim•4mo ago
You can use the file browser template, but I don't suggest navigating through DB data. I will silenty tag @Brody here and see if it's possible to expand your volume size.
Arruda
ArrudaOP•4mo ago
Project ID: 166d3751-42cb-4032-8849-ca8f64aac2f7
Brody
Brody•4mo ago
what is the current size of your volume?
Arruda
ArrudaOP•4mo ago
I can resize the volume. However, it fails when opening the n8n application.
Brody
Brody•4mo ago
please answer the question
Arruda
ArrudaOP•4mo ago
It was 500 MB, I changed it to 1GB
Brody
Brody•4mo ago
please confirm that for me
Arruda
ArrudaOP•4mo ago
No description
Brody
Brody•4mo ago
okay great, please explain what "it fails" means
Arruda
ArrudaOP•4mo ago
n8n application does not open
No description
Brody
Brody•4mo ago
is n8n running?
Arruda
ArrudaOP•4mo ago
no
Brody
Brody•4mo ago
that would be the problem 😆
Arruda
ArrudaOP•4mo ago
yes I can't log into the application I already did redploy but I can't access it
Brody
Brody•4mo ago
what errors are you getting in the deployment logs
Arruda
ArrudaOP•4mo ago
I'll get
Arruda
ArrudaOP•4mo ago
esta caindo o serviço
No description
Brody
Brody•4mo ago
English please
Arruda
ArrudaOP•4mo ago
inattention
Brody
Brody•4mo ago
why have they crashed
Arruda
ArrudaOP•4mo ago
No description
No description
Brody
Brody•4mo ago
not sure why you removed the image?
Solution
Brody
Brody•4mo ago
you need to redeploy the crashed services
Arruda
ArrudaOP•4mo ago
yes, I removed the postgres image, I returned the image with :last. now it works. I'm a beginner. thanks I would still like to delete the files I downloaded and that filled up the memory. How do I do this?
Brody
Brody•4mo ago
please dont swap image tags if you dont know what you are doing, it can very easily lead to data loss, railway cant recover data if the user was at fault, luckily it didnt cause issues this time
Arruda
ArrudaOP•4mo ago
ok
Brody
Brody•4mo ago
images are not stored in postgres
Arruda
ArrudaOP•4mo ago
I'm saying about this
Brody
Brody•4mo ago
files are not stored in postgres being a hobby user you can grow your volume to 5GB
Arruda
ArrudaOP•4mo ago
but that suddenly filled the postgres memory ok. tanks
Arruda
ArrudaOP•4mo ago
I did more testing by running the n8n workflow by downloading the PDF file from Google Drive and Postgres went from 534MB to 545MB. I would like to know how to do it for which file is saved in Postgre. Please
Arruda
ArrudaOP•4mo ago
See that every time I download a PDF file from Google Drive to n8n my Postgres database increases in size. I would like to understand if this was supposed to happen. I have 2000 PDFs to process and this increase that occurred was only with 2 PDFs.
No description
No description
Adam
Adam•4mo ago
as brody said, files are not stored in postgres. use an object/cloud bucket like amazon’s S3
Arruda
ArrudaOP•4mo ago
What would this increase in volume be with each execution of the workflow then?
Adam
Adam•4mo ago
are you storing any data about the pdf / accessing the database in any way? If not, it may just be coincidental
Arruda
ArrudaOP•4mo ago
Sorry for so many questions, I'm a beginner. What I did was install N8N as shown in the image and I didn't do any configuration, I just accepted the default one to be able to use N8N. It's no coincidence that I uploaded 393 PDFs, see the increase in volume in the image. Can you tell me what I lose if I clean the volume? If I clean it and redistribute Postgres, will it work normally again?
No description
No description
No description
Adam
Adam•4mo ago
Uploaded the pdfs to where? Where are they stored?
Arruda
ArrudaOP•4mo ago
pinecone, but it has nothing to do with uploading, because the volume increases when downloading the pdf binary from google drive to n8n.
Adam
Adam•4mo ago
I’m sorry, but you’re really not making your problem clear. You’ve said that the volume increases while uploading, but now you’re saying it only happens when downloading? What data does this postgres db store? How does your script interact with it? If everything is done correctly and your script just pulls the pdf into Google Drive without interacting with the db, the db’s volume size should not increase.
Want results from more Discord servers?
Add your server