Execution log getting swamped with odd errors

Describe the problem/error/question

Getting numerous and odd error messages in the execution log in QUEUE mode

What is the error message (if any)?

The execution log has errors like

|Stock Information|Starting soon|Error in 28830759:43m (Success retry #22375)

The actual node getting the error is the “Execute Workflow node version 1 (Latest version: 1.1)”

Error is "column ProjectRelation__ProjectRelation_user.apiKey does not exist
"

We recently upgraded from 1.52.0 to 1.62.4 where there was a db upgrade that moved apiKey from the user table to the user_apikey table

Please share your workflow

Unfortunately I cannot

Information on your n8n setup

  • n8n version: 1.62.4
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu

some further error info from the node output

n8n version

1.62.4 (Self Hosted)

Stack trace

QueryFailedError: column ProjectRelation__ProjectRelation_user.apiKey does not exist at PostgresQueryRunner.query (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected][email protected]_rg7pzssmsoyrgkymlglpgzi36a/node_modules/src/driver/postgres/PostgresQueryRunner.ts:331:19) at processTicksAndRejections (node:internal/process/task_queues:95:5) at SelectQueryBuilder.loadRawResults (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected][email protected]_rg7pzssmsoyrgkymlglpgzi36a/node_modules/src/query-builder/SelectQueryBuilder.ts:3805:25) at SelectQueryBuilder.executeEntitiesAndRawResults (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected][email protected]_rg7pzssmsoyrgkymlglpgzi36a/node_modules/src/query-builder/SelectQueryBuilder.ts:3551:26) at SelectQueryBuilder.getRawAndEntities (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected][email protected]_rg7pzssmsoyrgkymlglpgzi36a/node_modules/src/query-builder/SelectQueryBuilder.ts:1670:29) at SelectQueryBuilder.getMany (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected][email protected]_rg7pzssmsoyrgkymlglpgzi36a/node_modules/src/query-builder/SelectQueryBuilder.ts:1760:25) at ProjectRelationRepository.getPersonalProjectOwners (/usr/local/lib/node_modules/n8n/dist/databases/repositories/project-relation.repository.js:21:16) at OwnershipService.getPersonalProjectOwnerCached (/usr/local/lib/node_modules/n8n/dist/services/ownership.service.js:44:26) at PermissionChecker.check (/usr/local/lib/node_modules/n8n/dist/user-management/permission-checker.js:26:34) at Object.executeWorkflow (/usr/local/lib/node_modules/n8n/dist/workflow-execute-additional-data.js:561:9)

thing is user.apiKey does not exist in 1.62.4 … so where is it coming from ?

Hi @jmls

We released a db migration fix with 1.62.3 but since you’ve updated from 1.52.0 this is a big jump and it may need a restart of your instance.
Alternatively you can update to the latest again (1.64.3). That should also trigger the db migration and remove the user.apiKey error logs.

Let us know if this fixes it! :raised_hands:

1 Like

our postgres database has been migrated - there is no apiKey on the user table, amd there’s a user_apikey table now

The error is that the node is complaining that it can’t find the user.apiKey - which is obvious, as the migration has removed it !

we have also restarted the instance several times. This is a self-hosted stack running uder docker

Hi @jmls

Can you please try to update your instance once again and also update the node version of the Execute Workflow node? (Just add a new node from the nodes panel and replace the old one)

Please let us know if that helped :pray:

I faced the same error. In my case I was on version 1.58.0 self-hosted in docker swarm. Changing to version 1.64.3, prune services, re-pull image and redeploy stack solved my issue.

1 Like

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