Hi I’ve tried this:
I double-checked that I only have one n8n instance running. I also just completely wiped my VPS and started from scratch, and I’m still running into the same issue. I have a bash script that I use to bootstrap n8n. It’s pretty much the same as what I wrote above, but here it is so you can see exactly what I’m doing.
cat > ~/apps/n8n/docker-compose.yml << EOF
But I’m still unsure of where to put my
workflows.json file so I can run;
docker exec -it -u node n8nDocker n8n import:workflow --input=workflows.json
I’ve tried putting the file in
/home/myusername and linking directly in the command, but as n8n is in Docker I’m assuming that will never work. So I tried in
/var/lib/docker/volumes/n8nDocker-data/_data/workflows.json and still nothing.
I always get;
ENOENT: no such file or directory, open 'workflows.json'
Make sure you’re copying the file into the container. The working directory when you execute a command in the container is
--input=workflows.json is looking for
docker cp /path/to/workflows.json n8n:/data/
@adamhl8 thank you, very much appreciated, was tearing my hair out!