Massive files error after upgrade to NC 22

Nextcloud version (eg, 20.0.5): NC 22.2.3.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu Server 21.04 64 bit arm64
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.51
PHP version (eg, 7.4): PHP 8.0.12

The issue you are facing:
I had previously NC19 running on my server, when one day out of the blue, my windows client, after an update started querying my server with a deletion of all my files fo no reason. The NC server started handling all those request of deleting thousands of files, till the server overwhelmed and crashed. After the inconvenience, the server was broken, files were lost, and I had to repair my server. In the process I upgraded the container image (removed the old docker NC19 image, and run again the Docker-Compose command, so it pulled the new NC22 image, and run the container).

Things run cool at the beginning, I was greeted with the “Upgrade web interface”, and I just proceeded with the steps. The new NC22 seems to run fine, my users could still get in their accounts, and I could still get to mine too (Admin) and I can see the icons of my files. But I cannot download them, I cannot preview nor I can sync them from the windows desktop client.
I get error whenever I try to interact with them (I haven’t tried deletion but that something I do not want.)

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

This is my docker image source: Docker Hub

Steps to replicate it:

  1. Have a docker container of NC19 and have data and users on it
  2. Upgrade to NC22 the mentioned way (pulling the new docker image of NC)

The output of your Nextcloud log in Admin > Logging:

{"reqId":"xwJ4iAH5hGr58Z7VJSr3","level":2,"time":"2021-11-27T12:57:00+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":""}
{"reqId":"xwJ4iAH5hGr58Z7VJSr3","level":2,"time":"2021-11-27T12:57:00+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":""}
{"reqId":"qju6CWD936gNGnrAVYL7","level":2,"time":"2021-11-27T12:57:39+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":""}
{"reqId":"qju6CWD936gNGnrAVYL7","level":2,"time":"2021-11-27T12:57:39+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":""}
{"reqId":"ocPOsUcnGFoN4JbJG8By","level":2,"time":"2021-11-27T12:57:54+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","version":""}
{"reqId":"ocPOsUcnGFoN4JbJG8By","level":2,"time":"2021-11-27T12:57:54+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","version":""}
{"reqId":"BxZtPqxOmvhiRhwfbqif","level":2,"time":"2021-11-27T12:58:25+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":""}
{"reqId":"BxZtPqxOmvhiRhwfbqif","level":2,"time":"2021-11-27T12:58:25+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":""}
{"reqId":"24rFLqyIx45zTIVBDAP9","level":2,"time":"2021-11-27T12:59:43+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"24rFLqyIx45zTIVBDAP9","level":2,"time":"2021-11-27T12:59:43+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"GTVQkGZlewovFQvQKV5s","level":2,"time":"2021-11-27T13:00:45+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"GTVQkGZlewovFQvQKV5s","level":2,"time":"2021-11-27T13:00:45+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"HGs0dUb6sSGuOube5OCE","level":2,"time":"2021-11-27T13:01:47+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"HGs0dUb6sSGuOube5OCE","level":2,"time":"2021-11-27T13:01:47+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"ZDDyyEKqvZZm8MuJDgZD","level":2,"time":"2021-11-27T13:02:49+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"ZDDyyEKqvZZm8MuJDgZD","level":2,"time":"2021-11-27T13:02:49+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"HokOrYRAinF7BdkY57JL","level":2,"time":"2021-11-27T13:03:51+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"HokOrYRAinF7BdkY57JL","level":2,"time":"2021-11-27T13:03:51+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"iMJ2Vu8ikMWogLoYTXRe","level":2,"time":"2021-11-27T13:04:02+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":"22.2.3.0"}
{"reqId":"iMJ2Vu8ikMWogLoYTXRe","level":2,"time":"2021-11-27T13:04:02+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":"22.2.3.0"}
{"reqId":"tAU5Iq85qVlBSRq3DGTx","level":2,"time":"2021-11-27T13:04:53+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}
{"reqId":"tAU5Iq85qVlBSRq3DGTx","level":2,"time":"2021-11-27T13:04:53+00:00","remoteAddr":"172.17.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Host 192.168.1.57 was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.3.0"}

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

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'ocsqkhpuft6s',
  'passwordsalt' => '--',
  'secret' => '--',
  'trusted_domains' =>
  array (
    0 => '[server_ip]:[web_port]',
  ),
  'overwrite.cli.url' => 'http://[server_ip]:[web_port]',
  'overwriteprotocol' => 'https',
  'overwritehost' => '[my_domain]',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '22.2.3.0',
  'overwrite.cli.url' => 'http://[server_ip]:[web_port]',
  'dbname' => 'nextcloud',
  'dbhost' => '[server_ip]:[sql_port]',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_backup',
  'dbpassword' => '--',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
);

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

cat error.log

But it doesn’t return the content.
I tried open the file with nano but it shows up emtpy saying:

errors.log is a device file

image

Any help will be really appreciated. At least, I would like to get my files back, I don’t mind if I have to recreate another instance.

Thank you.

EDIT:
I ended up with this error when I tried downloading one of my files