404 not found on the interface and no more sync with davx5

Nextcloud version (eg, 20.0.5): 22.2.3.0
Operating system and version (eg, Ubuntu 20.04): DEBIAN 11
Apache or nginx version (eg, Apache 2.4.25): 2.4.52
PHP version (eg, 7.4): 8.1.1

The issue you are facing:

i’m using Nextcloud exclusively in local network. When i go to the interface, i get the “404 not found page”. Nextcloud was working well since few weeks. Even this afternoon, i used it.

I didn’t change anything (i think) in my config since this afternoon.

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

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

<?php
$CONFIG = array (
  'instanceid' => '*****',
  'passwordsalt' => '*****',
  'secret' => '*****',
  'trusted_domains' => 
  array (
    0 => '192.168.1.2',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '22.2.3.0',
  'overwrite.cli.url' => 'http://192.168.1.2/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '****',
  'installed' => true,
);

The output of your Apache log in /var/log/error.log:

[Thu Jan 20 00:00:00.586203 2022] [mpm_prefork:notice] [pid 805] AH00163: Apache/2.4.52 (Debian) configured -- resuming normal operations
[Thu Jan 20 00:00:00.586217 2022] [core:notice] [pid 805] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jan 20 18:29:07.136159 2022] [mpm_prefork:notice] [pid 805] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Jan 20 18:29:07.185494 2022] [mpm_prefork:notice] [pid 135281] AH00163: Apache/2.4.52 (Debian) configured -- resuming normal operations
[Thu Jan 20 18:29:07.185572 2022] [core:notice] [pid 135281] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jan 20 23:11:43.595672 2022] [mpm_prefork:notice] [pid 135281] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Jan 20 23:11:43.641545 2022] [mpm_prefork:notice] [pid 157281] AH00163: Apache/2.4.52 (Debian) configured -- resuming normal operations
[Thu Jan 20 23:11:43.641625 2022] [core:notice] [pid 157281] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jan 20 23:11:47.818524 2022] [mpm_prefork:notice] [pid 157281] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Jan 20 23:11:47.861634 2022] [mpm_prefork:notice] [pid 157297] AH00163: Apache/2.4.52 (Debian) configured -- resuming normal operations
[Thu Jan 20 23:11:47.861715 2022] [core:notice] [pid 157297] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jan 20 23:12:32.898594 2022] [mpm_prefork:notice] [pid 157297] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Jan 20 23:12:32.947283 2022] [mpm_prefork:notice] [pid 157335] AH00163: Apache/2.4.52 (Debian) configured -- resuming normal operations
[Thu Jan 20 23:12:32.947367 2022] [core:notice] [pid 157335] AH00094: Command line: '/usr/sbin/apache2'

The output of your Apache log in /var/log/access.log:

::1 - - [20/Jan/2022:22:43:17 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.52 (Debian) (internal dummy connection)"
192.168.215.2 - - [20/Jan/2022:22:46:33 +0100] "GET /nextcloud/index.php/apps/cospend/api-priv/projects/soph_-et-matt/members HTTP/1.1" 404 453 "-" "MoneyBuster/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:46:33 +0100] "POST /nextcloud/index.php/apps/cospend/getProjects HTTP/1.1" 404 453 "-" "phonetrack-android/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:46:33 +0100] "GET /nextcloud/ocs/v2.php/cloud/capabilities HTTP/1.1" 404 453 "-" "phonetrack-android/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:46:34 +0100] "GET /nextcloud/index.php/avatar/matthieu/45 HTTP/1.1" 404 453 "-" "phonetrack-android/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:46:45 +0100] "GET /nextcloud/index.php/apps/cospend/api-priv/projects/soph_-et-matt/members HTTP/1.1" 404 453 "-" "MoneyBuster/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:46:46 +0100] "POST /nextcloud/index.php/apps/cospend/getProjects HTTP/1.1" 404 453 "-" "phonetrack-android/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:46:46 +0100] "GET /nextcloud/ocs/v2.php/cloud/capabilities HTTP/1.1" 404 453 "-" "phonetrack-android/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:46:46 +0100] "GET /nextcloud/index.php/avatar/matthieu/45 HTTP/1.1" 404 453 "-" "phonetrack-android/0.1.15"
192.168.1.3 - - [20/Jan/2022:22:46:59 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:22:47:15 +0100] "GET /nextcloud/ HTTP/1.1" 200 480 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:22:47:15 +0100] "GET /nextcloud/index.php HTTP/1.1" 200 3715 "http://192.168.1.2/nextcloud/" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.215.2 - - [20/Jan/2022:22:47:35 +0100] "GET /nextcloud/ocs/v2.php/cloud/capabilities?format=json HTTP/1.1" 404 434 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.1.3 - - [20/Jan/2022:22:52:09 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:22:52:10 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 489 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:22:52:18 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:22:52:18 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 489 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:22:52:19 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 489 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:22:59:01 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:22:59:02 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 489 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.215.2 - - [20/Jan/2022:22:59:43 +0100] "GET /nextcloud/index.php/apps/cospend/api-priv/projects/soph_-et-matt/members HTTP/1.1" 404 453 "-" "MoneyBuster/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:59:43 +0100] "POST /nextcloud/index.php/apps/cospend/getProjects HTTP/1.1" 404 453 "-" "phonetrack-android/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:59:43 +0100] "GET /nextcloud/ocs/v2.php/cloud/capabilities HTTP/1.1" 404 453 "-" "phonetrack-android/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:59:43 +0100] "GET /nextcloud/index.php/avatar/matthieu/45 HTTP/1.1" 404 453 "-" "phonetrack-android/0.1.15"
192.168.215.2 - - [20/Jan/2022:22:59:49 +0100] "GET /nextcloud/ocs/v2.php/cloud/user?format=json HTTP/1.1" 404 490 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:49 +0100] "GET /nextcloud/index.php/avatar/Matthieu/384 HTTP/1.1" 404 434 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:49 +0100] "GET /nextcloud/index.php/avatar/Sophie/384 HTTP/1.1" 404 434 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:49 +0100] "GET /nextcloud/status.php HTTP/1.1" 200 2657 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:49 +0100] "GET /nextcloud/ocs/v2.php/cloud/user?format=json HTTP/1.1" 404 490 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:49 +0100] "PROPFIND /nextcloud/remote.php/dav/files/Matthieu// HTTP/1.1" 405 502 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:50 +0100] "GET /nextcloud/index.php/avatar/Sophie/384 HTTP/1.1" 404 434 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:51 +0100] "GET /nextcloud/status.php HTTP/1.1" 200 2657 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:51 +0100] "GET /nextcloud/ocs/v2.php/cloud/user?format=json HTTP/1.1" 404 490 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:51 +0100] "PROPFIND /nextcloud/remote.php/dav/files/Matthieu// HTTP/1.1" 405 502 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:51 +0100] "GET /nextcloud/index.php/avatar/Sophie/384 HTTP/1.1" 404 434 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:22:59:55 +0100] "PROPFIND /nextcloud/remote.php/dav/files/Matthieu//Tickets%20%C3%A9v%C3%A8nements/ HTTP/1.1" 405 502 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:23:00:01 +0100] "GET /nextcloud/index.php/avatar/Sophie/384 HTTP/1.1" 404 434 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:23:00:02 +0100] "GET /nextcloud/status.php HTTP/1.1" 200 2657 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:23:00:02 +0100] "GET /nextcloud/ocs/v2.php/cloud/user?format=json HTTP/1.1" 404 490 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:23:00:02 +0100] "PROPFIND /nextcloud/remote.php/dav/files/Matthieu// HTTP/1.1" 405 502 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:23:00:02 +0100] "GET /nextcloud/index.php/avatar/Sophie/384 HTTP/1.1" 404 434 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.215.2 - - [20/Jan/2022:23:00:14 +0100] "POST /nextcloud/index.php/login/v2 HTTP/1.1" 404 490 "-" "DAVx5/4.1-ose (2021/12/29; dav4jvm; okhttp/4.9.1) Android/10"
192.168.215.2 - - [20/Jan/2022:23:00:19 +0100] "POST /nextcloud/index.php/login/v2 HTTP/1.1" 404 490 "-" "DAVx5/4.1-ose (2021/12/29; dav4jvm; okhttp/4.9.1) Android/10"
192.168.215.2 - - [20/Jan/2022:23:00:42 +0100] "POST /nextcloud/index.php/login/v2 HTTP/1.1" 404 490 "-" "DAVx5/4.1-ose (2021/12/29; dav4jvm; okhttp/4.9.1) Android/10"
192.168.215.2 - - [20/Jan/2022:23:02:36 +0100] "GET /nextcloud/ocs/v2.php/cloud/capabilities?format=json HTTP/1.1" 404 434 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"
192.168.1.3 - - [20/Jan/2022:23:06:11 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:23:06:12 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 489 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:23:12:40 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:23:12:43 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 489 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:23:13:27 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:23:13:28 +0100] "GET /nextcloud/index.php/apps/dashboard/ HTTP/1.1" 404 489 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:23:13:44 +0100] "GET /nextcloud/index.php/ HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:23:13:56 +0100] "GET /nextcloud/index.php/ HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.1.3 - - [20/Jan/2022:23:13:56 +0100] "GET /favicon.ico HTTP/1.1" 404 489 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.215.4 - - [20/Jan/2022:23:17:50 +0100] "PROPFIND /nextcloud/remote.php/dav/addressbooks/users/Sophie/contacts/ HTTP/1.1" 405 558 "-" "DAVx5/4.1-ose (2021/12/29; dav4jvm; okhttp/4.9.1) Android/10"
192.168.215.2 - - [20/Jan/2022:23:27:39 +0100] "GET /nextcloud/ocs/v2.php/cloud/capabilities?format=json HTTP/1.1" 404 434 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.1"

thanks a lot for your help

EDIT

I tried to downgrade php version to 7.4 with

sudo update-alternatives --config php

but still no access to the interface (404 not found) and no sync over davx5…

I restored a backup and everything work fine now.

Thanks for your help.

Do you know what caused it?