Nextcloud Server version: 33.0.6
Operating system: Ubuntu 22.04
Web server: Nginx Proxy Manager
Reverse proxy: Nginx Proxy Manager
PHP version: 8.2 (AIO container)
Is this the first time: Yes
Installation method: AIO (All-in-One Docker)
Cloudflare/mod_security: No
Summary:
After migrating from standard Nextcloud (MariaDB) to Nextcloud AIO (PostgreSQL), all users get “File not found” error when trying to open OR create .docx, .xlsx, .pptx files using OnlyOffice. Text files (.md, .txt) work perfectly fine.
Steps to replicate:
**1.** Login to Nextcloud AIO as any user
**2.** Navigate to any folder (personal or groupfolder)
**3.** Click any .docx or .xlsx file OR try to create a new document
**4.** Immediately get “File not found” error
**5.** Happens on all computers, all browsers, all users
What works:
**•** All users can login via LDAP
**•** All files are visible in the file browser
**•** Text editor (.md .txt) works perfectly
**•** LDAP connected to Active Directory successfully
**•** Groupfolders are visible and accessible
What does NOT work:
**•** Opening any .docx, .xlsx, .pptx → “File not found”
**•** Creating new Office documents → “File not found”
**•** Same error for all users on all devices
Migration method used:
**•** Files copied via rsync
**•** Database migrated via pgloader (MariaDB to PostgreSQL, 0 errors)
**•** Copied passwordsalt, secret, instanceid from old config.php to new AIO
**•** Old OnlyOffice container connected to nextcloud-aio Docker network
**•** JWT secret copied from old installation to new AIO
DocumentServerUrl: https://[domain]/onlyoffice
DocumentServerInternalUrl: https://onlyoffice/
verify_peer_off: true
jwt_secret: [set to match old installation]
Healthcheck from inside AIO container returns: true
Nextcloud log errors:
Files not found: [file_id]
relation “memories_planet_geometry” does not exist
In failed sql transaction: current transaction is aborted, commands ignored until end of transaction block
occ config:list system output:
datadirectory: /mnt/ncdata
dbtype: pgsql
dbname: nextcloud_database
dbhost: nextcloud-aio-database:5432
dbuser: oc_nextcloud
trusted_domains: [domain]
occ app:list (relevant):
Enabled: onlyoffice 10.1.2, user_ldap 1.25.0, groupfolders 22.0.1, text 7.0.1
Disabled: memories, encryption
Question:
Has anyone successfully migrated from standard Nextcloud with an external OnlyOffice container to Nextcloud AIO?
Is the issue with:
• OnlyOffice JWT configuration?
• Database migration (something missing)?
• config.php values not matching?
Any help is greatly appreciated!