Files_versions preview causing 404 errors

Nextcloud version: 25.0.4
Operating system and version: CentOS Stream 8
Apache or nginx version: Apache 2.4.37
PHP version: REMI PHP 8.1.16

The issue you are facing:
New clean install, and when editing/viewing md files, Apache spams a bunch of 404 errors. This happens on any file I edit. I’ve ran the proper file scans and repairs.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Install clean new version
  2. Create New Text file
  3. Edit text file, close it
  4. Open the Details for the file
  5. tail the Apache logs

The output of your Nextcloud log in Admin > Logging:
No errors in Nextcloud logging, only the 404s in Apache logging

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

  'instanceid' => 'aspcokapdockadpockadp',
  'passwordsalt' => 'aa0c9iad0c9ida0c',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.domain.lan',
    1 => 'nextcloud-01.domain.lan',
    2 => 'nextcloud-02.domain.lan',
  ),
  'datadirectory' => '/data/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '25.0.4.1',
  'overwrite.cli.url' => 'https://nextcloud.domain.lan/',
  'htaccess.RewriteBase' => '/',
  'dbname' => 'nextcloud',
  'dbhost' => 'db.domain.lan',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'ascas09cia0s9cias0c9i',
  'installed' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'mail_from_address' => 'nextcloud',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'domain.lan',
  'mail_smtphost' => 'localhost',
  'mail_smtpport' => '25',
  'default_phone_region' => 'US',
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'updater.secret' => 'as-c0oas-c0oas-cas0c8uasc8u',

The output of your Apache system log in /var/log/____:

10.10.10.1 - - [17/Mar/2023:12:21:37 +0000] "GET /.well-known/nodeinfo HTTP/1.1" 404 36 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0"
10.10.10.1 - - [17/Mar/2023:13:12:24 +0000] "GET /ocs/v2.php/apps/text/workspace?path=%2FNotes HTTP/1.1" 404 142 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0"
10.10.10.1 - - [17/Mar/2023:13:12:45 +0000] "GET /apps/files_versions/preview?file=%2FNotes%2FDanny%27s%20Notes%2FLinux.md&version=1676550016 HTTP/1.1" 404 2 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0"
10.10.10.1 - - [17/Mar/2023:13:13:01 +0000] "GET /apps/files_versions/preview?file=%2FNotes%2FDanny%27s%20Notes%2FToDo.md&version=1677594540 HTTP/1.1" 404 2 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0"

Hi, I’m facing the same issue. Is there already a fix for it?
It would help me a lot!
If required I can provide some information for troubleshooting as well.

None that I’ve seen, and the issues continues to happen even with the upgraded 26.0.1 version :frowning_face:

Upgraded to 27.0.0 and issue remains.

app disable text
config.php
‘enable_previews’ => false,

Close text app , profile close preview, all 404 disappears

1 Like