Share folder issue

Hi,
We have restore nexcloud on a new server(16.0.9 → 20.0.3). But since we have upgrated pHp (7.3) we have lost all files and folder on the server.
We can’t share any folder or file that we can create or import. When we try to share any folder no user or group are available. Therefore there are users and groups .
Then synchronisation works, but do not import local files.

[/details]

Nextcloud version : 20.0.10
Operating system and version : debian 10
Apache _: Apache2.4.38
PHP version : 7.3

The output of your Nextcloud log(3 last lines) :

{“reqId”:“YNSAskQ-MQrQekISjA-R0gAAAAA”,“level”:4,“time”:“2021-06-24T12:55:14+00:00”,“remoteAddr”:“95.128.149.236”,“user”:“le-bonniec”,“app”:“webdav”,“method”:“GET”,“url”:"/nextcloud/remote.php/dav",“message”:{“Exception”:“Sabre\DAV\Exception\ServiceUnavailable”,“Message”:“System is in maintenance mode.”,“Code”:0,“Trace”:[{“file”:"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“checkMaintenanceMode”,“class”:“OCA\DAV\Connector\Sabre\MaintenancePlugin”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:458,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“beforeMethod:GET”,[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:251,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:319,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:},{“file”:"/var/www/html/nextcloud/apps/dav/lib/Server.php",“line”:332,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:},{“file”:"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:"->",“args”:},{“file”:"/var/www/html/nextcloud/remote.php",“line”:167,“args”:["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],“function”:“require_once”}],“File”:"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php",“Line”:85,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:“20.0.10.1”}
{“reqId”:“YNSA4wlpp2u-GmSZc6NnBwAAAAY”,“level”:4,“time”:“2021-06-24T12:56:03+00:00”,“remoteAddr”:“95.128.149.236”,“user”:“le-bonniec”,“app”:“webdav”,“method”:“GET”,“url”:"/nextcloud/remote.php/dav",“message”:{“Exception”:“Sabre\DAV\Exception\ServiceUnavailable”,“Message”:“System is in maintenance mode.”,“Code”:0,“Trace”:[{“file”:"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“checkMaintenanceMode”,“class”:“OCA\DAV\Connector\Sabre\MaintenancePlugin”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:458,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“beforeMethod:GET”,[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:251,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:319,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:},{“file”:"/var/www/html/nextcloud/apps/dav/lib/Server.php",“line”:332,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:},{“file”:"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:"->",“args”:},{“file”:"/var/www/html/nextcloud/remote.php",“line”:167,“args”:["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],“function”:“require_once”}],“File”:"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php",“Line”:85,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:“20.0.10.1”}
{“reqId”:“YNSHw5Mm76gJA5Q0wfWuCAAAABU”,“level”:3,“time”:“2021-06-24T13:25:24+00:00”,“remoteAddr”:“95.128.149.236”,“user”:“bregand”,“app”:“mail”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/mail/api/mailboxes?accountId=2",“message”:{“Exception”:“Exception”,“Message”:“HMAC does not match.”,“Code”:0,“Trace”:[{“file”:"/var/www/html/nextcloud/apps/mail/lib/IMAP/IMAPClientFactory.php",“line”:66,“function”:“decrypt”,“class”:“OC\Security\Crypto”,“type”:"->",“args”:["*** sensitive parameters replaced ***"]},{“file”:"/var/www/html/nextcloud/apps/mail/lib/IMAP/MailboxSync.php",“line”:90,“function”:“getClient”,“class”:“OCA\Mail\IMAP\IMAPClientFactory”,“type”:"->",“args”:[{“class”:“OCA\Mail\Account”}]},{“file”:"/var/www/html/nextcloud/apps/mail/lib/Service/MailManager.php",“line”:129,“function”:“sync”,“class”:“OCA\Mail\IMAP\MailboxSync”,“type”:"->",“args”:[{“class”:“OCA\Mail\Account”},{“class”:“OC\AppFramework\ScopedPsrLogger”}]},{“file”:"/var/www/html/nextcloud/apps/mail/lib/Controller/MailboxesController.php",“line”:92,“function”:“getMailboxes”,“class”:“OCA\Mail\Service\MailManager”,“type”:"->",“args”:[{“class”:“OCA\Mail\Account”}]},{“file”:"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:169,“function”:“index”,“class”:“OCA\Mail\Controller\MailboxesController”,“type”:"->",“args”:[2]},{“file”:"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:100,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Mail\Controller\MailboxesController”},“index”]},{“file”:"/var/www/html/nextcloud/lib/private/AppFramework/App.php",“line”:152,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Mail\Controller\MailboxesController”},“index”]},{“file”:"/var/www/html/nextcloud/lib/private/Route/Router.php",“line”:309,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Mail\Controller\MailboxesController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{"_route":“mail.mailboxes.index”}]},{“file”:"/var/www/html/nextcloud/lib/base.php",“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/apps/mail/api/mailboxes"]},{“file”:"/var/www/html/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:}],“File”:"/var/www/html/nextcloud/lib/private/Security/Crypto.php",“Line”:139,“CustomMessage”:“HMAC does not match.”},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0”,“version”:“20.0.10.1”}

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

<?php
$CONFIG = array (
  'instanceid' => 'xxxxxxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'secret' =>   'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'nuage.portik.fr',
    1 => 'sd-74366.dedibox.fr',
    2 => 'localhost',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.10.1',
  'overwrite.cli.url' => 'http://sd-74366.dedibox.fr/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_kadar',
  'dbpassword' => 'xxxx',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'has_rebuilt_cache' => true,
  'logfile' => '/var/log/nextcloud.log',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'updater.secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
);

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

[Thu Jun 24 00:50:20.644268 2021] [php7:error] [pid 5691] [client 92.184.105.6:55110] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 01:01:36.248992 2021] [php7:error] [pid 5597] [client 92.184.105.182:55116] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 01:14:55.933392 2021] [cgi:error] [pid 5691] [client 201.184.235.26:36373] AH02811: script not found or unable to stat: /usr/lib/cgi-bin/ViewLog.asp
[Thu Jun 24 01:51:52.785111 2021] [php7:error] [pid 5566] [client 92.184.105.119:55156] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 05:06:31.224587 2021] [php7:error] [pid 5560] [client 92.184.105.198:55230] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 05:46:06.743549 2021] [php7:error] [pid 5562] [client 45.146.165.123:33274] script '/var/www/html/index.php' not found or unable to stat
[Thu Jun 24 07:42:12.520144 2021] [php7:error] [pid 5663] [client 92.184.105.59:53112] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 08:41:08.514648 2021] [access_compat:error] [pid 14191] [client 95.128.149.236:61064] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 08:43:03.016191 2021] [php7:error] [pid 14246] [client 92.184.105.191:38612] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 08:53:12.413723 2021] [mpm_prefork:notice] [pid 43823] AH00169: caught SIGTERM, shutting down
[Thu Jun 24 08:53:12.587367 2021] [http2:warn] [pid 14536] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jun 24 08:53:12.587442 2021] [lbmethod_heartbeat:notice] [pid 14536] AH02282: No slotmem from mod_heartmonitor
[Thu Jun 24 08:53:12.614655 2021] [mpm_prefork:notice] [pid 14536] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jun 24 08:53:12.614684 2021] [core:notice] [pid 14536] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 24 09:01:03.030696 2021] [php7:error] [pid 14602] [client 92.184.105.145:38620] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 09:18:57.362716 2021] [php7:error] [pid 14555] [client 95.128.149.236:61579] PHP Fatal error:  Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/nextcloud/lib/private/DB/Connection.php:72\nStack trace:\n#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1449): OC\\DB\\Connection->connect()\n#1 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(892): Doctrine\\DBAL\\Connection->getWrappedConnection()\n#2 /var/www/html/nextcloud/lib/private/DB/Connection.php(202): Doctrine\\DBAL\\Connection->executeQuery('SELECT * FROM `...', Array, Array, NULL)\n#3 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\\DB\\Connection->executeQuery('SELECT * FROM `...', Array, Array)\n#4 /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(217): Doctrine\\DBAL\\Query\\QueryBuilder->execute()\n#5 /var/www/html/nextcloud/lib/private/AppConfig.php(345): OC\\DB\\QueryBuilder\\QueryBuilder->execute()\n#6 /var/ in /var/www/html/nextcloud/lib/private/DB/Connection.php on line 72
[Thu Jun 24 09:43:04.257224 2021] [php7:error] [pid 14555] [client 92.184.105.102:38694] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 10:03:09.279776 2021] [mpm_prefork:notice] [pid 14536] AH00169: caught SIGTERM, shutting down
Thu Jun 24 10:03:09.453730 2021] [http2:warn] [pid 15911] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jun 24 10:03:09.453808 2021] [lbmethod_heartbeat:notice] [pid 15911] AH02282: No slotmem from mod_heartmonitor
[Thu Jun 24 10:03:09.480727 2021] [mpm_prefork:notice] [pid 15911] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jun 24 10:03:09.480764 2021] [core:notice] [pid 15911] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 24 10:03:17.754073 2021] [access_compat:error] [pid 15949] [client 95.128.149.236:62058] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 10:05:57.721478 2021] [mpm_prefork:notice] [pid 15911] AH00169: caught SIGTERM, shutting down
[Thu Jun 24 10:05:57.885791 2021] [http2:warn] [pid 16061] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jun 24 10:05:57.885873 2021] [lbmethod_heartbeat:notice] [pid 16061] AH02282: No slotmem from mod_heartmonitor
[Thu Jun 24 10:05:57.914445 2021] [mpm_prefork:notice] [pid 16061] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jun 24 10:05:57.914474 2021] [core:notice] [pid 16061] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 24 10:06:03.902228 2021] [access_compat:error] [pid 16082] [client 95.128.149.236:62088] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 10:06:28.488573 2021] [access_compat:error] [pid 16153] [client 95.128.149.236:62111] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 10:09:23.409783 2021] [mpm_prefork:notice] [pid 16061] AH00169: caught SIGTERM, shutting down
[Thu Jun 24 10:09:23.540340 2021] [ssl:error] [pid 16302] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 10:09:23.540377 2021] [ssl:error] [pid 16302] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 10:09:23.576940 2021] [ssl:error] [pid 16304] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 10:09:23.576957 2021] [ssl:error] [pid 16304] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 10:09:23.577626 2021] [http2:warn] [pid 16304] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jun 24 10:09:23.577715 2021] [lbmethod_heartbeat:notice] [pid 16304] AH02282: No slotmem from mod_heartmonitor
[Thu Jun 24 10:09:23.604571 2021] [mpm_prefork:notice] [pid 16304] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jun 24 10:09:23.604600 2021] [core:notice] [pid 16304] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 24 10:09:44.433266 2021] [access_compat:error] [pid 16371] [client 95.128.149.236:62142] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 10:16:11.865658 2021] [mpm_prefork:notice] [pid 16304] AH00169: caught SIGTERM, shutting down
[Thu Jun 24 10:16:11.987298 2021] [ssl:error] [pid 16519] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 10:16:11.987347 2021] [ssl:error] [pid 16519] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 10:16:12.023148 2021] [ssl:error] [pid 16521] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 10:16:12.023169 2021] [ssl:error] [pid 16521] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 10:16:12.023834 2021] [http2:warn] [pid 16521] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jun 24 10:16:12.023910 2021] [lbmethod_heartbeat:notice] [pid 16521] AH02282: No slotmem from mod_heartmonitor
[Thu Jun 24 10:16:12.051757 2021] [mpm_prefork:notice] [pid 16521] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jun 24 10:16:12.051786 2021] [core:notice] [pid 16521] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 24 10:16:36.106083 2021] [access_compat:error] [pid 16541] [client 95.128.149.236:62237] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 10:22:28.453521 2021] [mpm_prefork:notice] [pid 16521] AH00169: caught SIGTERM, shutting down
[Thu Jun 24 10:22:28.570097 2021] [ssl:error] [pid 16725] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 10:22:28.570132 2021] [ssl:error] [pid 16725] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 10:22:28.606989 2021] [ssl:error] [pid 16727] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 10:22:28.607014 2021] [ssl:error] [pid 16727] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 10:22:28.607981 2021] [http2:warn] [pid 16727] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jun 24 10:22:28.608071 2021] [lbmethod_heartbeat:notice] [pid 16727] AH02282: No slotmem from mod_heartmonitor
[Thu Jun 24 10:22:28.635541 2021] [mpm_prefork:notice] [pid 16727] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jun 24 10:22:28.635581 2021] [core:notice] [pid 16727] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 24 10:22:35.636830 2021] [access_compat:error] [pid 16750] [client 95.128.149.236:62298] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 10:25:21.805140 2021] [access_compat:error] [pid 16882] [client 95.128.149.236:55348] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 10:26:22.883825 2021] [access_compat:error] [pid 16819] [client 95.128.149.236:55386] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 10:34:48.956594 2021] [access_compat:error] [pid 17126] [client 95.128.149.236:60850] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 10:43:13.692451 2021] [php7:error] [pid 17215] [client 92.184.105.9:38740] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 11:18:11.832363 2021] [cgi:error] [pid 17168] [client 1.41.223.13:38212] AH02811: script not found or unable to stat: /usr/lib/cgi-bin/ViewLog.asp
[Thu Jun 24 11:46:47.996505 2021] [php7:error] [pid 17058] [client 92.184.105.157:38764] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 11:49:43.747124 2021] [php7:error] [pid 17058] [client 95.128.149.236:56600] PHP Fatal error:  Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/nextcloud/lib/private/DB/Connection.php:72\nStack trace:\n#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1449): OC\\DB\\Connection->connect()\n#1 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(892): Doctrine\\DBAL\\Connection->getWrappedConnection()\n#2 /var/www/html/nextcloud/lib/private/DB/Connection.php(202): Doctrine\\DBAL\\Connection->executeQuery('SELECT * FROM `...', Array, Array, NULL)\n#3 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\\DB\\Connection->executeQuery('SELECT * FROM `...', Array, Array)\n#4 /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(217): Doctrine\\DBAL\\Query\\QueryBuilder->execute()\n#5 /var/www/html/nextcloud/lib/private/AppConfig.php(345): OC\\DB\\QueryBuilder\\QueryBuilder->execute()\n#6 /var/ in /var/www/html/nextcloud/lib/private/DB/Connection.php on line 72
[Thu Jun 24 11:51:25.385177 2021] [access_compat:error] [pid 17236] [client 95.128.149.236:54288] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 11:52:30.426920 2021] [access_compat:error] [pid 16957] [client 95.128.149.236:54309] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 11:52:44.113919 2021] [mpm_prefork:notice] [pid 16727] AH00169: caught SIGTERM, shutting down
[Thu Jun 24 11:52:44.239454 2021] [ssl:error] [pid 19257] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 11:52:44.239489 2021] [ssl:error] [pid 19257] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 11:52:44.275066 2021] [ssl:error] [pid 19259] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 11:52:44.275082 2021] [ssl:error] [pid 19259] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 11:52:44.275764 2021] [http2:warn] [pid 19259] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jun 24 11:52:44.275842 2021] [lbmethod_heartbeat:notice] [pid 19259] AH02282: No slotmem from mod_heartmonitor
[Thu Jun 24 11:52:44.304062 2021] [mpm_prefork:notice] [pid 19259] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jun 24 11:52:44.304099 2021] [core:notice] [pid 19259] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 24 11:52:50.953953 2021] [access_compat:error] [pid 19284] [client 95.128.149.236:54321] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 12:55:15.131137 2021] [php7:error] [pid 19380] [client 95.128.149.236:57270] PHP Fatal error:  Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/nextcloud/lib/private/DB/Connection.php:72\nStack trace:\n#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1449): OC\\DB\\Connection->connect()\n#1 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(892): Doctrine\\DBAL\\Connection->getWrappedConnection()\n#2 /var/www/html/nextcloud/lib/private/DB/Connection.php(202): Doctrine\\DBAL\\Connection->executeQuery('SELECT * FROM `...', Array, Array, NULL)\n#3 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\\DB\\Connection->executeQuery('SELECT * FROM `...', Array, Array)\n#4 /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(217): Doctrine\\DBAL\\Query\\QueryBuilder->execute()\n#5 /var/www/html/nextcloud/lib/private/AppConfig.php(345): OC\\DB\\QueryBuilder\\QueryBuilder->execute()\n#6 /var/ in /var/www/html/nextcloud/lib/private/DB/Connection.php on line 72
[Thu Jun 24 12:55:22.437849 2021] [mpm_prefork:notice] [pid 19259] AH00169: caught SIGTERM, shutting down
[Thu Jun 24 12:55:22.556722 2021] [ssl:error] [pid 20959] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 12:55:22.556759 2021] [ssl:error] [pid 20959] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 12:55:22.593384 2021] [ssl:error] [pid 20961] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 12:55:22.593402 2021] [ssl:error] [pid 20961] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 12:55:22.594074 2021] [http2:warn] [pid 20961] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jun 24 12:55:22.594167 2021] [lbmethod_heartbeat:notice] [pid 20961] AH02282: No slotmem from mod_heartmonitor
[Thu Jun 24 12:55:22.622429 2021] [mpm_prefork:notice] [pid 20961] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jun 24 12:55:22.622459 2021] [core:notice] [pid 20961] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 24 13:01:05.265812 2021] [php7:error] [pid 20981] [client 92.184.105.133:38790] script '/var/www/html/remote.php' not found or unable to stat
[Thu Jun 24 14:47:00.466533 2021] [access_compat:error] [pid 20981] [client 95.128.149.236:55849] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 14:51:24.973677 2021] [access_compat:error] [pid 21030] [client 95.128.149.236:55910] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 15:02:59.690540 2021] [php7:error] [pid 20982] [client 45.146.165.123:52064] script '/var/www/html/index.php' not found or unable to stat
[Thu Jun 24 15:03:00.261236 2021] [access_compat:error] [pid 21030] [client 95.128.149.236:56001] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jun 24 15:11:57.397545 2021] [mpm_prefork:notice] [pid 20961] AH00169: caught SIGTERM, shutting down
[Thu Jun 24 15:11:57.533189 2021] [ssl:error] [pid 22872] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 15:11:57.533241 2021] [ssl:error] [pid 22872] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 15:11:57.569081 2021] [ssl:error] [pid 22874] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=sd-74366.dedibox.fr / issuer: CN=sd-74366.dedibox.fr / serial: 1D7901B16BDDE5120481CD64ED1B33B65617FF43 / notbefore: Dec  4 08:21:36 2020 GMT / notafter: Dec  2 08:21:36 2030 GMT]
[Thu Jun 24 15:11:57.569096 2021] [ssl:error] [pid 22874] AH02604: Unable to configure certificate sd-74366.dedibox.fr:443:0 for stapling
[Thu Jun 24 15:11:57.569790 2021] [http2:warn] [pid 22874] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Jun 24 15:11:57.569865 2021] [lbmethod_heartbeat:notice] [pid 22874] AH02282: No slotmem from mod_heartmonitor
[Thu Jun 24 15:11:57.598496 2021] [mpm_prefork:notice] [pid 22874] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Jun 24 15:11:57.598529 2021] [core:notice] [pid 22874] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jun 24 15:50:58.872319 2021] [php7:error] [pid 23154] [client 92.184.105.7:54204] script '/var/www/html/remote.php' not found or unable to stat
script '/var/www/html/remote.php' not found or unable to stat

This shouldn’t go to /var/www/html/nextcloud/remote.php?

Perhaps something in the configuration was missed (Installation on Linux — Nextcloud latest Administration Manual latest documentation), when switching to new php version, new modules can be missing or not set up like the php version before.