LDAP Operations error after docker image upgrade

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 27.0
Operating system and version (eg, Ubuntu 20.04): latest Docker image
Apache or nginx version (eg, Apache 2.4.25): 2.4.56
PHP version (eg, 7.4): 8.2.7

The issue you are facing:

Cannot reach nextcloud anymore. After starting the docker container I am told to perform an upgrade. The upgrade fails with LDAP Operations error.

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

Steps to replicate it:

  1. Upgrade to latest docker image (27.0)

The output of your Nextcloud log in Admin > Logging:

not reachable anymore

The detailed output I get is:

Exception: Database error when running migration 1027Date20230504122946 for app dav LDAP Operations error

Detaillierte Protokollmeldungen

Update vorbereiten

Log-Level auf “debug” gesetzt

Wartungsmodus eingeschaltet

Reparaturschritt: Repair MySQL collation

Reparaturinformation: All tables already have the correct collation → nothing to do

Reparaturschritt: Repair SQLite autoincrement

Reparaturschritt: Copy data from accounts table when migrating from ownCloud

Reparaturschritt: Drop account terms table when migrating from ownCloud

Das Datenbankschema wird aktualisiert

Datenbank aktualisiert

Exception: Database error when running migration 1027Date20230504122946 for app dav LDAP Operations error

Das Update ist fehlgeschlagen. Bitte melden Sie dieses Problem an die Nextcloud Community.

What could I do?

Thank you for your help!

Best regards,
Monty

1 Like

Did you manage to find a solution to this?
This solved it for me - [Bug]: NC 27: Update failed - Database error when running migration 1027Date20230504122946 for app dav LDAP Operations error · Issue #38902 · nextcloud/server · GitHub

Unfortunately, no. I had to disable LDAP authentication until somebody has an idea. Which LDAP server do you use?

I use an Authentik LDAP server

I am using Authentik too - maybe there is a problem with Authentik’s LDAP implementation.