Error when updating to new version

Hello, I recently updated the N8N version on my server and got the following error:
When I run the command: “docker compose up” I get an error: [EACCES] Error Plugin: n8n: EACCES: permission denied, open ‘/home/node/.n8n/config’

The following is my docker-compose.yml file

I tried changing the “node” in the path using “ubuntu”. The system works normally again, but I have to set up my account again from scratch and lose all the old workflows I did.

I would like to ask how to fix it and if I can’t fix it, how can I get back the Workflows I did on the VPS?

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: VPS Hetzer Ubuntu 22.04.3 LTS

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:

hello @Con_Ga

That usually means that the n8n cannot access the directory due to the lack of permissions. Maybe the previous instance used a different user as the owner. You can try changing the folder’s permissions with the command:

sudo docker container exec <n8n_container_name/id> chown -R node /home/node/*

I ran the command as you said, but it seems the container cannot start so it gives the following error:

And I tried running the command: ‘docker compose up’ and got the following error:

I think the container is not being started right now so the command you gave cannot be executed.