Note, this is a SqlLite version of nextcloud. It’s my test system I run before upgrading my actual nextcloud which runs on mariadb.
db:schema:check reports oc_federated_invites missing after DropFederatedInvitesTable runs.
missing table ‘oc_federated_invites’
unexpected table ‘oc_appconfig_ex’
unexpected table ‘oc_ex_event_handlers’
unexpected table ‘oc_ex_speech_to_text’
unexpected table ‘oc_ex_speech_to_text_q’
unexpected table ‘oc_ex_text_processing’
unexpected table ‘oc_ex_text_processing_q’
unexpected table ‘oc_ex_translation’
unexpected table ‘oc_ex_translation_q’
unexpected table ‘oc_preferences_ex’
oc_jobs: column ‘id’ differs in: type, autoincrement, unsigned
oc_preview_locations: column ‘id’ differs in: type, autoincrement, unsigned
oc_preview_versions: column ‘id’ differs in: type, autoincrement, unsigned
oc_previews: column ‘id’ differs in: type, autoincrement, unsigned
oc_job_classes_registry: missing index ‘class_index’
oc_activity: missing index ‘activity_object’
oc_share_external: column ‘id’ differs in: type, autoincrement
oc_text_steps: unexpected index ‘text_steps_doc_id_id_index’
Disabled apps (not affecting exit code):
If the schema for a disabled app differs from what is expected, this might indicate the app was updated since it was disabled. Missing migrations will be applied once the app is enabled again.
app_api:
- missing table ‘oc_ex_apps_talk_bots’
- oc_ex_ui_files_actions: missing column ‘default_action’
The files confirm it. DropFederatedInvitesTable is an IRepairStep that drops federated_invites only if it has no rows. The table was empty on your instance, so it was dropped, which matches it being absent from your SQLite file. If it had held invitation data, it would have been kept and the check wouldn’t have flagged it.
Version1016Date202502262004 still carries a #[CreateTable] attribute for federated_invites. The schema check builds its expected schema from the migrations and doesn’t know about the repair step’s drop. So db:schema:check expects a table that 35 deliberately removes. Because that migration is already recorded as applied, it won’t recreate the table. Nothing needs fixing here, and you shouldn’t try to bring the table back.
What’s left is the two missing indexes. Run:
docker exec cloud occ db:add-missing-indices
docker exec cloud occ db:schema:check -v
After that, the remaining output should be only the false positives:
oc_federated_invites missing, from the dropped table
- the
oc_ex_*, oc_appconfig_ex and oc_preferences_ex tables, plus the disabled app_api lines
- the
id column type/autoincrement/unsigned differences, likely SQLite noise
- the
oc_text_steps extra index
The check will still exit non-zero and the startup log line will keep appearing. The clean fix is upstream: a report on nextcloud/server that db:schema:check flags oc_federated_invites as missing after DropFederatedInvitesTable has intentionally removed it would show them the check needs to account for the drop.
Thanks for the detailed write-up. I also experienced this after upgrading an sqlite instance to 35.*.
The instance seem to run fine. Do you know if there is anything to do now, or is it just waiting for a fix?