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

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

Closed
ceramicwhite opened this issue Jan 10, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@ceramicwhite
Copy link

ceramicwhite commented 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

@ceramicwhite ceramicwhite added the bug Something isn't working label Jan 10, 2023
@advplyr advplyr added the awaiting release Issue is resolved and will be in the next release label Feb 11, 2023
@advplyr
Copy link
Owner

advplyr commented Feb 11, 2023

Fixed in v2.2.15

@advplyr advplyr closed this as completed Feb 11, 2023
@advplyr advplyr removed the awaiting release Issue is resolved and will be in the next release label Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants