text
text copied to clipboard
Text app v6.0.1 fails with "File not found" / NotFoundException on NC 32.0.2 (AIO)
Bug description
After upgrading to Nextcloud 32.0.2 (Hub 25 Autumn) via AIO, the Text app fails to open any text file (.txt, .md) with "File not found" error. Files exist both in oc_filecache and on disk. Downloads work without issue — only the Text editor session creation fails.
Steps to reproduce
- Upgrade to Nextcloud 32.0.2 via AIO
- Open any text file in Files app, or open any Note
Expected behavior
Text files open in the editor normally.
Actual behavior
"File not found" error is displayed.
Log output
{"reqId":"OqNrLUgjPBlbsXI5mxPv","level":3,"time":"2025-12-03T11:45:51+00:00","remoteAddr":"...","user":"qwc","app":"text","method":"PUT","url":"/apps/text/session/912862/create","message":"No permission to access this file","version":"32.0.2.2","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/html/apps/text/lib/Service/ApiService.php","line":67,"function":"getFileById","class":"OCA\\Text\\Service\\DocumentService","type":"->"}...],"File":"/var/www/html/apps/text/lib/Service/DocumentService.php","Line":552,"message":"No permission to access this file"}}
Verified
- File exists in
oc_filecache(confirmed via SQL query) - File exists on filesystem
- Downloads work
- Affects ALL text files, not just specific ones
Troubleshooting attempted (none resolved the issue)
occ text:reset --all- Truncated
oc_text_sessions,oc_text_steps,oc_text_documentstables occ app:disable text/occ app:enable textocc files:scan --all,occ files:cleanup,occ files:repair-treeocc maintenance:repair- Flushed Redis cache
- Removed Maps and Recognize apps (to rule out hook interference)
- Filesystem permissions verified correct
Environment
- Nextcloud version: 32.0.2
- Text app version: 6.0.1
- Installation method: AIO (All-in-One)
- Database: PostgreSQL
- Issue began: After upgrade to 32.0.2