[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.4Create a fresh named volume:
docker volume create flowise-314-testEnsure the volume is writable by the container’s
nodeuser (UID 1000):docker run --rm -v flowise-314-test:/data alpine chown -R 1000:1000 /dataRun 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.4Observe 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.
Source: FlowiseAI/Flowise