[Bug]: Database error when running migration 4100Date20241209000000 for app mail
@SebastianKrupinski is already working on this.
Since Apr 23, 2025.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
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
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.