Skip to content

Text app v6.0.1 fails with "File not found" / NotFoundException on NC 32.0.2 (AIO) #8008

@qwc

Description

@qwc

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

  1. Upgrade to Nextcloud 32.0.2 via AIO
  2. 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_documents tables
  • occ app:disable text / occ app:enable text
  • occ files:scan --all, occ files:cleanup, occ files:repair-tree
  • occ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions