nextcloud / nextcloud/server

[Bug]: Database error when running migration 29000Date20240124132201 for app core An exception occurred while executing a query: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'type' at row 1

Open
#47,172 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 28-feedback bug
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

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

I'm new to nextcloud and Github and I'm going around in circles without finding a solution to this problem...
My Nextcloud instance is on portainer/Docker which are on openmediavault

Mettre à jour vers 29.0.4
Exception: Database error when running migration 29000Date20240124132201 for app core An exception occurred while executing a query: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'type' at row 1

Journaux détaillés
Préparation de la mise à jour

Réglage du niveau de journalisation à « débogage »

Mode de maintenance activé

Étape de réparation : Repair MySQL collation

Informations de réparation : All tables already have the correct collation -> nothing to do

Étape de réparation : Copy data from accounts table when migrating from ownCloud

Étape de réparation : Drop account terms table when migrating from ownCloud

Mise à jour du schéma de la base de données

Exception: Database error when running migration 29000Date20240124132201 for app core An exception occurred while executing a query: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'type' at row 1

La mise à jour a échoué. Veuillez reporter le problème à la communauté Nextcloud.

Steps to reproduce
  1. désactivé le mode maintenance
  2. Ouvrir son url nextcloud
  3. Mettre à jour
Expected behavior

que ça marche

Installation method

None

Nextcloud Server version

28

Operating system

None

PHP engine version

None

Web server

Nginx

Database engine version

MariaDB

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

None

Are you using the Nextcloud Server Encryption module?

None

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

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response
image_2024-08-10_195953789
image_2024-08-10_200028545

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.

Research direction

Start with migration 29000Date20240124132201 and the reported MariaDB warning for the type column. Review the migration against the affected database schema and reproduce the update from Nextcloud 28 to 29. Done means the migration completes without the data-truncation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb, php
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.