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 10-06-2019, 12:42 PM   #1
CraftyClown
Member
CraftyClown began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2019
Device: Kindle
403 access errors when making changes via the server web ui

Afternoon all,

I have four calibre libraries on a remote server that I use OPDS to access so I can open on a kindle with KoReader.

I wanted to change the format of certain books, however when I try to do that via the web ui I get a 403 error that tells me 'Anonymous users are not allowed to make changes'

I'm a bit confused about how to access the web UI without being anonymous.

Could anyone point me in the right direction?

Cheers
CraftyClown is offline   Reply With Quote
Old 10-06-2019, 01:00 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 24,051
Karma: 27923385
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT, Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by CraftyClown View Post
Afternoon all,

I have four calibre libraries on a remote server that I use OPDS to access so I can open on a kindle with KoReader.

I wanted to change the format of certain books, however when I try to do that via the web ui I get a 403 error that tells me 'Anonymous users are not allowed to make changes'

I'm a bit confused about how to access the web UI without being anonymous.

Could anyone point me in the right direction?

Cheers
(Recently covered)
You must create a User Account in the Calibre content server
Preferences: Sharing over the net: User Accounts (a tab)

It is really unsafe to allow changes without a logon
theducks is online now   Reply With Quote
Advert
Old 10-06-2019, 01:04 PM   #3
CraftyClown
Member
CraftyClown began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2019
Device: Kindle
Quote:
Originally Posted by theducks View Post
(Recently covered)
You must create a User Account in the Calibre content server
Preferences: Sharing over the net: User Accounts (a tab)

It is really unsafe to allow changes without a logon
So I don't think I have those options. I have Calibre server installed on a headless Linux machine, therefore any changes I make will need to be via command line I guess.

Are you referring to the content server built in the desktop app?
CraftyClown is offline   Reply With Quote
Old 10-06-2019, 01:24 PM   #4
CraftyClown
Member
CraftyClown began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2019
Device: Kindle
So I've checked under --manage-users and I have correctly added a user called craftyclown added with write access.

So where I'm confused is opening the web ui is using an anonymous user.

Is this something to do with the OPDS access?
CraftyClown is offline   Reply With Quote
Old 10-06-2019, 01:31 PM   #5
CraftyClown
Member
CraftyClown began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2019
Device: Kindle
The below is my calibre-server.service file


[Unit]
Description=calibre content server
After=network.target

[Service]
Type=simple
User=craftyclown
Group=craftyclown
ExecStart=/opt/calibre/calibre-server --port=8082 /home/craftyclown/Calibre/Library/Rich /home/craftyclown/Calibre/Library/Kate /home/craftyclown/Calibre/Library/Sonya /home/craftyclown/Calibre/Library/Mum


[Install]
WantedBy=multi-user.target


Is there something obvious I'm missing?
CraftyClown is offline   Reply With Quote
Advert
Old 10-06-2019, 01:51 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 24,051
Karma: 27923385
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT, Galaxy Tab A, Kobo Aura2
sorry
I don't use OPDS so I am of no further help
theducks is online now   Reply With Quote
Old 10-06-2019, 01:55 PM   #7
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: 35,514
Karma: 12737927
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The server uses http auth, whatever client you are using to read OPDS needs to support HTTP auth.
kovidgoyal is offline   Reply With Quote
Old 10-06-2019, 01:58 PM   #8
CraftyClown
Member
CraftyClown began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2019
Device: Kindle
Quote:
Originally Posted by theducks View Post
sorry
I don't use OPDS so I am of no further help
Thanks theducks, forgetting all about OPDS does my service script look ok?
CraftyClown is offline   Reply With Quote
Old 10-06-2019, 02:00 PM   #9
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: 35,514
Karma: 12737927
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And you need --enable-auth passed to the server at a minimum in your startup script.
kovidgoyal is offline   Reply With Quote
Old 10-06-2019, 02:02 PM   #10
CraftyClown
Member
CraftyClown began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2019
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
The server uses http auth, whatever client you are using to read OPDS needs to support HTTP auth.
My issue isn't with the OPDS side of things, that works fine.

My issue is not being able to change the format of files via the web UI. It sees me as an anonymous user and throws a 403 error

Do I need to change my service script in some way?
CraftyClown is offline   Reply With Quote
Old 10-06-2019, 02:04 PM   #11
CraftyClown
Member
CraftyClown began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2019
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
And you need --enable-auth passed to the server at a minimum in your startup script.
Ah right, so is that the issue then?

I need --enable-auth to prevent the anonymous user
CraftyClown is offline   Reply With Quote
Old 10-06-2019, 03:05 PM   #12
CraftyClown
Member
CraftyClown began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2019
Device: Kindle
So adding --enable-auth fixes the web UI for me. I can now edit things from the browser.

The problem is I can no longer use OPDS in KOReader. It crashes if I add the library and try to open it

Is there a way to have both working?
CraftyClown is offline   Reply With Quote
Old 10-06-2019, 10:06 PM   #13
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: 35,514
Karma: 12737927
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Like I said before, the OPDS client needs to supprt http auth, contactthe developers of KOReader and hopefully they will add support.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access Calibre-Web via Kobo web browser chakattack Server 14 08-19-2018 08:51 PM
Calibre Web opds access failing as content server rmzg Calibre Companion 8 07-23-2018 01:49 AM
Multiple Errors on calbire web (content-server) ianmsutherland Calibre 3 06-29-2017 12:28 AM
Porting Calibre's built-in web server to a remote server? perryja Related Tools 6 05-02-2013 10:05 AM
calibre-server OPDS catalog - manual move to web server HaakonME Related Tools 5 09-21-2012 04:11 AM


All times are GMT -4. The time now is 02:21 PM.


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