![]() |
#1 |
Enthusiast
![]() Posts: 26
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 |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,668
Karma: 50388804
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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 ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
Quote:
Are you referring to the content server built in the desktop app? |
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 26
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? |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 26
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? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,668
Karma: 50388804
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
sorry
I don't use OPDS so I am of no further help ![]() |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,541
Karma: 20170320
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.
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
|
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,541
Karma: 20170320
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.
|
![]() |
![]() |
![]() |
#10 | |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
Quote:
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? |
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Jun 2019
Device: Kindle
|
|
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() Posts: 26
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? |
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,541
Karma: 20170320
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.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot access Calibre-Web via Kobo web browser | chakattack | Server | 14 | 08-19-2018 07:51 PM |
Calibre Web opds access failing as content server | rmzg | Calibre Companion | 8 | 07-23-2018 12:49 AM |
Multiple Errors on calbire web (content-server) | ianmsutherland | Calibre | 3 | 06-28-2017 11:28 PM |
Porting Calibre's built-in web server to a remote server? | perryja | Related Tools | 6 | 05-02-2013 09:05 AM |
calibre-server OPDS catalog - manual move to web server | HaakonME | Related Tools | 5 | 09-21-2012 03:11 AM |