Postgres Volume
arrudafernando
HOBBYOP

2 years ago

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.

48 Replies

arrudafernando
HOBBYOP

2 years ago

N/A


2 years ago

All your data will be deleted and won't be possible to restore it


arrudafernando
HOBBYOP

2 years ago

Is it possible to access /var/lib/postgresql/data to delete the downloaded files?


arrudafernando
HOBBYOP

2 years 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.

1271108632762646500


2 years 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.


arrudafernando
HOBBYOP

2 years ago

Project ID: 166d3751-42cb-4032-8849-ca8f64aac2f7


2 years ago

what is the current size of your volume?


arrudafernando
HOBBYOP

2 years ago

I can resize the volume.
However, it fails when opening the n8n application.


2 years ago

please answer the question


arrudafernando
HOBBYOP

2 years ago

It was 500 MB, I changed it to 1GB


2 years ago

please confirm that for me


arrudafernando
HOBBYOP

2 years ago

1271125796349804500


2 years ago

okay great, please explain what "it fails" means


arrudafernando
HOBBYOP

2 years ago

n8n application does not open

1271126668752326700


2 years ago

is n8n running?


arrudafernando
HOBBYOP

2 years ago

no


2 years ago

that would be the problem 😆


arrudafernando
HOBBYOP

2 years ago

yes


arrudafernando
HOBBYOP

2 years ago

I can't log into the application


arrudafernando
HOBBYOP

2 years ago

I already did redploy but I can't access it


2 years ago

what errors are you getting in the deployment logs


arrudafernando
HOBBYOP

2 years ago

I'll get


arrudafernando
HOBBYOP

2 years ago

esta caindo o serviço

1271129710591737900


2 years ago

English please


arrudafernando
HOBBYOP

2 years ago

inattention


2 years ago

why have they crashed


arrudafernando
HOBBYOP

2 years ago

1271130944073502700
1271130944400789500


2 years ago

not sure why you removed the image?


2 years ago

you need to redeploy the crashed services


arrudafernando
HOBBYOP

2 years ago

yes, I removed the postgres image, I returned the image with :last.
now it works.
I'm a beginner.
thanks


arrudafernando
HOBBYOP

2 years ago

I would still like to delete the files I downloaded and that filled up the memory.
How do I do this?


2 years 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


arrudafernando
HOBBYOP

2 years ago

ok


2 years ago

images are not stored in postgres


arrudafernando
HOBBYOP

2 years ago

I'm saying about this


2 years ago

files are not stored in postgres


2 years ago

being a hobby user you can grow your volume to 5GB


arrudafernando
HOBBYOP

2 years ago

but that suddenly filled the postgres memory


arrudafernando
HOBBYOP

2 years ago

ok. tanks


arrudafernando
HOBBYOP

2 years 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


arrudafernando
HOBBYOP

2 years 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.

1273256491016519700
1273256491343810600


2 years ago

as brody said, files are not stored in postgres. use an object/cloud bucket like amazon’s S3


arrudafernando
HOBBYOP

2 years ago

What would this increase in volume be with each execution of the workflow then?


2 years ago

are you storing any data about the pdf / accessing the database in any way? If not, it may just be coincidental


arrudafernando
HOBBYOP

2 years 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?

1273606749429039000
1273606749688959000
1273606750054125600


2 years ago

Uploaded the pdfs to where? Where are they stored?


arrudafernando
HOBBYOP

2 years ago

pinecone, but it has nothing to do with uploading, because the volume increases when downloading the pdf binary from google drive to n8n.


2 years 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.


Loading...