Cannot download file versions

Hi,

Instead of a file i get a “_remote” when trying to download a older file version of a external file.
Actual files download is working.
It is also working for files stored in nextcloud.

Nextcloud version (eg, 20.0.5): 28.0.4
Operating system and version (eg, Ubuntu 20.04): 22.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52
PHP version (eg, 7.4): php 8.1.2

Steps to replicate it:

  1. Share a external folder (SMB-share) from user A to user B
  2. Modify a file
  3. Click details on a external file
  4. Try to download a version
  5. Get a file named “_remote”

The output of your Nextcloud log in Admin > Logging:

no error is shown

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_smtphost' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'mail_domain' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'mail_smtpport' => '25',
  'mail_from_address' => 'nextcloud',
  'instanceid' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' =>
  array (
    0 => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    1 => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  ),
  'maintenance_window_start' => 1,
  'allow_local_remote_servers' => true,
  'datadirectory' => '/var/www/owncloud/data',
  'overwrite.cli.url' => 'https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/',
  'dbtype' => 'mysql',
  'version' => '28.0.2.5',
  'dbname' => 'oc',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'logtimezone' => 'Europe/Berlin',
  'loglevel' => 2,
  'logfile' => '/var/www/owncloud/data/owncloud.log',
  'installed' => true,
  'theme' => '',
  'maintenance' => false,
  'trashbin_retention_obligation' => 'auto',
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'updatechecker' => false,
  'htaccess.RewriteBase' => '/',
  'singleuser' => true,
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0,
    'dbindex' => 0,
    'password' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  ),
  'data-fingerprint' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'mail_sendmailmode' => 'smtp',
  'mysql.utf8mb4' => true,
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'default_phone_region' => 'IT',
  'defaultapp' => 'files',
);

no related logs found

this a very strange usage pattern. Do you see the problem using regular internal storage?

No, for files stored within nextcloud it is working ok.
I’ve tried to download a version from user A, it’s not working.
But the version files are stored in files/A/file_versions

do I get it right? when you edit files located on external storage versions or this files will be generated in primary storage of the user? Sounds like a bug… I think you better look for existing bug reports or maybe file new one…

yes.
but i think it makes sense to keep the versions in primary storage.
are you saying it is not supposed to work like this?

Upgraded to 28.0.4 and installed latest updates for Ubuntu, now it is working.

This setup is definitely not common and likely more issues remain uncovered…

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.