Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan error if there is a jpg/png file in the folder #490

Open
pinkfloydFR opened this issue Feb 16, 2025 · 0 comments
Open

Scan error if there is a jpg/png file in the folder #490

pinkfloydFR opened this issue Feb 16, 2025 · 0 comments

Comments

@pinkfloydFR
Copy link

pinkfloydFR commented Feb 16, 2025

I have a lot of error of this type when scanning ( mstream v5.13.1 docker ) :

2025-02-16T22:28:52.665Z error: File scan error: Warning: failed to add file /music/** - ***/03.mp3 to database: ENOENT: no such file or directory, open 'd41d8cd98f00b204e9800998ecf8427e.jpg'

Doing a lot of test and finally found the problem :
That 's not a name file or permission problem, it's my 'folder.jpg' which contains the album cover.

What i have done :

TEST 1 :

create a sub folder to isolate my collection with a problematic folder
duplicate it
running scan -> both folder give me scan error

TEST 2 :
deleted the folder.jpg in the second folder
running scan -> first folder give me scan error, the second is perfectly added

TEST 3 :
create a txt file named "1.jpg" in the second folder
running scan -> both folder give me scan error

Expected Behavior
No error with folder with jpg file in

Steps To Reproduce
create a new mstream docker
map a folder containing mp3 AND a jpg file in it
start the docker/scan

Environment

  • OS: Ubuntu 24.04 server
    CPU architecture
    x86-64

Docker creation

---
services:
  mstream:
    image: lscr.io/linuxserver/mstream:latest
    container_name: mstream
    privileged: true
    environment:
      - PUID=1015
      - PGID=1015
      - TZ=Europe/Paris
    volumes:
      - ./config:/config
      - /mnt/zic_pic/_MUSIQUES:/music
    restart: unless-stopped

Thanks !

EDIT :

I confirm, writted a script to rename all .jpg to .jpg1 and .png to png1 in my entire library, no single error during initial scan

@pinkfloydFR pinkfloydFR changed the title Scan error if there is a jpg file in the folder Scan error if there is a jpg/png file in the folder Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant