Nextcloud 18.02 massive log flooding with LDAP Errors

Hello,

since the update to 18.02 nextcloud floods the log files with the following message:

Deprecated event type for OCA\User_LDAP\User\User::postLDAPBackendAdded: null

Does this happen to anyone else? Anybody got any ideas?

Thanks a lot!

This error exists since Nextcloud 18.00. Even my Nextclud 18.04 floods my logs.

See:



(no solution at this time)

Today I tried again to upgrade my Nextcloud on the Univention Corporate Server to version 18.0.4.
The error messages appeared again and flooded my nextcloud.log

So I searched though internet and found a workaroud/solution in the Nextcloud help-forum

0 = DEBUG
1 = INFO
2 = WARN
3 = ERROR
4 = FATAL

Default without explicit configuration is 2. During the upgrade it’s set to 0 and after successful upgrade to the previous value.

So I did the following:

  • univention-app shell nextcloud
  • apt-get install
  • cd var/www/html/config/
  • config.php
    Change the value of the line
    ’loglevel’ => 0,
    to
    ’loglevel’ => 2,
  • and safe the file.

Starting from this point no messages flood the log file anymore.

The main reason to do this was the sentence:

Default without explicit configuration is 2

I am testing my Nextcloud instance sind 2 hours using its apps, synchronizing several devices, CalDAV and CardDav and could not find any malfunction since then. Installing additional apps worked fine, too.

1 Like

Correction of my previous posting:
In my posting above there are the items posted in brackets missing:

Here the correct version.
Depending on the editor you want to use insert its name instead of “vim” f.ex. “nano”.
So I did the following:

  • univention-app shell nextcloud
  • apt-get install vim
  • cd var/www/html/config/
  • vim config.php
  • Change the value of the line
    ’loglevel’ => 0,
    to
    ’loglevel’ => 2,
  • and safe the file.

@Mornsgrans. Additionally to the indicated above the seems to be an UCS Varible to set loglevel: UCS / System / Univention Configuration Registry -> apache2/loglevel :
Commentary in UCS: Diese Variable konfiguriert den Detailgrad der Apache-Logmeldungen. Mögliche Werte sind: emerg alert crit error warn notice info debug.
I don’t know if this drives a change in config.php as discribed above?

This only changes the setting in /etc/apache/… for Apache2 itself, but not the loglevel within Nextcloud.

Hi @Mornsgrans , you’re right (didn’t read properly). It would be great if one could set an UCS variable for nextcloud as well.
Greetings

Mastodon