Post-upgrade to 1.34.2 - Cannot Export Credentials (arose from hanging container)

Having trouble since the upgrade. Background is that the server appears to hang after executing larger workflows (just a guess) - I cannot log into the server using SSH or view the web interface. I can ping it so my guess is some sort of race condition. Restarted server and disabled all triggers.

The actual issue now is that I want to migrate to a bigger server so started to export Credentials in order to build the new instance. Getting errors but can’t find the reason the export fails.

What is the error message ?

Command failed: n8n export:credentials --ID=4mfQWtRc6RCmR8Sh --output=/files/creds/test.json

Please share your workflow

Share the output returned by the last node

Stack Trace:
{
“errorMessage”: “Command failed: n8n export:credentials --ID=4mfQWtRc6RCmR8Sh --output=/files/creds/test.json\n”,
“errorDetails”: {},
“n8nDetails”: {
“nodeName”: “Execute Command”,
“nodeType”: “n8n-nodes-base.executeCommand”,
“nodeVersion”: 1,
“itemIndex”: 0,
“time”: “8/04/2024, 10:13:31 am”,
“n8nVersion”: “1.34.2 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeOperationError: Command failed: n8n export:credentials --ID=4mfQWtRc6RCmR8Sh --output=/files/creds/test.json”,
“”,
" at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/ExecuteCommand/ExecuteCommand.node.js:77:27)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:724:19)“,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:660:53”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1062:20"
]
}
}

Information on your n8n setup

  • n8n version: 1.34.2
  • Database (default: SQLite): PostgreSQL 11
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker Compose
  • Operating system: Linux (ARM / Pi 6.1.21 Bullseye)

Just a note: export to STDOUT seems to work fine. Its the export --output option that seems to cause the issue. I have checked the filesystem and it is writeable from the container so I do not think that is the problem.

Can you please change ID to id (--id=4mfQWtRc6RCmR8Sh), and see if that fixes the issue?

2 Likes

Tried n8n export:credentials --id=4mfQWtRc6RCmR8Sh --output=/files/creds/test.json

Same result initially (have since upgraded to 1.36.1). Re-checked as perhaps ID value was wrong - corrected ID and worked fine.

So, all sorted. Underlying issue I guess is that the error message could be a little more informative (e.g. unrecognised parameter “ID” and unknown credential id).

All sorted. Thanks for the follow-up.

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