hello, i am trying to import entities from an exsiting n8n instance to k8s and facing issues with imports
exported local n8n entities via podman n8n main container with a volume mounted to host machine to get folder of entities jsonl then compress at root level to obtain a single zip file
now when i try to import this into k8s n8n main pod, i get error of invalid json syntax.[ n8n import:entities --inputDir ./outputs --truncateTables true
] PS: there are other folders/files in the directory too. but the error is raised under some entities.js
i am finding it hard to pinpoint on what exactly is causing this issue. earlier i got a PK constraint violation error so I just deleted the DB and created a fresh one
i also ran unzip -t and it turned out clean on local setup No errors detected in compressed data of ./entities.zip.
any leads will be helpful
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Hey, can you share the actual error message you’re getting and maybe paste a snippet of one of the exported jsonl files? Also worth knowing what n8n versions you’re running on both the source and target instances since the export format has changed between versions.
Hi @adarsh-lm!
It seems that the import command is trying to read unsupported files in your output folder. Try creating a new folder with only the exported files and check whether your encryption key matches between the environments to avoid credential issues afterward.