Hey guys! I have my n8n installed in docker on Ubuntu 24.04.3 LTS. Tried to upgrade it from 1.118.1 to the latest. However, it didn’t work out… The only success I have is with any version until 1.120.3. As of 1.121 I get the following errors (see below) in my logs and n8n just keeps running the same loop over and over trying to start. Any solutions?
2025-12-02T12:51:56.535Z | error | function gen_random_uuid() does not exist {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:52:32.258Z | debug | User settings loaded from: /root/.n8n/config {“file”:“instance-settings.js”,“function”:“loadOrCreate”}
2025-12-02T12:52:32.675Z | debug | Received CLI command {“execPath”:“/usr/local/bin/node”,“scriptPath”:“/usr/local/bin/n8n”,“args”:,“flags”:{},“file”:“cli-parser.js”,“function”:“parse”}
2025-12-02T12:52:32.708Z | error | Last session crashed {“file”:“crash-journal.js”,“function”:“init”}
2025-12-02T12:52:42.719Z | info | Initializing n8n process {“file”:“start.js”,“function”:“init”}
2025-12-02T12:52:44.073Z | debug | Lazy-loading nodes and credentials from n8n-nodes-base {“nodes”:484,“credentials”:389,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:52:44.207Z | debug | Lazy-loading nodes and credentials from @n8n/n8n-nodes-langchain {“nodes”:110,“credentials”:26,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:52:46.294Z | info | n8n ready on ::, port 5678 {“file”:“abstract-server.js”,“function”:“init”}
2025-12-02T12:52:46.388Z | warn | Migrations in progress, please do NOT stop the process. {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
2025-12-02T12:52:46.390Z | info | Starting migration ChangeDefaultForIdInUserTable1762771264000 {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
Migration “ChangeDefaultForIdInUserTable1762771264000” failed, error: function gen_random_uuid() does not exist
2025-12-02T12:52:46.408Z | error | There was an error running database migrations {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:52:46.411Z | error | function gen_random_uuid() does not exist {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:53:09.892Z | debug | User settings loaded from: /root/.n8n/config {“file”:“instance-settings.js”,“function”:“loadOrCreate”}
2025-12-02T12:53:10.242Z | debug | Received CLI command {“execPath”:“/usr/local/bin/node”,“scriptPath”:“/usr/local/bin/n8n”,“args”:,“flags”:{},“file”:“cli-parser.js”,“function”:“parse”}
2025-12-02T12:53:10.255Z | error | Last session crashed {“file”:“crash-journal.js”,“function”:“init”}
2025-12-02T12:53:20.263Z | info | Initializing n8n process {“file”:“start.js”,“function”:“init”}
2025-12-02T12:53:21.234Z | debug | Lazy-loading nodes and credentials from n8n-nodes-base {“nodes”:484,“credentials”:389,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:53:21.322Z | debug | Lazy-loading nodes and credentials from @n8n/n8n-nodes-langchain {“nodes”:110,“credentials”:26,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:53:22.683Z | info | n8n ready on ::, port 5678 {“file”:“abstract-server.js”,“function”:“init”}
2025-12-02T12:53:22.748Z | warn | Migrations in progress, please do NOT stop the process. {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
2025-12-02T12:53:22.751Z | info | Starting migration ChangeDefaultForIdInUserTable1762771264000 {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
Migration “ChangeDefaultForIdInUserTable1762771264000” failed, error: function gen_random_uuid() does not exist
2025-12-02T12:53:22.768Z | error | There was an error running database migrations {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:53:22.769Z | error | function gen_random_uuid() does not exist {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:53:45.500Z | debug | User settings loaded from: /root/.n8n/config {“file”:“instance-settings.js”,“function”:“loadOrCreate”}
2025-12-02T12:53:45.731Z | debug | Received CLI command {“execPath”:“/usr/local/bin/node”,“scriptPath”:“/usr/local/bin/n8n”,“args”:,“flags”:{},“file”:“cli-parser.js”,“function”:“parse”}
2025-12-02T12:53:45.740Z | error | Last session crashed {“file”:“crash-journal.js”,“function”:“init”}
2025-12-02T12:53:55.746Z | info | Initializing n8n process {“file”:“start.js”,“function”:“init”}
2025-12-02T12:53:56.405Z | debug | Lazy-loading nodes and credentials from n8n-nodes-base {“nodes”:484,“credentials”:389,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:53:56.480Z | debug | Lazy-loading nodes and credentials from @n8n/n8n-nodes-langchain {“nodes”:110,“credentials”:26,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:53:57.766Z | info | n8n ready on ::, port 5678 {“file”:“abstract-server.js”,“function”:“init”}
2025-12-02T12:53:57.820Z | warn | Migrations in progress, please do NOT stop the process. {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
2025-12-02T12:53:57.822Z | info | Starting migration ChangeDefaultForIdInUserTable1762771264000 {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
Migration “ChangeDefaultForIdInUserTable1762771264000” failed, error: function gen_random_uuid() does not exist
2025-12-02T12:53:57.843Z | error | There was an error running database migrations {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:53:57.845Z | error | function gen_random_uuid() does not exist {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:54:19.731Z | debug | User settings loaded from: /root/.n8n/config {“file”:“instance-settings.js”,“function”:“loadOrCreate”}
2025-12-02T12:54:20.042Z | debug | Received CLI command {“execPath”:“/usr/local/bin/node”,“scriptPath”:“/usr/local/bin/n8n”,“args”:,“flags”:{},“file”:“cli-parser.js”,“function”:“parse”}
2025-12-02T12:54:20.057Z | error | Last session crashed {“file”:“crash-journal.js”,“function”:“init”}
2025-12-02T12:54:30.072Z | info | Initializing n8n process {“file”:“start.js”,“function”:“init”}
2025-12-02T12:54:31.717Z | debug | Lazy-loading nodes and credentials from n8n-nodes-base {“nodes”:484,“credentials”:389,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:54:31.792Z | debug | Lazy-loading nodes and credentials from @n8n/n8n-nodes-langchain {“nodes”:110,“credentials”:26,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:54:33.095Z | info | n8n ready on ::, port 5678 {“file”:“abstract-server.js”,“function”:“init”}
2025-12-02T12:54:33.148Z | warn | Migrations in progress, please do NOT stop the process. {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
2025-12-02T12:54:33.149Z | info | Starting migration ChangeDefaultForIdInUserTable1762771264000 {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
Migration “ChangeDefaultForIdInUserTable1762771264000” failed, error: function gen_random_uuid() does not exist
2025-12-02T12:54:33.166Z | error | There was an error running database migrations {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:54:33.170Z | error | function gen_random_uuid() does not exist {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:54:55.930Z | debug | User settings loaded from: /root/.n8n/config {“file”:“instance-settings.js”,“function”:“loadOrCreate”}
2025-12-02T12:54:56.260Z | debug | Received CLI command {“execPath”:“/usr/local/bin/node”,“scriptPath”:“/usr/local/bin/n8n”,“args”:,“flags”:{},“file”:“cli-parser.js”,“function”:“parse”}
2025-12-02T12:54:56.274Z | error | Last session crashed {“file”:“crash-journal.js”,“function”:“init”}
2025-12-02T12:55:06.284Z | info | Initializing n8n process {“file”:“start.js”,“function”:“init”}
2025-12-02T12:55:07.186Z | debug | Lazy-loading nodes and credentials from n8n-nodes-base {“nodes”:484,“credentials”:389,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:55:07.367Z | debug | Lazy-loading nodes and credentials from @n8n/n8n-nodes-langchain {“nodes”:110,“credentials”:26,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:55:09.083Z | info | n8n ready on ::, port 5678 {“file”:“abstract-server.js”,“function”:“init”}
2025-12-02T12:55:09.175Z | warn | Migrations in progress, please do NOT stop the process. {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
2025-12-02T12:55:09.176Z | info | Starting migration ChangeDefaultForIdInUserTable1762771264000 {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
Migration “ChangeDefaultForIdInUserTable1762771264000” failed, error: function gen_random_uuid() does not exist
2025-12-02T12:55:09.193Z | error | There was an error running database migrations {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:55:09.195Z | error | function gen_random_uuid() does not exist {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:55:26.555Z | debug | User settings loaded from: /root/.n8n/config {“file”:“instance-settings.js”,“function”:“loadOrCreate”}
2025-12-02T12:55:26.756Z | debug | Received CLI command {“execPath”:“/usr/local/bin/node”,“scriptPath”:“/usr/local/bin/n8n”,“args”:,“flags”:{},“file”:“cli-parser.js”,“function”:“parse”}
2025-12-02T12:55:26.764Z | error | Last session crashed {“file”:“crash-journal.js”,“function”:“init”}
2025-12-02T12:55:36.770Z | info | Initializing n8n process {“file”:“start.js”,“function”:“init”}
2025-12-02T12:55:37.440Z | debug | Lazy-loading nodes and credentials from n8n-nodes-base {“nodes”:484,“credentials”:389,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:55:37.537Z | debug | Lazy-loading nodes and credentials from @n8n/n8n-nodes-langchain {“nodes”:110,“credentials”:26,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:55:39.237Z | info | n8n ready on ::, port 5678 {“file”:“abstract-server.js”,“function”:“init”}
2025-12-02T12:55:39.298Z | warn | Migrations in progress, please do NOT stop the process. {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
2025-12-02T12:55:39.300Z | info | Starting migration ChangeDefaultForIdInUserTable1762771264000 {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
Migration “ChangeDefaultForIdInUserTable1762771264000” failed, error: function gen_random_uuid() does not exist
2025-12-02T12:55:39.321Z | error | There was an error running database migrations {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:55:39.322Z | error | function gen_random_uuid() does not exist {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:56:02.275Z | debug | User settings loaded from: /root/.n8n/config {“file”:“instance-settings.js”,“function”:“loadOrCreate”}
2025-12-02T12:56:02.751Z | debug | Received CLI command {“execPath”:“/usr/local/bin/node”,“scriptPath”:“/usr/local/bin/n8n”,“args”:,“flags”:{},“file”:“cli-parser.js”,“function”:“parse”}
2025-12-02T12:56:02.770Z | error | Last session crashed {“file”:“crash-journal.js”,“function”:“init”}
2025-12-02T12:56:12.779Z | info | Initializing n8n process {“file”:“start.js”,“function”:“init”}
2025-12-02T12:56:13.595Z | debug | Lazy-loading nodes and credentials from n8n-nodes-base {“nodes”:484,“credentials”:389,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:56:13.657Z | debug | Lazy-loading nodes and credentials from @n8n/n8n-nodes-langchain {“nodes”:110,“credentials”:26,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:56:14.889Z | info | n8n ready on ::, port 5678 {“file”:“abstract-server.js”,“function”:“init”}
2025-12-02T12:56:14.953Z | warn | Migrations in progress, please do NOT stop the process. {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
2025-12-02T12:56:14.955Z | info | Starting migration ChangeDefaultForIdInUserTable1762771264000 {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
Migration “ChangeDefaultForIdInUserTable1762771264000” failed, error: function gen_random_uuid() does not exist
2025-12-02T12:56:14.997Z | error | There was an error running database migrations {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:56:14.998Z | error | function gen_random_uuid() does not exist {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:56:33.444Z | debug | User settings loaded from: /root/.n8n/config {“file”:“instance-settings.js”,“function”:“loadOrCreate”}
2025-12-02T12:56:33.718Z | debug | Received CLI command {“execPath”:“/usr/local/bin/node”,“scriptPath”:“/usr/local/bin/n8n”,“args”:,“flags”:{},“file”:“cli-parser.js”,“function”:“parse”}
2025-12-02T12:56:33.733Z | error | Last session crashed {“file”:“crash-journal.js”,“function”:“init”}
2025-12-02T12:56:43.738Z | info | Initializing n8n process {“file”:“start.js”,“function”:“init”}
2025-12-02T12:56:44.438Z | debug | Lazy-loading nodes and credentials from n8n-nodes-base {“nodes”:484,“credentials”:389,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:56:44.512Z | debug | Lazy-loading nodes and credentials from @n8n/n8n-nodes-langchain {“nodes”:110,“credentials”:26,“file”:“lazy-package-directory-loader.js”,“function”:“loadAll”}
2025-12-02T12:56:46.128Z | info | n8n ready on ::, port 5678 {“file”:“abstract-server.js”,“function”:“init”}
2025-12-02T12:56:46.182Z | warn | Migrations in progress, please do NOT stop the process. {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
2025-12-02T12:56:46.183Z | info | Starting migration ChangeDefaultForIdInUserTable1762771264000 {“file”:“migration-helpers.js”,“function”:“logMigrationStart”}
Migration “ChangeDefaultForIdInUserTable1762771264000” failed, error: function gen_random_uuid() does not exist
2025-12-02T12:56:46.201Z | error | There was an error running database migrations {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:56:46.202Z | error | function gen_random_uuid() does not exist {“file”:“error-reporter.js”,“function”:“defaultReport”}
2025-12-02T12:57:05.400Z | debug | User settings loaded from: /root/.n8n/config {“file”:“instance-settings.js”,“function”:“loadOrCreate”}
2025-12-02T12:57:05.576Z | debug | Received CLI command {“execPath”:“/usr/local/bin/node”,“scriptPath”:“/usr/local/bin/n8n”,“args”:,“flags”:{},“file”:“cli-parser.js”,“function”:“parse”}
2025-12-02T12:57:05.584Z | error | Last session crashed {“file”:“crash-journal.js”,“function”:“init”}
Describe the problem/error/question
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.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: