Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Upgrade from 32 to 33.0.0 -> SQLSTATE[23000]

未关闭
#1,458 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
28/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
mariadb, php
领域
databases

调研方向

首先,在使用 Recognize 和 Nextcloud 33.0.0 时复现 SQLSTATE[23000] 重复条目错误,重点关注 previews_file_uniq_idx 约束以及报告中的 occ 重置命令。将数据库行为与升级上下文进行比较,并确定哪项更改可以阻止错误反复出现;当正常使用不再产生这些数据库错误时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug upstream
Which version of recognize are you using?

11.0.1

Enabled Modes

Face recognition

TensorFlow mode

Normal mode

Downstream App

Files App

Which Nextcloud version do you have installed?

33.0.0

Which Operating system do you have installed?

Arch Linux

Which database are you running Nextcloud on?

MariaDB 12.2.2

Which Docker container are you using to run Nextcloud? (if applicable)

No response

How much RAM does your server have?

64GiB

What processor Architecture does your CPU have?

AMD Ryzen 9 7950X3D 16-Core Processor

Describe the Bug

Since I upgraded to NC33, I noticed a lot of DB errors in the log like such:
An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '5573-1024-768-6-0--1' for key 'previews_file_uniq_idx'
I tried the occ reset commands but it didn't help.

Expected Behavior

Not to have DB errors.

To Reproduce

Use Recognize since 33.0.0.

Debug log

No response

主要语言
PHP
星标
701
派生
68
平均合并
10 天 21 小时
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/recognize 的其他 Issue

查看 nextcloud/recognize 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。