Error upgrading to latest version, we use mysql as the database of n8n.
Our prior version of n8n was 0.188.0.
Initializing n8n process
/usr/local/lib/node_modules/n8n/dist/src/databases/migrations/mysqldb/1658932910559-AddNodeIds.js:43
nodes.forEach((node) => {
^
TypeError: nodes.forEach is not a function
at /usr/local/lib/node_modules/n8n/dist/src/databases/migrations/mysqldb/1658932910559-AddNodeIds.js:43:23
at Array.forEach (<anonymous>)
at /usr/local/lib/node_modules/n8n/dist/src/databases/migrations/mysqldb/1658932910559-AddNodeIds.js:41:23
at runChunked (/usr/local/lib/node_modules/n8n/dist/src/databases/utils/migrationHelpers.js:75:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async AddNodeIds1658932910559.up (/usr/local/lib/node_modules/n8n/dist/src/databases/migrations/mysqldb/1658932910559-AddNodeIds.js:40:9)
n8n started as expected. I then created a dummy workflow including at least one node. Lastly I removed all containers, changed the n8n version to 0.189.0. However, n8n would start again as expected.
So I am afraid I can’t quite see where the migration is failing for you unfortunately. Are you perhaps using an image other than n8nio/n8n:0.189.0 for your n8n container (a custom one for example)?
So in that case I’d say let’s wait if @mutdmour has any more insights to share on what this migration does.
If you urgently need to upgrade you can consider exporting your credentials and workflows from your 0.188.0 n8n instance using the CLI, stop your old 0.188.0 instance and start [email protected] using a fresh database, so no migration needs to happen. You can then import your workflows and credentials again.