This repository was archived by the owner on Aug 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
[BUG] flowiseai/flowise:3.1.4 fails to start (LangChain uuid, @smithy/eventstream-codec, connect-sqlite3) #6688
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
After upgrading from 3.1.3 to 3.1.4, Flowise fails to start with dependency/init errors inside the image. The same failures occur on a fresh named volume with no existing database, so this is not a migration issue.
Errors observed:
Package subpath './utils/uuid' is not defined by "exports" in @langchain/core/package.jsonCannot find module '@smithy/eventstream-codec'TypeError: this.db.exec is not a functioninconnect-sqlite3
3.1.3 starts cleanly with the same host and Compose configuration.
To Reproduce
-
Pull the 3.1.4 image:
docker pull flowiseai/flowise:3.1.4
-
Create a fresh named volume:
docker volume create flowise-314-test
-
Ensure the volume is writable by the container’s
nodeuser (UID 1000):docker run --rm -v flowise-314-test:/data alpine chown -R 1000:1000 /data
-
Run a clean 3.1.4 container with minimal env:
docker run --rm --name flowise-314-clean \ -p 35454:35453 \ -e PORT=35453 \ -e DATABASE_PATH=/data \ -e LOG_PATH=/data/logs \ -e SECRETKEY_PATH=/data \ -e BLOB_STORAGE_PATH=/data/storage \ -v flowise-314-test:/data \ flowiseai/flowise:3.1.4
-
Observe startup logs:
2026-07-30 08:45:10 [INFO]: Starting Flowise...
2026-07-30 08:45:10 [INFO]: 📦 [server]: Data Source initialized successfully
2026-07-30 08:45:10 [INFO]: 🔄 [server]: Database migrations completed successfully
2026-07-30 08:45:10 [INFO]: 🔐 [server]: Identity Manager initialized successfully
2026-07-30 08:45:10 [ERROR]: ❌ [server]: Error during initDatabase with file /usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/agents/ReActAgentChat/ReActAgentChat.js: Package subpath './utils/uuid' is not defined by "exports" in /usr/local/lib/node_modules/flowise/node_modules/flowise-components/node_modules/@langchain/core/package.json
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './utils/uuid' is not defined by "exports" in /usr/local/lib/node_modules/flowise/node_modules/flowise-components/node_modules/@langchain/core/package.json
at exportsNotFound (node:internal/modules/esm/resolve:322:10)
...
2026-07-30 08:45:10 [ERROR]: ❌ [server]: Error during initDatabase with file /usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/agents/ReActAgentLLM/ReActAgentLLM.js: Package subpath './utils/uuid' is not defined by "exports" in /usr/local/lib/node_modules/flowise/node_modules/flowise-components/node_modules/@langchain/core/package.json
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './utils/uuid' is not defined by "exports" in /usr/local/lib/node_modules/flowise/node_modules/flowise-components/node_modules/@langchain/core/package.json
...
2026-07-30 08:45:11 [ERROR]: ❌ [server]: Error during initDatabase with file /usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/llms/AWSBedrock/AWSBedrock.js: Cannot find module '@smithy/eventstream-codec'
Require stack:
- /usr/local/lib/node_modules/flowise/node_modules/flowise-components/node_modules/@langchain/community/dist/llms/bedrock/web.cjs
- /usr/local/lib/node_modules/flowise/node_modules/flowise-components/node_modules/@langchain/community/dist/llms/bedrock/index.cjs
- /usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/llms/AWSBedrock/AWSBedrock.js
- /usr/local/lib/node_modules/flowise/dist/NodesPool.js
- /usr/local/lib/node_modules/flowise/dist/index.js
...
Error: Cannot find module '@smithy/eventstream-codec'
at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
...
2026-07-30 08:45:11 [INFO]: 🔧 [server]: Nodes pool initialized successfully
2026-07-30 08:45:11 [INFO]: ⏹ [server]: Abort controllers pool initialized successfully
2026-07-30 08:45:11 [INFO]: 🔑 [server]: Encryption key initialized successfully
2026-07-30 08:45:11 [INFO]: 🔐 [server]: Auth initialized successfully
2026-07-30 08:45:11 [INFO]: 🚦 [server]: Rate limiters initialized successfully
2026-07-30 08:45:11 [INFO]: 💾 [server]: Cache pool initialized successfully
2026-07-30 08:45:11 [INFO]: 📊 [server]: Usage cache manager initialized successfully
2026-07-30 08:45:11 [INFO]: 📈 [server]: Telemetry initialized successfully
2026-07-30 08:45:11 [INFO]: 🌊 [server]: SSE Streamer initialized successfully
2026-07-30 08:45:11 [INFO]: 🎉 [server]: All initialization steps completed successfully!
2026-07-30 08:45:11 [ERROR]: TypeError: this.db.exec is not a function
at new SQLiteStore (/usr/local/lib/node_modules/flowise/node_modules/connect-sqlite3/lib/connect-sqlite3.js:56:17)
at initializeDBClientAndStore (/usr/local/lib/node_modules/flowise/dist/enterprise/middleware/passport/SessionPersistance.js:96:23)
at _initializePassportMiddleware (/usr/local/lib/node_modules/flowise/dist/enterprise/middleware/passport/index.js:87:88)
...
Expected behavior
Flowise 3.1.4 should start successfully on a clean volume, or at least fail with a clear message if the image is defective. Instead, it crashes during component initialization with module resolution errors.
Screenshots
No response
Flow
No response
Use Method
Docker
Flowise Version
3.1.3,3.1.4
Operating System
Linux
Browser
Firefox
Additional context
Environment
- Flowise image:
flowiseai/flowise:3.1.4 - Runtime user (inside container):
uid=1000(node) gid=1000(node) - Host OS: Linux (Docker)
- Docker version: [your
docker versionoutput] - Docker Compose version: [your
docker compose versionoutput] - Reproducible: Yes, on a fresh named volume with no existing data.
flowiseai/flowise:3.1.3starts cleanly with the same host and volume strategy.- The errors occur inside the image’s bundled
node_modulesunder/usr/local/lib/node_modules/flowise/..., not in the user-provided/datavolume. - This is not a permission issue: the volume is
chown -R 1000:1000before starting. - No custom env vars beyond
PORT,DATABASE_PATH,LOG_PATH,SECRETKEY_PATH,BLOB_STORAGE_PATH.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Activity
willhennegan commentedon Jul 31, 2026
I was about to report the same bug.
Startup errors include:
J-Jaganathan commentedon Aug 1, 2026
Confirming this same issue on Windows 11 with Docker Desktop, using the WSL2 backend.
Environment:
Steps taken:
Pulled
flowiseai/flowise:latestfresh (no prior container or volume on this machine). At the time of pulling,latestresolved to3.1.4. Ran the container via Docker Desktop with default settings and no custom environment variables. The crash occurs during the session-store initialization step, before the server binds to any port, so port configuration is not a factor in reproducing it.Result:
Identical failure sequence to the one reported here:
Package subpath './utils/uuid' is not defined by "exports"for@langchain/coreCannot find module '@smithy/eventstream-codec'TypeError: this.db.exec is not a functionatconnect-sqlite3, thrown fromSessionPersistance.jsThe container reaches "All initialization steps completed successfully!" and then crashes on the session store init, which triggers a restart loop under Docker's default restart policy.
This confirms the bug is not specific to Linux/Docker Compose setups, host filesystem permissions, or migration from an older database. A completely fresh Windows/WSL2/Docker Desktop install with a first-time pull reproduces it the same way.
Pinning to
flowiseai/flowise:3.1.3resolved it for me as a workaround.av commentedon Aug 2, 2026
Reproduced on
flowiseai/flowise:3.1.4(baredocker run -d flowiseai/flowise:3.1.4, fresh state) — identical logs, container exits(1) afterAll initialization steps completed successfully!.Root cause of the fatal
TypeError: this.db.exec is not a function: aconnect-sqlite3API change between the two images.3.1.3shipsconnect-sqlite3@0.9.16, whereoptions.dbis a filename and the store opens the database itself:3.1.4shipsconnect-sqlite3@0.9.17, whereoptions.dbmust be an already-openedsqlite3.Databaseinstance:Flowise's
dist/enterprise/middleware/passport/SessionPersistance.jsstill uses the 0.9.16 calling convention:so 0.9.17 calls
.execon the string'database.sqlite'and crashes. Pinningconnect-sqlite3to0.9.16(or passing an openedsqlite3.Databaseper the new API) should fix this one; the@langchain/core./utils/uuidand missing@smithy/eventstream-codecerrors are separate non-fatal packaging regressions in the same image.Found while integrating Flowise into Harbor (https://github.com/av/harbor, commit f4e1281).
fix: create opened sqlite3.Database instance for connect-sqlite3 v0.9…
Pin connect-sqlite3 to 0.9.16 -- root cause of upstream FlowiseAI#6688
Add CHANGELOG and document the Docker image findings in README
dblagbro commentedon Aug 5, 2026
Root cause:
connect-sqlite3@0.9.17, not Flowise 3.1.4This is not a 3.1.4 regression.
connect-sqlite3@0.9.17changed its constructor sothis.db.execis no longer a function, which throws during session-store setup at boot:Because the dependency is unpinned, any Flowise container built after
0.9.17was published fails — at any version.Reproduced 2026-08-05:
flowiseai/flowise:3.1.3(built earlier)flowise@3.1.3, todaySo the "3.1.3 works, 3.1.4 is broken" split is an artifact of when each image was built, not of anything that changed between the releases. Anyone rebuilding 3.1.3 to escape this hits the same crash.
Fix
Pin
connect-sqlite3to0.9.16— the last working constructor, and what every functioning official image actually shipped:@PiedPiper911's #6706 fixes the same defect in the TypeScript source, which covers source builds; this covers npm-installed container builds. Both are needed.
Two other defects found while verifying
1. The published images ship the wrong server package. Every official image contains
flowise@3.1.2regardless of tag:flowiseai/flowise:3.1.2flowise@3.1.2flowiseai/flowise:3.1.3flowise@3.1.2flowiseai/flowise:3.1.4flowise@3.1.2docker/Dockerfileruns an unpinnednpm install -g flowise. The version isn't part of the Docker layer cache key, so later builds reused the layer from when npm'slatestwas 3.1.2.flowise@3.1.3and@3.1.4are published correctly on npm — no image ever contained them.Practical impact: the security fixes released in
flowise@3.1.3are absent from every published image. Anyone can check their own instance:If that returns
3.1.2while you run a3.1.3/3.1.4image, you're affected.2.
ARG NODE_VERSION=24cannot build.better-sqlite3fails under node-gyp (gyp ERR! not ok, node-gyp 8.4.1). Every published image runs Nodev20.20.2, so CI must have been overriding the default — a plaindocker buildof the repo's own Dockerfile fails.Verified working
With all three fixed, a build of
flowise@3.1.4reaches:Two non-fatal node-load failures remain (
@langchain/core./utils/uuid→ ReAct Agent;@smithy/eventstream-codec→ AWS Bedrock). The server starts and serves normally.Full reproduction and fixes: https://github.com/dblagbro/flow-wiser — an unofficial community continuation fork, not affiliated with FlowiseAI or Workday. Posting here so the diagnosis is preserved on the issue before this repository is archived on 2026-08-10.
Lead the README with the Docker warning, and explain the fix in full