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

`occ recognize:classify` : "Could not find file" using S3 as main storage

未关闭
#987 6 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
backend, cli, cloud

调研方向

从 occ recognize:classify 入口点和关联的调试日志开始,然后将其文件访问与能够成功运行的常规后台作业进行比较。针对 S3 主存储和 SFTP 外部存储重现该命令;完成的标准是分类能够处理存储在 S3 中的图像,且不会出现 Could not find file 或移除已排队的项目。

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

描述

bug priority: normal
Which version of recognize are you using?

4.3.2

Enabled Modes

Face recognition

TensorFlow mode

WASM mode

Downstream App

other, please specify below

Which Nextcloud version do you have installed?

27.0.2

Which Operating system do you have installed?

Debian 11

Which database are you running Nextcloud on?

MariaDB

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

N.A.

How much RAM does your server have?

4GiB

What processor Architecture does your CPU have?

ARM64

Describe the Bug

It seems that when using S3 as main storage, recognize can't access the files.
When using occ recognize:classify just after enabling face recognition, it spams Could not find file and removing 123456 from faces queue because it couldn't be found and only succeed to run on images hosted on my SFTP external storage, not on files hosted on S3 main storage.

I've ~600 photos.

It seems to work when using regular background job though, only occ recognize:classify seems to have this problem.

Expected Behavior

It should detect faces also on S3 main storage.

To Reproduce
  • Setup a Nextcloud with S3 main storage
    • Note : I use Hetzner CAX11 (ARM64) and Scaleway Object Storage.
  • Add some photos
  • (Add a SFTP external storage)
  • Install Recognize
  • Activate Face Recognition
  • Run occ recognize:classify
  • See that it succeeds only for images hosted on SFTP, not on S3
Debug log

https://paste.evolix.org/?e24017eeb4db4b87#9N4X5b5Sm1YM6n7t6gQmJDC1pe1Sku6K3etSQG51N1vR

主要语言
PHP
星标
699
派生
68
平均合并
18 小时 34 分钟
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 摘要。