Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-30-2023, 07:56 AM   #1
305869
Connoisseur
305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.
 
Posts: 95
Karma: 28344
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
413 Request Entity Too Large

I am running Calibre content server on Windows. I have set Max allowed size for files uploaded to the server option to 500mb. But I cannot upload a 80mb pdf, getting the 413 error.

I found a thread here about this https://www.mobileread.com/forums/sh....php?p=4105048 that says
Quote:
Originally Posted by kovidgoyal View Post
Check the size limits on http requests in nginx.conf.
But I don't understand how to do this. I'm on Windows 10.
305869 is offline   Reply With Quote
Old 05-30-2023, 10:02 AM   #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: 43,975
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
First try to do the upload locally from the same computer as the server via http://localhost:8080 if that works you know its not comeing from the calibre server. Then it is likely coming from some other server/firewall or similar between the client computer and the server computer.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-31-2023, 12:55 AM   #3
305869
Connoisseur
305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.305869 solves Fermat’s last theorem while doing the crossword.
 
Posts: 95
Karma: 28344
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
Quote:
Originally Posted by kovidgoyal View Post
First try to do the upload locally from the same computer as the server via http://localhost:8080 if that works you know its not comeing from the calibre server. Then it is likely coming from some other server/firewall or similar between the client computer and the server computer.
Thank you for the suggestion!
I was able to upload the file normally accessing via localhost and even through the direct IP from another device instead of the domain name. So that told me it wasn't a Calibre problem but something with my reverse proxy setup.

I am not good at that stuff but a friend helped me figure it out. He helped me set it up behind nginx, and he made sure to set client_max_body_size to a large size but it still wasn't working. What finally seemed to fix it was adding the proxy_set_header settings below:

Code:
location / {
    proxy_pass http://<ip redacted>:<port>;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Scheme $scheme;
    proxy_set_header X-Script-Name /calibre;
}
found here: https://github.com/Organizr/Config-C...s/calibre.conf
305869 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
413 Request Entity Too Large georgehuang Server 2 03-22-2021 12:00 AM
recommendation request: need large screen e-reader, ideally waterproof, circa $500 al2244 Which one should I buy? 7 03-20-2020 10:15 PM
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 03:22 PM.


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