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 11-13-2019, 09:31 PM   #1
ejwright
Junior Member
ejwright began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2006
Location: Toronto, ON
Device: iLiad
Server Upload error (404) w/ enable-local-write

Hi, I am getting an error trying to upload a book to the calibre-server running on linux

I am running the following command line:

Code:
/usr/bin/calibre-server --port=8888 --enable-local-write /mnt/drive/Books/
and get this error
Quote:
----
Failed to communicate with "/cdb/add-book/2/n/test1.azw3/Books", with status: [403 (error)] Forbidden

Anonymous users are not allowed to make changes
------
I have serached the forums, but am at a bit of a loss as to what the issue may be.. the log files doesn't show anything
ejwright is offline   Reply With Quote
Old 11-14-2019, 12:00 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: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you'll need --enable-auth as well IIRC.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-20-2019, 09:06 PM   #3
ejwright
Junior Member
ejwright began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2006
Location: Toronto, ON
Device: iLiad
Quote:
Originally Posted by kovidgoyal View Post
you'll need --enable-auth as well IIRC.
Thank-you-- I tried that, but it just turns on authentication.

I was looking to use the "--enable-local-write" which, according to the documentation is supposed to "Allow un-authenticated local connections to make changes. Normally, if you do not turn on authentication, the server operates in read-only mode, so as to not allow anonymous users to make changes to your calibre libraries. This option allows anybody connecting from the same computer as the server is running on to make changes. This is useful if you want to run the server without authentication but still use calibredb to make changes to your calibre libraries. Note that turning on this option means any program running on the computer can make changes to your calibre libraries. By default, this option is disabled."

That is what I was hoping to enable
ejwright is offline   Reply With Quote
Old 11-20-2019, 10:16 PM   #4
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: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Works for me with:

Code:
calibre-server --enable-local-write                                                                                 
calibre server listening on 0.0.0.0:8080
OPDS feeds advertised via BonJour at: 192.168.1.5 port: 8080
and

Code:
calibredb --with-library=http://localhost:8080 add /t/demo.epub
kovidgoyal is offline   Reply With Quote
Old 11-23-2019, 07:43 AM   #5
ejwright
Junior Member
ejwright began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2006
Location: Toronto, ON
Device: iLiad
Ahh.. thanks for your help getting this sorted...

Mine does work using the local IP

Code:
calibredb --with-library=http://localhost:8080 add /t/demo.epub

but doesn't work with external IP (or via the website)

Code:
calibredb --with-library=http://192.168.1.100:8080 add /t/demo.epub
Is there anything else that could be causing it?
ejwright is offline   Reply With Quote
Advert
Old 11-23-2019, 08:39 AM   #6
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: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
local write means write by connections form the local ip address.
kovidgoyal is offline   Reply With Quote
Old 11-23-2019, 10:15 AM   #7
ejwright
Junior Member
ejwright began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2006
Location: Toronto, ON
Device: iLiad
Quote:
Originally Posted by kovidgoyal View Post
local write means write by connections form the local ip address.
Duh! -- I took that to mean enable the process to conduct local writes, thanks for clarifying! (Also, thanks for Calibre - its awesome!)
ejwright is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
404 error. Server installation and configuration with SSL radioagent Server 1 06-30-2019 08:10 AM
Custom Column on Content Server: 404 Not Found annekaelber Calibre 14 04-05-2014 04:39 AM
Calibre-Server: no pages found (404) in OSX cdaller Calibre 7 04-06-2013 03:40 PM
Harpers Magazine recipe - 404 error? BillD Recipes 3 12-10-2012 02:49 AM
Touch Kobo/Adobe not working--error 404 when I try to get the pubs--Server down? tea2 Kobo Reader 4 07-02-2012 09:02 AM


All times are GMT -4. The time now is 08:27 PM.


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