Error during update from to 18.0.4

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via 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:


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


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 (
Operating system and version (Webhoster unkown):
Apache or nginx version ( Apache 2.4.2):
PHP version (eg, 7.2.31):

The issue you are facing:
Problem with the update

When trying to update the system from version 17 to 18, I get the following error message during the webbase update
Doctrine\DBAL\Schema\SchemaException: The table with name ‘db_nextcloud.oc_direct_edit’ already exists.

I have not found an entry for this error message in the forum.
Unfortunately I have no access to SSH.

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

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

Doctrine\DBAL\Schema\SchemaException: The table with name 'db_nextcloud.oc_direct_edit' already exists.

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


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