Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2021, 10:33 PM   #1
georgehuang
Enthusiast
georgehuang began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Oct 2020
Device: MacBook, iPhone, Kindle Paperwhite
413 Request Entity Too Large

When trying to add books from Content Server's browser UI, I almost always get "413 Request Entity Too Large" error. The entirety of the error message looks like:

Code:
Failed to upload the file: fyodor-dostoevsky_crime-and-punishment_constance-garnett.epub

Failed to communicate with "/cdb/add-book/2/n/fyodor-dostoevsky_crime-and-punishment_constance-garnett.epub/Calibre", with status: [413 (error)] Request Entity Too Large

413 Request Entity Too Large

nginx/1.18.0 (Ubuntu)
The books I have been trying to upload are no larger than normal, and I can add them through command-line or Calibre's desktop UI just fine. And I think I might have successfully uploaded 2 books or so in the past, but mostly the uploading just fails with the above message.
georgehuang is offline   Reply With Quote
Old 03-21-2021, 11:07 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,036
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Check the size limits on http requests in nginx.conf.
kovidgoyal is offline   Reply With Quote
Old 03-22-2021, 12:00 AM   #3
georgehuang
Enthusiast
georgehuang began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Oct 2020
Device: MacBook, iPhone, Kindle Paperwhite
Did not know it was default to only 1MB. Added the following to nginx.conf:

Code:
http {
    ...
    client_max_body_size 100M;
}
And it works now. Thanks!
georgehuang is offline   Reply With Quote
Reply

Tags
browser, calibre, content server, server, upload

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
recommendation request: need large screen e-reader, ideally waterproof, circa $500 al2244 Which one should I buy? 7 03-20-2020 10:15 PM
Find and replace entity roger64 Sigil 3 10-12-2012 10:13 AM
Entity not viewed in ADE surendraps Writers' Corner 1 10-26-2010 08:12 AM
The entity name must immediately follow the '&' in the entity reference digireads Calibre 3 06-08-2010 10:31 PM
Unutterably Silly Most users ever online was 1,413, 01-23-2005 at 10:03 AM daffy4u Lounge 5 08-29-2008 11:06 PM


All times are GMT -4. The time now is 04:31 PM.


MobileRead.com is a privately owned, operated and funded community.