[RC] failed DB upgrade - db check complains about differences in table
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 38/100
Piste de recherche
Start by tracing occ db:schema:check and the schema definition for oc_sharing_share; the report names the mismatched columns and missing indexes. Compare the expected schema with the MariaDB schema after db:schema:export --sql, then determine why recreating the table leaves the check unchanged. Done means the schema check reports no differences after the supported repair or upgrade path.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
⚠️ This issue respects the following points: ⚠️
- This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
- This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
- I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
- I agree to follow Nextcloud's Code of Conduct.
- I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
At least since upgrading to NC 35.0.3 RC1 I get a complaint at the end of 'occ upgrade' that there's a problem with the db structure.
Running occ db:schema:check -v yields the following output:
oc_sharing_share: column 'owner_user_id' differs in: length
oc_sharing_share: column 'owner_instance_id' differs in: type, length
oc_sharing_share: column 'state_id' differs in: type, length
oc_sharing_share: missing index 'IDX_9C06C0803CB5AD9B'
oc_sharing_share: missing index 'sharing_share_owner'
So I checked the db schema:
sudo -u www-data php occ db:schema:export oc_sharing_share
- oc_sharing_share:
- columns:
- id:
- name: id
- type: bigint
- default
- notnull: true
- length
- precision: 10
- scale: 0
- fixed: false
- unsigned: false
- autoincrement: false
- columnDefinition
- comment
- last_updated:
- name: last_updated
- type: bigint
- default
- notnull: true
- length
- precision: 10
- scale: 0
- fixed: false
- unsigned: false
- autoincrement: false
- columnDefinition
- comment
- owner_instance_id:
- name: owner_instance_id
- type: string
- default
- notnull: false
- length: 128
- precision: 10
- scale: 0
- fixed: false
- unsigned: false
- autoincrement: false
- columnDefinition
- comment
- owner_user_id:
- name: owner_user_id
- type: string
- default
- notnull: true
- length: 128
- precision: 10
- scale: 0
- fixed: false
- unsigned: false
- autoincrement: false
- columnDefinition
- comment
- state_id:
- name: state_id
- type: string
- default
- notnull: true
- length: 16
- precision: 10
- scale: 0
- fixed: false
- unsigned: false
- autoincrement: false
- columnDefinition
- comment
- indexes:
- PRIMARY:
- name: PRIMARY
- columns:
- id
- unique: true
- primary: true
- flags:
- options:
- sequences:
- tables:
Since the table didn't contain anything I moved the existing table out of the way and recreated it with the output from sudo -u www-data php occ db:schema:export --sql oc_sharing_share - but the db check still complains exactly like before.
Sorry, i got no idea which app or part of the server is to blame, so I posted it here.
Steps to reproduce
1.sudo -u www-data php occ db:schema:check -v
2.
3.
Expected behavior
either get it repaired automatically during an upgrade of NC or through the commands mentioned above - which should result in cessation of error message during upgrades
Nextcloud Server version
35
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.4
Web server
Nginx
Database engine version
MariaDB
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
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
- Langage dominant
- PHP
- Étoiles
- 37.6k
- Forks
- 5.4k
- Merge moyen
- 1 j 13 h
- PR mergées (30 j)
- 623
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de nextcloud/server
-
[Bug]: Axios Update NeededPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte0. Needs triage 35-feedback bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
34-feedback
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: GET /js/../<anything> returns 500 (NotPermittedException from JsController::getJs) instead of 404Peut-être pris @lazerg l’a pris il y a 7 jours. Ouverte35-feedback
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: Dashboard widgets registered via OCA.Dashboard.register() sometimes never mount (spinner forever) – Vue 3 non-deep `callbacks` watcher racePeut-être pris @lazerg l’a pris il y a 7 jours. Ouverte35-feedback
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de nextcloud/server
Issues similaires
-
Fix routes for adminOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
area: tests area: user refactoring
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
nplhse/collaborative-ivena-statistics#1845 ·
Les mainteneurs répondent en général sous 1 jour
-
[Sync EN] filesystem: document the ValueError of fgets(), file_get_contents(), and touch() (#6167)Ouvertesync-en
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
sync-en
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 2 jours
-
Перевод устарел
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
Les mainteneurs répondent en général sous 1 jour