There were problems with the code integrity check. More information

{"reqId":"jqORD7OmokvFKWfkps4E","level":3,"time":"2017-12-06T10:18:14+00:00","remoteAddr":"192.168.1.37","user":"nemo","app":"PHP","method":"GET","url":"\/owncloud\/index.php\/avatar\/nemo\/64","message":"file_get_contents(\/mnt\/data\/avatars\/e5\/87\/f6146ebfbdefdc028c591643f220\/avatar.64.jpg): failed to open stream: No such file or directory at \/var\/www\/owncloud\/lib\/private\/Files\/Storage\/Local.php#213"}

Can you try addit this to your config.php

'enable_avatars' => false,

nothing...

{"reqId":"jqORD7OmokvFKWfkps4E","level":3,"time":"2017-12-06T10:18:14+00:00","remoteAddr":"192.168.1.37","user":"nemo","app":"PHP","method":"GET","url":"\/owncloud\/index.php\/avatar\/nemo\/64","message":"file_get_contents(\/mnt\/data\/avatars\/e5\/87\/f6146ebfbdefdc028c591643f220\/avatar.64.jpg): failed to open stream: No such file or directory at \/var\/www\/owncloud\/lib\/private\/Files\/Storage\/Local.php#213"}

Have you restarted your web server after adding the code to the config.php?

can you post your config.php here with the sensitive data redacted?

Yes, I always restart the server every time I change ...

<?php
$CONFIG = array (
'instanceid' => 'occaqv6f3rwq',
'passwordsalt' => 'ECPg99Qt2Cz0KKvGuIRJXh4/nVr5uF',
'secret' => 'Gr5mEVJfKcZeZ4wY0Oxnx6cmlMj8+fEh/zf44yEA7GHB+S1i',
'trusted_domains' =>
array (
0 => '192.168.1.33',
),
'datadirectory' => '/mnt/data',
'overwrite.cli.url' => 'http://192.168.1.33/owncloud',
'dbtype' => 'mysql',
'version' => '10.0.3.3',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'marco',
'dbpassword' => 'hope87',
'logtimezone' => 'UTC',
'installed' => true,
'loglevel' => 4,
'memcache.local' => '\OC\Memcache\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'memcache.locking' => '\OC\Memcache\Redis',
'enable_avatars' => false,
);

Okay, set the Log level to 0 and upload the log file somewhere and post the link to it here.

Excuse the ignorance, could you explain how to do it?

well, you can do it via web UI or you can do it via the command line.

You have to get the file.

Web UI - Log in to owncloud, go to admin, settings, general and there you can download the logfile, then upload it to a free hoster and paste the link here.

Via Command line - you have to copy the log file from the server to your system, and upload it to a free hoster and paste the link here.

Hi, can you execute that command:

sudo -u www-data php occ files:scan --all

You will have to connect to your server and go the directory of ownlcoud for example with that command:

cd /var/www/owncloud/

here is the doc:

https://doc.owncloud.com/server/10.0/admin_manual/configuration/server/occ_command.html?highlight=occ#file-operations

sudo -u www-data php occ files:scan --all

Scanning files for 4 users
Starting scan for user 1 out of 4 (Enza)
Home storage for user Enza not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 2 out of 4 (GiovaniCRI)
Home storage for user GiovaniCRI not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 3 out of 4 (Nunzia)
Home storage for user Nunzia not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 4 out of 4 (nemo)
Home storage for user nemo not writable
Make sure you're running the scan command only as the user the web server runs as

+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 0 | 0 | 00:00:05 |
+---------+-------+--------------+

but my data folder is in /mnt, If I run the command from this position:
pi@raspberrypi:/mnt $ sudo -u www-data php occ files:scan --all
Could not open input file: occ

You need to give the web user permission to read and write in your storage.

Chown -r www-data:www-data /mnt

Or something like this.

Replace /mnt with your data folder

And do the files scan again

After giving the chown command ... I scanned:
root@raspberrypi:/var/www/owncloud# sudo -u www-data php occ files:scan --all

Scanning files for 4 users
Starting scan for user 1 out of 4 (Enza)
Home storage for user Enza not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 2 out of 4 (GiovaniCRI)
Home storage for user GiovaniCRI not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 3 out of 4 (Nunzia)
Home storage for user Nunzia not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 4 out of 4 (nemo)
Home storage for user nemo not writable
Make sure you're running the scan command only as the user the web server runs as

+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 0 | 0 | 00:00:00 |
+---------+-------+--------------+

please check this out, I think the problem is that your data directory is configured wrong. Since you restored your data, you have to check if the data directory is configured correctly. Also you have to make sure your have the right permissions settings:

https://doc.owncloud.com/server/10.0/admin_manual/maintenance/manually-moving-data-folders.html?highlight=data%20directory

In doubt it could be damaged hd, I run the test, you place the result, everything seems OK to me:
sudo fsck.ext4 -c /dev/sda1
e2fsck 1.43.4 (31-Jan-2017)
Ricerca dei blocchi non validi (test a sola lettura): 0.00% done, 0:00 elapsedone
/dev/sda1: Updating bad block inode.
Passo 1: Controllo di inode, blocco(i) e dimensioni
Passo 2: Analisi della struttura delle directory
Passo 3: Controllo della connettività di directory
Pass 4: Controllo del numero dei riferimenti
Pass 5: Checking gruppo summary information

/dev/sda1: ***** IL FILE SYSTEM È STATO MODIFICATO *****
/dev/sda1: 47/122101760 files (2.1% non-contiguous), 7953066/488378368 blocks

I solved ... I was badly copying the folder given on the HD: P