Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Failed to open stream: No such file or directory

オープン
#1,278 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
php

調査の方向性

まず recognize/lib/Classifiers/Classifier.php の 105 行目と 291 行目を調べ、次に報告された Nextcloud、Docker、ストレージの構成でスキャンを再現します。分類とプレビュー生成の際に、報告された画像パスを利用できない理由を確認します。バックグラウンドスキャンで、影響を受ける画像がこれらのファイルまたはプレビューのエラーなしに処理されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug priority: normal waiting for more information
Which version of recognize are you using?

9.0.1

Enabled Modes

Face recognition, Object recognition, Video recognition

TensorFlow mode

Normal mode

Downstream App

Memories App

Which Nextcloud version do you have installed?

31.0.2

Which Operating system do you have installed?

Debian 12

Which database are you running Nextcloud on?

mariadb 11.4.5

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

latest

How much RAM does your server have?

16 GB

What processor Architecture does your CPU have?

x86_64

Describe the Bug

just a few pictures (but some!) ware sucsussfully scanned by recognize (about 500 out of approx. 4000)

In error-Log there are some different errors:

"filesize(): stat failed for /var/www/html/data/Jean-Philip Ryll/files/Shares/Sternenhimmel/IMG_20221024_202409.jpg at /var/www/html/custom_apps/recognize/lib/Classifiers/Classifier.php#105" 

"exif_imagetype(/var/www/html/data/Jean-Philip Ryll/files/Shares/Sternenhimmel/IMG_20221024_202409.jpg): Failed to open stream: No such file or directory at /var/www/html/custom_apps/recognize/lib/Classifiers/Classifier.php#291" 

"Failed to generate preview of 559809 with dimension 1024 with nextcloud preview manager: No provider successfully handled the preview generation"

this errors appear repeatly with different pictures

Expected Behavior

recognize should scan my pictures in background and recognize faces and models :D

To Reproduce

I freshly installed recognize and configured it (as shown)

Image

Image

Image

Errorlog

Image

My docker-compose.yml:

version: "3"

networks:
  web:
    external: true
  internal:
    external: false

volumes:
  nextcloud:
  cache:
    
services:
  db:
    image: mariadb:11.4 #### Version am 11.04.2025 hinzugefuegt
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --innodb-read-only-compressed=OFF
    volumes:
      - /home/nextcloud/mysql:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=******
      - MYSQL_PASSWORD=******
      - MYSQL_DATABASE=nextclouddb
      - MYSQL_USER=nextcloud
      - MARIADB_AUTO_UPGRADE=1
    networks:
      - internal

  cache:
    image: redis
    restart: always
    command: redis-server --requirepass ******
    volumes:
      - cache:/data
    networks:
      - internal

  cloud:
    #image: nextcloud:latest
    build: .
    restart: always
    links:
      - db
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /storage/nextcloud:/var/www/html/data:z
      - /var/docker/nextcloud/000-default.conf:/etc/apache2/sites-available/000-default.conf
      - /var/docker/nextcloud/default-ssl.conf:/etc/apache2/sites-available/default-ssl.conf
      - nextcloud:/var/www/html:z
    environment:
      - MYSQL_PASSWORD=******
      - MYSQL_DATABASE=nextclouddb
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db
      - OVERWRITEHOST=cloud.domain.de
      - OVERWRITEPROTOCOL=https
      - TRUSTED_PROXIES=172.19.0.0/16
      - APACHE_DISABLE_REWRITE_IP=1
      - REDIS_HOST=cache
      - REDIS_HOST_PASSWORD=******
      - NC_default_phone_region=DE
      - PHP_MEMORY_LIMIT=4G
      - PHP_UPLOAD_LIMIT=4G
    labels:
      - traefik.http.routers.cloud.rule=Host(`cloud.domain.de`)
      - traefik.http.routers.cloud.tls=true
      - traefik.http.routers.cloud.tls.certresolver=lets-encrypt
      - traefik.port=80
      - traefik.http.middlewares.cloudsts.headers.referrerPolicy=no-referrer
      - traefik.http.middlewares.cloudsts.headers.SSLRedirect=true
      - traefik.http.middlewares.cloudsts.headers.stsSeconds=15552000
      - traefik.http.middlewares.cloudsts.headers.browserXSSFilter=true
      - traefik.http.middlewares.cloudsts.headers.contentTypeNosniff=true
      - traefik.http.middlewares.cloudsts.headers.forceSTSHeader=true
      - traefik.http.middlewares.cloudsts.headers.STSIncludeSubdomains=true
      - traefik.http.middlewares.cloudsts.headers.STSPreload=true
      - traefik.http.middlewares.cloudsts.headers.customFrameOptionsValue=SAMEORIGIN
      - traefik.http.middlewares.cloudsts.headers.hostsProxyHeaders=X-Forwarded-For
      - traefik.http.middlewares.cloudredir.redirectregex.permanent=true
      - traefik.http.middlewares.cloudredir.redirectregex.regex=https://(.*)/.well-known/(card|cal)dav
      - traefik.http.middlewares.cloudredir.redirectregex.replacement=https://$$1/remote.php/dav/
      - traefik.http.routers.cloud.middlewares=cloudsts,cloudredir
    networks:
      - internal
      - web

  cron:
    image: nextcloud:latest
    restart: always
    entrypoint: /cron.sh
    depends_on:
      - db
      - cache
    volumes:
      - nextcloud:/var/www/html:z
      - /storage/nextcloud:/var/www/html/data:z
    networks:
      - internal

Debug log

No response

主要言語
PHP
スター
699
フォーク
68
平均マージ
18時間 34分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/recognize のほかの issue

nextcloud/recognize の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。