Error in Nextcloud logs using "tail" but not in administrator panel

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.5
  • Operating system and version (e.g., Ubuntu 24.04):
    • Raspberry OS 12 Bookworm
  • Web server and version (e.g, Apache 2.4.25):
    • 2.4.62
  • PHP version (e.g, 8.3):
    • 8.3
  • MariaDB version:
    • 10.11.6
  • Caddy version:
    • 2.6.2 (using config file, no JSON)
  • Redis-server version
    • 7.0.15
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After fresh installation and removing errors
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • unzipped latest nextcloud package, over SSH
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • no

The issue, maybe it’s no problem at all:

In my administrator settings, I have no errors mentioned. But in the nextcloud log (/var/www/nextcloud/data/nextcloud.log), I see, amongst other errors:

The requested uri(/.well-known/webfinger) cannot be processed by the script '/nextcloud/index.php'
The requested uri(/ocm-provider/) cannot be processed by the script '/nextcloud/index.php'

This is in my config.php:

<?php
$CONFIG = array (
  'overwriteprotocol' => 'https',
  'overwritehost' => 'my.domain.be',
  'overwrite.cli.url' => 'https://my.domain.be',
...
  'trusted_domains' => 
  array (
    0 => 'xx.xx.xx.xx:8080',
    1 => 'my.domain.be',
  ),
  'trusted_proxies' => 
  array (
    0 => ''xx.xx.xx.xx',
    1 => '127.0.0.1',
  ),
...
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 1.5,
  ),
  'theme' => '',
  'loglevel' => 2,
);

And this is in my Caddy file:

https://my.domain.be {
    reverse_proxy 127.0.0.1:8080
    tls my@mail.be

    redir /.well-known/carddav /remote.php/dav/ 301
    redir /.well-known/caldav /remote.php/dav/ 301
    redir /.well-known/webfinger /index.php/.well-known/webfinger 301
    redir /.well-known/nodeinfo /index.php/.well-known/nodeinfo 301

    header {
        Strict-Transport-Security "max-age=15552000; includeSubDomains"
    }

    @forbidden {
        path /data/*
    }
    respond @forbidden 404

}

And this is in the nextcloud config:

<VirtualHost *:8080>
  DocumentRoot /var/www/nextcloud/
  ServerName  my.domain.be

  <Directory /var/www/nextcloud/>
    Require all granted
    AllowOverride All
    Options FollowSymLinks MultiViews
    <IfModule mod_dav.c>
      Dav off
    </IfModule>
  </Directory>
</VirtualHost>

Does the fact it isn’t in the administrator warnings, mean there’s no problem? Nextcloud seems to work well. I’m in the process of optimization, before I start using calendar and contacts, so I can’t say if it gives a problem with caldav and cardav.

Can I delete this post?

Because, there is no problem at all. The errors in the log file, were from a previous date, when it wasn’t solved yet…

2 Likes