Information on your n8n setup
- **n8n version: 1.76.2
- **Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- **Running n8n via Docker, npm, n8n cloud, desktop app): Docker
- **Operating system: Ubuntu 20.04
I am new to n8n and i am now struggling with the write to disk step.
I am checking now since several ours and trying different solutions from google, the n8n community and so on, but nothing is working.
My last docker-compose file for the n8n volumes is
n8n:
image: docker.n8n.io/n8nio/n8n
# build: .
restart: always
environment:
- N8N_SECURE_COOKIE=false
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
ports:
- 5678:5678
links:
- postgres
volumes:
- n8n_storage:/home/node/.n8n
- /home/rauscher/n8n/files:/files
depends_on:
postgres:
condition: service_healthy
This is more or less the original docker-compose file from n8n github.
I changed the volume as mentioned in several posts to /home/rauscher/n8n/files:/files
where the left side is exsiting on my linux server and the right side should be generated by the docker compose up.
after a check inside my docker the directory was created successfull, but i still get the error in the workflow
I dont know what i can change the only thing i can find is that the directory files which is created inside the docker has 1002:1002 user and not node:node.
If i try to write a file into the /home/node directory of the docker container, then its working, but this folder is not able to link to the root system.
Thanks