[BUG] flowiseai/flowise:3.1.4 fails to start (LangChain uuid, @smithy/eventstream-codec, connect-sqlite3)
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.
I was about to report the same bug.
- Fresh installation on an empty data directory.
- Same failure with no persisted database.
- flowiseai/flowise:3.1.2 fails.
- flowiseai/flowise:3.1.1 succeeds using the exact same Compose file and host.
Startup errors include:
- Package subpath './utils/uuid' is not defined by "exports"
- Cannot find module '@smithy/eventstream-codec'
- TypeError: this.db.exec is not a function
Confirming this same issue on Windows 11 with Docker Desktop, using the WSL2 backend.
Environment:
- Docker Desktop version: 4.84.0
- WSL2 kernel: 6.18.33.2-microsoft-standard-WSL2
- Ubuntu distro under WSL2, integration enabled
- Host OS: Windows 11
Steps taken:
Pulled flowiseai/flowise:latest fresh (no prior container or volume on this machine). At the time of pulling, latest resolved to 3.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.js
The 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.3 resolved it for me as a workaround.
Reproduced on flowiseai/flowise:3.1.4 (bare docker run -d flowiseai/flowise:3.1.4, fresh state) β identical logs, container exits(1) after All initialization steps completed successfully!.
Root cause of the fatal TypeError: this.db.exec is not a function: a connect-sqlite3 API change between the two images.
3.1.3ships[email protected], whereoptions.dbis a filename and the store opens the database itself:this.db = options.db || this.table; // ... dbPath = (options.dir || '.') + '/' + this.db;3.1.4ships[email protected], whereoptions.dbmust be an already-openedsqlite3.Databaseinstance:this.db = options.db; // ... this.db.exec('CREATE TABLE IF NOT EXISTS ...', ...)
Flowise's dist/enterprise/middleware/passport/SessionPersistance.js still uses the 0.9.16 calling convention:
dbStore = new sqlSession({
db: 'database.sqlite',
table: 'login_sessions',
dir: homePath
})
so 0.9.17 calls .exec on the string 'database.sqlite' and crashes. Pinning connect-sqlite3 to 0.9.16 (or passing an opened sqlite3.Database per the new API) should fix this one; the @langchain/core ./utils/uuid and missing @smithy/eventstream-codec errors are separate non-fatal packaging regressions in the same image.
Found while integrating Flowise into Harbor (https://github.com/av/harbor, commit f4e1281).
Root cause: [email protected], not Flowise 3.1.4
This is not a 3.1.4 regression. [email protected] changed its constructor so this.db.exec is no longer a function, which throws during session-store setup at boot:
TypeError: this.db.exec is not a function
at new SQLiteStore (connect-sqlite3/lib/connect-sqlite3.js:56:17)
at initializeDBClientAndStore (dist/enterprise/middleware/passport/SessionPersistance.js:96)
Because the dependency is unpinned, any Flowise container built after 0.9.17 was published fails β at any version.
Reproduced 2026-08-05:
| Build | connect-sqlite3 | Result |
|---|---|---|
official flowiseai/flowise:3.1.3 (built earlier) |
0.9.16 | boots |
fresh build of that same [email protected], today |
0.9.17 | crashes identically |
So 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-sqlite3 to 0.9.16 β the last working constructor, and what every functioning official image actually shipped:
RUN npm --prefix "$(npm root -g)/flowise" install --no-save [email protected]
@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 [email protected] regardless of tag:
| Image tag | Server actually shipped |
|---|---|
flowiseai/flowise:3.1.2 |
[email protected] |
flowiseai/flowise:3.1.3 |
[email protected] |
flowiseai/flowise:3.1.4 |
[email protected] |
docker/Dockerfile runs an unpinned npm install -g flowise. The version isn't part of the Docker layer cache key, so later builds reused the layer from when npm's latest was 3.1.2. [email protected] and @3.1.4 are published correctly on npm β no image ever contained them.
Practical impact: the security fixes released in [email protected] are absent from every published image. Anyone can check their own instance:
curl -s http://localhost:3000/api/v1/version
If that returns 3.1.2 while you run a 3.1.3/3.1.4 image, you're affected.
2. ARG NODE_VERSION=24 cannot build. better-sqlite3 fails under node-gyp (gyp ERR! not ok, node-gyp 8.4.1). Every published image runs Node v20.20.2, so CI must have been overriding the default β a plain docker build of the repo's own Dockerfile fails.
Verified working
With all three fixed, a build of [email protected] reaches:
β‘οΈ [server]: Flowise Server is listening at :3000
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.