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]: Server crash while downloading new podcast episodes if podcast folder has not yet been created #1019

Closed
mbentham opened this issue Sep 28, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mbentham
Copy link

Describe the issue

When trying to download a podcast episode the docker container crashes and has to be restarted, last error in the log is like this:

Error: ENOENT: no such file or directory, open '/podcasts/Transfer - The Emiliano Sala Story/8. Off the Radar.mp3'
Emitted 'error' event on WriteStream instance at:
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/podcasts/Transfer - The Emiliano Sala Story/8. Off the Radar.mp3'
}

If podcast folder is manually created then error no longer occurs, looks like a check to see if podcast folder exists before trying to save podcast file is missing.

Steps to reproduce the issue

Try to download an episode of a podcast where the podcast's folder has not yet been created

Audiobookshelf version

v2.1.5

How are you running audiobookshelf?

Docker

@mbentham mbentham added the bug Something isn't working label Sep 28, 2022
@advplyr
Copy link
Owner

advplyr commented Sep 30, 2022

When you first add the podcast it will check for the folder and create it if it does not exist. In this case the folder must have been deleted or you changed the folder paths of your library or something.

We still need to fix this but just wanted to mention the folder check does happen initially.

@advplyr
Copy link
Owner

advplyr commented Oct 2, 2022

Fixed in v2.2.0

@advplyr advplyr closed this as completed Oct 2, 2022
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