Client error - File was deleted from server

Nextcloud version (eg, 18.0.2): 19.0.1
Operating system and version (eg, Ubuntu 20.04): Debian Stretch, 9.13
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.25
PHP version (eg, 7.1): PHP 7.3.20

The issue you are facing:
On the desktop client, there are many errors of “File was deleted from server”

When I look on the system, in the browser, I can see the file. But, if I click on that file it gives me an error - File not found

The document could not be found on the server. Maybe the share was deleted or has expired?

I can see the file on the disk (via command line).

ls -lrt /home/nextcloud/nc_data/admin/files/Ops/SD/Clients/client/Support/Training/Overview.vsd
-rw-r–r-- 1 www-data www-data 345600 Aug 21 11:24 /home/nextcloud/nc_data/admin/files/Ops/SD/Clients/client/Support/Training/Overview.vsd

I have run the occ files:scan and also occ files:cleanup

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

The output of your config.php file in /path/to/nextcloud:



<?php
$CONFIG = array (
  'passwordsalt' => '<snip>',
  'secret' => '<snip>/<snip>/<snip>',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '<snip>',
    2 => '<snip>',
    3 => '<snip>',
  ),
  'datadirectory' => '/home/nextcloud/nc_data',
  'dbtype' => 'mysql',
  'version' => '19.0.1.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud_user',
  'dbpassword' => '<snip>',
  'installed' => true,
  'instanceid' => '<snip>',
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'snip.ie',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '<snip>',
  'mail_smtpname' => '<snip>',
  'mail_smtppassword' => '<snip>',
  'lost_password_link' => 'https://snip.ie/',
  'trashbin_retention_obligation' => 'auto, 30',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Memcached',
  'memcached_servers' => 
  array (
    0 => 
    array (
      0 => 'localhost',
      1 => 11211,
    ),
  ),
  'mysql.utf8mb4' => true,
  'updater.release.channel' => 'stable',
  'updater.secret' => '$2y$10$.N.<snip><snip>',
);

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

IP - - [21/Aug/2020:11:58:13 +0100] "GET /remote.php/webdav/Ops/SD/Clients/client/Support/Training/Overview.vsd HTTP/1.1" 404 14190 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0"

1 Like

Same here using Nextcloud 17.0.3, then after upgrading to 18.0.10 the sync error warning persists. However, in my case it does not have any actual effect—the files are on the server, both physically and in the Nextcloud file browser, and they open just fine when I click on them. The only drawback is my desktop app keeps re-syncing all these files every single time.

It only happens with a certain set of Word files from a specific folder. I tried removing these files and re-uploading them from stratch, but the error keeps showing up.