Problem Description
Calibre is not accessible via the .onion site (Onion site is available, login and other apps function as expected via onion site)
Steps to Reproduce Success
- Login to FreedomBox via local/IP
- Launch Calibre
- There be all the Books
Steps to Reproduce Error
- Login to FreedomBox via .onion/Tor Browser (tried on Debian and Android)
- Launch Calibre
- There be no Books, no Books at all : (
Apache autogenerated 404 page
The requested URL was not found on this server.
Most Useful Clue Found
in the file /etc/apache2/conf-enabled/calibre-freedombox.conf is the apache <Location /calibre> block:
ProxyPass http://127.0.0.1:8844/calibre
Use AuthOpenIDConnect
Use RequireGroup calibre
# Calibre has a bug where an empty value for a HTTP header is treated as
# invalid. OIDC_CLAIM_email can be empty and this causes Calibre to error
# out. So, try to pass all the OpenID Connect user information and claims as
# headers that can't have an empty value.
OIDCPassIDTokenAs "serialized"
OIDCPassUserInfoAs "json"
when modified, as follows:
ProxyPass http://127.0.0.1:8844/calibre
#Use AuthOpenIDConnect
#Use RequireGroup calibre
# Calibre has a bug where an empty value for a HTTP header is treated as
# invalid. OIDC_CLAIM_email can be empty and this causes Calibre to error
# out. So, try to pass all the OpenID Connect user information and claims as
# headers that can't have an empty value.
OIDCPassIDTokenAs "serialized"
OIDCPassUserInfoAs "json"
the calibre app loads (and functions) through the tor browser. Unfortunately, it allows unauthenticated access to all calibre functionality.
In case it helps, disabling one or the other does not work, only both.
I’m not intimately familiar with the inner workings of Apache, so I don’t know what would cause the AuthOpenIDConnect or RequireGroup (separate?) modules to presumably choke on the onion address.
I haven’t been able to identify any pertinent error logs.
In case it also helps, I tried this from an admin account, and, also tried manually adding the user to the calibre user group (though, the admin account does have access via local/IP, so I didn’t expect it to matter.
Information
You are running Debian GNU/Linux 13 (trixie) and FreedomBox version 26.8. FreedomBox is up to date.
- x64 server
- apt install freedombox