nextcloud / nextcloud/mail

[Bug]: Database error when running migration 4100Date20241209000000 for app mail

Open
#10,737 3 comments 0 reactions 1 assignee View on GitHub

@SebastianKrupinski is already working on this.

Since Apr 23, 2025.

bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

⚠️ This issue respects the following points: ⚠️
Bug description

I'm running Nextcloud 30.0.6. I received a notification that an update to the mail application existed so I selected the update option. I received the following error message. Is this a problem or more of an erroneous notification? Since the column being checked already existed I suspect it's probably OK. The mail application appears to be running OK and it states its version 4.2.0 which appears to be the latest. Just wanted to check.

Update to 30.0.6

Exception: Database error when running migration 4100Date20241209000000 for app mail An exception occurred while executing a query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'summary'
Detailed logs

Preparing update

Set log level to debug

Turned on maintenance mode

Repair step: Repair MySQL collation

Repair info: All tables already have the correct collation -> nothing to do

Repair step: Copy data from accounts table when migrating from ownCloud

Repair step: Drop account terms table when migrating from ownCloud

Updating database schema

Updated database

Exception: Database error when running migration 4100Date20241209000000 for app mail An exception occurred while executing a query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'summary'

The update was unsuccessful. Please report this issue to the Nextcloud community.

Steps to reproduce
  1. Run update of mail app
Expected behavior

Update with no errors

Nextcloud Server version

30

Operating system

None

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 32.0.1 to 32.0.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps
mail
Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.