advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
6.53k stars 466 forks source link

[Bug]: Error Uploading Large Audiobook #2230

Closed Nitrousoxide closed 1 year ago

Nitrousoxide commented 1 year ago

Describe the issue

I have created a TTS version of The Wandering Inn Vol 6. The total book is about 4.5 gigs, split up into chapter files of less than 100 mb in size each. Attempting to upload the folder gives this error:

<html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>openresty</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

Screenshot: image

image

Logs

2023-10-20 10:35:39

ERROR

[Utils] Failed to get ino for path /audiobooks/Pirateaba/The Wandering Inn Web Novel/The Wandering Inn Web Novel Vol 6 Error: ENOENT: no such file or directory, stat '/audiobooks/Pirateaba/The Wandering Inn Web Novel/The Wandering Inn Web Novel Vol 6'

2023-10-20 10:35:39

ERROR

[fileUtils] Recurse files error Error: ENOENT: no such file or directory, scandir '/audiobooks/Pirateaba/The Wandering Inn Web Novel/The Wandering Inn Web Novel Vol 6/'

2023-10-20 10:35:39

ERROR

[fileUtils] Failed to getFileTimestampsWithIno Error: ENOENT: no such file or directory, stat '/audiobooks/Pirateaba/The Wandering Inn Web Novel/The Wandering Inn Web Novel Vol 6'

Folder Structure:

Pirateaba/The Wandering Inn - Web Novel/The Wandering Inn  - Web Novel - Volume 6 
❯ ls
 6.00.mp3     '6.12 K.mp3'  '6.24 D.mp3'  '6.36 E.mp3'  '6.48 T.mp3'   6.60.mp3                  'Interlude - Numbtongue (Pt. 1).mp3'
 6.01.mp3     '6.13 K.mp3'   6.25.mp3     '6.37 E.mp3'   6.49.mp3     '6.61 L.mp3'               'Interlude - Numbtongue (Pt. 2).mp3'
 6.02.mp3     '6.14 K.mp3'   6.26.mp3      6.38.mp3     '6.50 I.mp3'  '6.62 L.mp3'               'Interlude - Rufelt.mp3'
 6.03.mp3     '6.15 K.mp3'  '6.27 M.mp3'   6.39.mp3     '6.51 A.mp3'  '6.63 P.mp3'               'Interlude - Talia.mp3'
'6.04 D.mp3'   6.16.mp3      6.28.mp3     '6.40 E.mp3'  '6.52 K.mp3'   6.64.mp3                  "Interlude - The Titan's Question.mp3"
'6.05 D.mp3'  '6.17 S.mp3'   6.29.mp3     '6.41 E.mp3'  '6.53 K.mp3'   6.65.mp3                  'Interlude - Two Rats.mp3'
'6.06 D.mp3'  '6.18 H.mp3'   6.30.mp3     '6.42 E.mp3'  '6.54 K.mp3'  '6.66 H.mp3'
'6.07 D.mp3'  '6.19 H.mp3'   6.31.mp3     '6.43 E.mp3'  '6.55 K.mp3'   6.67.mp3
 6.08.mp3     '6.20 D.mp3'   6.32.mp3     '6.44 E.mp3'   6.56.mp3      6.68.mp3
 6.09.mp3     '6.21 D.mp3'  '6.33 E.mp3'  '6.45 E.mp3'   6.57.mp3      Cover.mp3
 6.10.mp3     '6.22 D.mp3'  '6.34 E.mp3'  '6.46 E.mp3'   6.58.mp3     'Interlude - Embria.mp3'
 6.11.mp3     '6.23 D.mp3'   6.35.mp3     '6.47 E.mp3'   6.59.mp3     'Interlude - Foliana.mp3'

Steps to reproduce the issue

  1. Build large ebook with seperate files for each chapter
  2. Attempt to upload as folder
  3. Get error

Audiobookshelf version

2.4.4

How are you running audiobookshelf?

Docker

advplyr commented 1 year ago

This is an error with your server setup because the error is coming from openresty. I don't know your specific setup but a quick search came up with this that might help you https://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/