Error when running AI Agent node in n8n: SQLite issue

Hi n8n community. I’m facing an issue when using the AI Agent node in n8n.

CleanShot 2025-02-07 at 11.33.41

When running the workflow, I get the following error:

Problem running workflow  
Could not locate the bindings file. Tried:  
→ /usr/local/lib/node_modules/n8n/node_modules/sqlite3/build/node_sqlite3.node  
→ /usr/local/lib/node_modules/n8n/node_modules/sqlite3/build/Debug/node_sqlite3.node  
→ /usr/local/lib/node_modules/n8n/node_modules/sqlite3/build/Release/node_sqlite3.node  
...

The problem is that my n8n setup does not use SQLite at all. I am running n8n with PostgreSQL as the database, but for some reason, the error indicates a missing sqlite3 or better-sqlite3 dependency.

What I’ve tried so far:
• Reinstalled docker build
• Updated to 1.77.3

n8n setup

  • n8n version: 1.77.3
  • Database: Postgresql (managed DB on another server)
  • n8n EXECUTIONS_PROCESS setting: own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 24
1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

I Have a same problem.
n8n version: 1.77.3
postgres database on Azure: 16.4 (Burstable, B1ms, 1 vCores, 2 GiB RAM, 32 GiB storage)
Running n8n via desktop app. (pnpm start)
OP: Windows 11

Error:
Could not locate the bindings file. Tried: → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\build\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\build\Debug\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\build\Release\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\out\Debug\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\Debug\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\out\Release\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\Release\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\build\default\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\compiled\22.13.1\win32\x64\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\addon-build\release\install-root\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\addon-build\debug\install-root\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\addon-build\default\install-root\node_sqlite3.node → C:\Users\Developer\Documents\project_presentation\node_modules.pnpm\[email protected]\node_modules\sqlite3\lib\binding\node-v127-win32-x64\node_sqlite3.node

You can fix it with the Dockerfile setting:

This is row from official Dockerfile from n8n, which I found. It works!

1 Like

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