[Bug]: Updating a books Cover when Cover.jpg exists causes ABS crash #885

Closed
opened 2026-04-24 23:25:04 +02:00 by adam · 1 comment
Owner

Originally created by @ceramicwhite on GitHub (Jan 10, 2023).

Describe the issue

If a Cover.jpg exists when ABS attempts to overwrite with cover.jpg server crashes.
This only happens for me when there is a capitalization discrepancy, a lot of releases online will come with a Cover.jpg.
I checked servers permissions are correct and checked specifically for the folder in question.
Changing the original Cover.jpg to cover.jpg on host and then matching and updating no error was thrown and worked as intended.

2023-01-10 13:07:57 /server/libs/njodb/index.js:103
2023-01-10 13:07:57         throw error;
2023-01-10 13:07:57         ^
2023-01-10 13:07:57 
2023-01-10 13:07:57 [Error: ENOENT: no such file or directory, chmod '/audiobooks/Jim Butcher/Dresden Files/Book 08 - Proven Guilty/cover.jpg'] {
2023-01-10 13:07:57   errno: -2,
2023-01-10 13:07:57   code: 'ENOENT',
2023-01-10 13:07:57   syscall: 'chmod',
2023-01-10 13:07:57   path: '/audiobooks/Jim Butcher/Dresden Files/Book 08 - Proven Guilty/cover.jpg'
2023-01-10 13:07:57 }

Steps to reproduce the issue

  1. Have settings set to store cover with book
  2. Have a Cover.jpg already present in books folder
  3. Use Book Match to update details and Cover

Audiobookshelf version

v2.2.12

How are you running audiobookshelf?

Docker

Originally created by @ceramicwhite on GitHub (Jan 10, 2023). ### Describe the issue If a `Cover.jpg` exists when ABS attempts to overwrite with `cover.jpg` server crashes. This only happens for me when there is a capitalization discrepancy, a lot of releases online will come with a Cover.jpg. I checked servers permissions are correct and checked specifically for the folder in question. Changing the original `Cover.jpg` to `cover.jpg` on host and then matching and updating no error was thrown and worked as intended. ``` 2023-01-10 13:07:57 /server/libs/njodb/index.js:103 2023-01-10 13:07:57 throw error; 2023-01-10 13:07:57 ^ 2023-01-10 13:07:57 2023-01-10 13:07:57 [Error: ENOENT: no such file or directory, chmod '/audiobooks/Jim Butcher/Dresden Files/Book 08 - Proven Guilty/cover.jpg'] { 2023-01-10 13:07:57 errno: -2, 2023-01-10 13:07:57 code: 'ENOENT', 2023-01-10 13:07:57 syscall: 'chmod', 2023-01-10 13:07:57 path: '/audiobooks/Jim Butcher/Dresden Files/Book 08 - Proven Guilty/cover.jpg' 2023-01-10 13:07:57 } ``` ### Steps to reproduce the issue 1. Have settings set to store cover with book 2. Have a `Cover.jpg` already present in books folder 3. Use Book Match to update details and Cover ### Audiobookshelf version v2.2.12 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:25:04 +02:00
adam closed this issue 2026-04-24 23:25:04 +02:00
Author
Owner

@advplyr commented on GitHub (Feb 12, 2023):

Fixed in v2.2.15

@advplyr commented on GitHub (Feb 12, 2023): Fixed in [v2.2.15](https://github.com/advplyr/audiobookshelf/releases/tag/v2.2.15)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#885