Describe the problem/error/question
I tired to update to 2.x my docker setup and basic functions are broken, so I check the documentation Docker Compose | n8n Docs read forum posts, random dudes GH repos, chat to AI agents, vented out my frustration Self hosted 2.x an just given up, but now turning to the community.
There is no single error I can highlight, as I tried so many different options, and most have a different error.
What might makes my setup unique is that I still use:
- sqlite3 as a database
- single container with 1.x version
- blind mounts in docker
- python code blocks exclusively
I would like to update to 2.x while keeping the database, the blind mounts , I want to keep using python code block with the least amount of complexity / containers.
What is the error message (if any)?
Depends on the day or the way I try.
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.){
"nodes": [
{
"parameters": {
"language": "python",
"pythonCode": "# Loop over input items and add a new field called 'myNewField' to the JSON of each one\nfor item in _input.all():\n item.json.myNewField = 1\nreturn _input.all()"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
208,
0
],
"id": "8e21494e-cdf0-43aa-94a6-af0c02b8b1ad",
"name": "Code in Python (Native)"
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
-208
],
"id": "16e0537c-3d2b-4147-be2a-0b788137cbdd",
"name": "When clicking ‘Execute workflow’"
},
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.3,
"position": [
0,
0
],
"id": "ad72a85e-391a-47b1-85b6-9fd5b4c92496",
"name": "Schedule Trigger"
},
{
"parameters": {
"jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n item.json.myNewField = 1;\n}\n\nreturn $input.all();"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
208,
-208
],
"id": "ad7a64c6-8227-4061-b87b-63c44151db1e",
"name": "Code in JavaScript"
}
],
"connections": {
"Code in Python (Native)": {
"main": [
[]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Code in Python (Native)",
"type": "main",
"index": 0
},
{
"node": "Code in JavaScript",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Code in Python (Native)",
"type": "main",
"index": 0
},
{
"node": "Code in JavaScript",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"instanceId": "dc09a57def958482a6f655ae99b38636865e650e02c18374ef6475e57e109d9d"
}
}
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.123.17
- Database (default: SQLite): sqlite
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker compose
- Operating system: Linux