Replies: 7 comments 1 reply
-
|
In general, make sure your path is safe and accessible. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the response @AlterDevi - I havent changed anything at all and suddenly I get this error - Error: Invalid folder path: Path traversal detected. Please provide a safe folder path. Even the previous workflows are not working Correction - I did upgrade to 3.08 and started getting this error. Then I downgraded back to 3.07, and I still get this error |
Beta Was this translation helpful? Give feedback.
-
|
Do not downgrade, keep it up. |
Beta Was this translation helpful? Give feedback.
-
|
same error「Error: vectorsService.upsertVector - Error: Invalid folder path: Path traversal detected. Please provide a safe folder path.」 upsert to pinecone with "folder with files" 3.0.5 is fine. |
Beta Was this translation helpful? Give feedback.
-
|
Same happened here, I started using Flowise on 3.0.8 version so I cannot compare. |
Beta Was this translation helpful? Give feedback.
-
|
Still not fixed |
Beta Was this translation helpful? Give feedback.
-
|
Claude help me solve this question, for local docker desktop user. Flowise Local Adaptation Guide
📋 OverviewStarting from version 3.0.6, Flowise has enhanced its security measures, but these restrictions are overly strict for standalone local environments. This document records two critical modifications to adapt Flowise for local application scenarios. Use Cases
🔧 Modification 1: Allow Absolute Paths in ContainersProblem DescriptionFlowise 3.0.6+ introduced strict path validation that blocks all paths containing Error Message: Affected Features:
Official Security Background
SolutionFile Location: Lines to Modify: Lines 31-46 Before (Official Version)export const isPathTraversal = (path: string): boolean => {
// Check for common path traversal patterns
const dangerousPatterns = [
'..', // Directory traversal
'/', // Root directory ← Too strict, blocks all absolute paths!
'\\', // Windows root directory
'%2e', // URL encoded .
'%2f', // URL encoded /
'%5c' // URL encoded \
]
return dangerousPatterns.some((pattern) => path.toLowerCase().includes(pattern))
}After (Local Adaptation)export const isPathTraversal = (path: string): boolean => {
// Allow absolute paths in Linux containers (e.g., /data/...)
// but block directory traversal attempts
const dangerousPatterns = [
/\.\./, // Directory traversal (..)
/%2e%2e/i, // URL encoded ..
/%2f\.\./i, // URL encoded /../
/%5c/i, // URL encoded \ (Windows path)
/\0/, // Null bytes
/^[a-zA-Z]:\\/, // Windows absolute paths (C:\) - not allowed in Linux containers
/^\\\\[^\\]/, // UNC paths (\\server\) - not allowed in Linux containers
/%00/i // URL encoded null byte
]
return dangerousPatterns.some((pattern) => pattern.test(path))
}Comparison
🔧 Modification 2: Run Container as Root UserProblem DescriptionFlowise 3.012 defaults to switching to a non-root user ( Symptoms:
SolutionFile Location: Lines to Modify: Lines 38 and 41 Before (Official Version)# Give the node user ownership of the application files
RUN chown -R node:node .
# Switch to non-root user (node user already exists in node:20-alpine)
USER node
EXPOSE 3000
CMD [ "pnpm", "start" ]After (Local Adaptation)# Give the node user ownership of the application files
# RUN chown -R node:node .
# Switch to non-root user (node user already exists in node:20-alpine)
# USER node
EXPOSE 3000
CMD [ "pnpm", "start" ]Verification# Enter the container
docker exec -it <container_id> sh
# Check current user
whoami
# Should output: root (not node)🚀 Apply Modifications1. Clone or Update Flowise Sourcegit clone https://github.com/FlowiseAI/Flowise.git
cd Flowise2. Apply ModificationsManual Modification:
3. Rebuild Docker Imagedocker build --no-cache -t flowise .4. Stop Old Container# View container ID
docker ps
# Stop old container
docker stop <container_id>
# Remove old container (optional)
docker rm <container_id>5. Run New Containerdocker run -d -p 3000:3000 \
-v /path/to/your/data:/data \
-e DATABASE_PATH=/data/database \
-e APIKEY_PATH=/data/apikey \
-e SECRETKEY_PATH=/data/secretkey \
flowiseNote: Replace 📝 Environment Variables ExampleRecommended Configuration (Local Environment)# Data storage paths
DATABASE_PATH=/data/database
APIKEY_PATH=/data/apikey
SECRETKEY_PATH=/data/secretkey
# Log path
LOG_PATH=/data/logs
# File storage path
BLOB_STORAGE_PATH=/data/storage
# Port
PORT=3000Volume Mount Example# Linux/Mac
-v /home/user/flowise-data:/data
# Windows
-v D:\flowise-data:/data
|
| Version | Date | Changes |
|---|---|---|
| 3.012 | 2025-12-10 | Initial version: Path validation adaptation + root user configuration |
🤝 Acknowledgments
Thanks to the Flowise team for providing an excellent open-source project. The modifications in this document are intended for local standalone environments and do not affect the security improvements of the official version.
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I suddenly started getting an error during upsert. This was not happening before. I am going crazy trying to figure out why. Can anyone help?
Error: vectorsService.upsertVector - Error: Invalid folder path: Path traversal detected. Please provide a safe folder path.
I hadnt changed the paths, but since the error, I have tried relative paths also- but continue to get this error
Beta Was this translation helpful? Give feedback.
All reactions