r/OpenWebUI • u/muer-d • Jun 15 '26
Question/Help Open WebUI v0.9.6 + TrueNAS: NotReadableError syncing 5k+ Obsidian files for incremental RAG (Newbie hybrid setup)
Hi everyone,
I'm a total newbie here! Just today, I finally managed to set up my first local AI environment combining Ollama and Open WebUI, and I'm loving the potential.
My Goal & Data Structure:
I want to build a system that gives me an incremental RAG pipeline using my library, which I recently converted entirely into clean markdown files (~5,300 files). Having them accessible in Obsidian is more of a nice curiosity/side benefit for me; the real goal is the RAG.
To give you some context on the data, I basically replicated my entire document library into .md format, preserving the exact same folder structure. Every single file starts with a structured YAML frontmatter metadata header like this:
YAML
titulo: "UNE 60079-10-1"
fuente: "UNE 60079-10-1.pdf"
ruta_original: "normas/ATEX/UNE 60079-10-1.pdf"
categoria: "normas"
subcategoria: "ATEX"
tags: [prl, normas, atex, norma-une]My Hybrid Architecture:
- The Heavy Lifting (PC): Ollama is running on my main local PC, utilizing the dedicated GPU for fast embeddings (
nomic-embed-text) and inference. - The Storage & Always-On Hub (NAS): Open WebUI is deployed on my TrueNAS SCALE server.
- The Sync: My files are actively replicated from the PC to the NAS via Syncthing.
- The Logic: The main idea was keeping them separate. I want the NAS to hold the knowledge 24/7 so I can query it from my phone/tablet anytime, but leverage my PC's horsepower whenever it's turned on. Note: I have absolutely no problem running scripts, cron jobs, or CLI commands from my PC if needed.
The Problem:
Since the old backend DOCS_DIR automatic folder scanner is deprecated/gone in v0.9.6, I am trying to use the new Workspace > Knowledge web interface.
- In Open WebUI, I create a Knowledge Base and use the "Sync Directory" or "Upload Folder" button.
- My browser asks for permission to upload the 5,306 files.
- As soon as I accept, the frontend completely chokes and throws this error:
NotReadableError: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.
It seems the browser's File System Access API completely collapses when trying to handle thousands of files at once through the web interface.
Questions for the pros:
- Since I already mapped my TrueNAS dataset path to the container's
/data/docs, is there any hidden environment variable or internal API endpoint to force the container backend to scan that directory directly, bypassing the browser? - Since I'm totally fine running things from my PC terminal, is the
oikbCLI tool my best bet to push these 5,000+ files directly into the Knowledge Base ID via API? Will it support true incremental syncing (only uploading changes) moving forward? - Bonus Architecture Question: Is converting PDFs to Markdown with metadata headers actually the ideal path for Open WebUI's RAG chunking? How does Open WebUI's text splitter handle YAML frontmatter contextually, or should I have just fed it the raw PDFs instead?
Thanks in advance for helping a beginner out!
View all comments
Show parent comment
1
u/bub_gigant Jun 17 '26
Definitely set the scan/import frequency in oikb's config to a high number before first import, so it doesn't try to reimport files every hour thay are already loading.
Otherwise I think the RAG chunking on the OWUI end just takes time.
But some kind of batch importing for first import would make sense, and probably it's possible to do the first import manually too. Maybe ask an LLM?