Can't create n8n_data volume correctly

Hello. I’m trying to install n8n using this Docker Compose guide: Docker Compose | n8n Docs
When I first got to Step 8 and used sudo docker compose up -d I got an error that said:

Error response from daemon: failed to populate volume: error evaluating symlinks from mount source "/var/lib/docker/volumes/n8n_data/_data": lstat /var/lib/docker/volumes/n8n_data: no such file or directory

I checked the /var/lib/docker/volumes and in fact, there was no n8n_data volume, even though I was sure I created it on Step 7 with sudo docker volume create n8n_data. The traefik_data volume was created as expected.
I tried creating a n8n_data folder directly inside the docker volumes and ran the composer again, but now it said:

Error response from daemon: failed to populate volume: error evaluating symlinks from mount source "/var/lib/docker/volumes/n8n_data/_data": lstat /var/lib/docker/volumes/n8n_data/_data: no such file or directory

I tried creating a _data file inside the n8n_data, but I didn’t know what to put in it… I tried searching for it but found nothing.
I did use the - /local-files:/files line on the docker-compose.yml, if that makes a difference. I removed it and tried running again, but nothing changed.

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 20.04

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Nevermind. I deleted the old n8n_data with docker volume rm n8n_data (even though it wasn’t appearing or being found by the composer) and created a new one, then it worked.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.