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]: Quick embed metadata failing #3323

Closed
michelangelo4 opened this issue Aug 21, 2024 · 3 comments · Fixed by #3329
Closed

[Bug]: Quick embed metadata failing #3323

michelangelo4 opened this issue Aug 21, 2024 · 3 comments · Fixed by #3329
Labels
bug Something isn't working

Comments

@michelangelo4
Copy link

What happened?

When trying to quick embed metadata into a (test) file I get the error
ENOTDIR, ERROR: [AudioMetadataManager] Target directory is not writable
and the metadata is not embedded.

What did you expect to happen?

Metadata to be embedded and if this fails for a message to pop up. Here just nothing happened and at first I thought it finished properly.

Steps to reproduce the issue

  1. Use a version higher than 2.11.0 and try to embed metadata on a file that is on a shared folder on a qnap. Run audiobookshelf via command line not container station (that's my case).

Audiobookshelf version

v2.12.3

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

[2024-08-22 00:11:33.704] INFO: [fileUtils] Directory is not writable "/data/DDD.mp3" [Error: ENOTDIR: not a directory, open '/data/DDD.mp3/accessTest'] {
audiobookshelf-audiobookshelf-1  |   errno: -20,
audiobookshelf-audiobookshelf-1  |   code: 'ENOTDIR',
audiobookshelf-audiobookshelf-1  |   syscall: 'open',
audiobookshelf-audiobookshelf-1  |   path: '/data/DDD.mp3/accessTest'
audiobookshelf-audiobookshelf-1  | }
audiobookshelf-audiobookshelf-1  | [2024-08-22 00:11:33.707] ERROR: [AudioMetadataManager] Target directory is not writable: /data/DDD.mp3 (AudioMetadataManager.js:106)

Additional Notes

Sorry in advance if something is not perfect, this is my first bug report.

This is on a Qnap QTS TS-877. I mounted a shared folder /share.../.../ to /data. I checked permissions, but they are all 777 or 666 and from within the containers shell using "docker exec -it sh" I can access and move/copy everything.

Important: This bug only occurs if the version is higher than 2.11.0. If I downgrade to 2.11.0 everything just works fine.

@michelangelo4 michelangelo4 added the bug Something isn't working label Aug 21, 2024
@advplyr
Copy link
Owner

advplyr commented Aug 21, 2024

Is the file stored in the root folder and not inside of a subdirectory?

@michelangelo4
Copy link
Author

michelangelo4 commented Aug 21, 2024

It is inside of a subdirectory, I shortened the upper path for privacy reasons. Real path would be something like
/data/michelangelo/audiobooks/DDD/DDD224.mp3

EDIT: After reading what you referenced to I can confirm: the file is stored in the root folder of the library I added and the audiobook is single-filed.

@advplyr advplyr added the awaiting release Issue is resolved and will be in the next release label Aug 24, 2024
Copy link

Fixed in v2.13.0.

@github-actions github-actions bot removed the awaiting release Issue is resolved and will be in the next release label Aug 31, 2024
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

Successfully merging a pull request may close this issue.

2 participants