Skip to content

Commit bc86850

Browse files
Added markdown notes
1 parent e9b7b83 commit bc86850

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

changelogs/V4.0/V4.0.0_changelog_V2.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,19 @@ The ingest system has been refined with better logging, smarter error handling,
306306

307307
Running CWA on a NAS or network share? Network Share Mode makes it possible with intelligent adaptations for NFS/SMB environments.
308308

309+
> [!IMPORTANT]
310+
> Always set NETWORK_SHARE_MODE=true when running CWA on NFS/SMB shares to prevent database corruption and permission errors.
311+
309312
### What It Does
310313
- **Disables SQLite WAL Mode** - Write-Ahead Logging requires file locking guarantees that many network filesystems can't provide. When `NETWORK_SHARE_MODE=true`, CWA automatically disables WAL on `metadata.db` and `app.db` to prevent "database is locked" errors and corruption risks
314+
> [!WARNING]
315+
> Enabling WAL mode on network shares can cause “database is locked” errors and potential data loss.
311316
- **Skips Permission Operations** - Suppresses recursive `chown` operations that fail or cause permission conflicts on network shares (NFS often ignores or misinterprets ownership changes)
312317
- **Polling-Based File Watching** - Switches from `inotify` to a polling watcher that scans for new files every 5 seconds. Network filesystems often don't propagate filesystem events reliably, and polling ensures ingest always works
318+
> [!NOTE]
319+
> Polling mode may introduce a few seconds of delay when detecting new files, but ensures reliability on network shares.
320+
> [!TIP]
321+
> You can force polling mode on any setup with CWA_WATCH_MODE=poll.
313322
314323
### When You Need It
315324
- **NFS Mounts** - Synology, TrueNAS, QNAP network shares

0 commit comments

Comments
 (0)