While importing workflows & credentials into a new docker container only partial workflows & credentials get imported and not all of them present in the export json. Also, on re-import on the new docker container, duplicates of the workflows & credentials imported previously get created with different workflow ids
Information on the n8n setup
n8n version: 0.191.1
Database you’re using: postgress 13
Running n8n via: Docker compose with workers in different containers
I am very sorry to hear you’re having trouble. Any chance you can provide an example of how to reproduce this (share a workflow which is only imported partially and the export/import commands used here)?
Thanks @hansenquadros. any chance you can share a workflow that isn’t imported as expected when using n8n import:workflow --input=/data/prod/n8n_flows.json? And can you confirm how exactly you have exported it in the first place?
Hey @hansenquadros, I tried exporting the example workflow you have provided using n8n export:workflow --all --output=./test.json against a test instance running [email protected]. This has worked fine:
Hey @MutedJam, got the issue solved by moving from Postgres DB to MySQL DB. I feel the issue was caused because of Postgres’s strict auto increment on workflows import that was changing worflow ids.
Glad to hear you solved it, thanks so much for confirming! As mentioned, I couldn’t reproduce this myself, but I’ll add it to our internal ideas list for a closer look by the product and engineering teams going forward.