seblucas / cops

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)
http://blog.slucas.fr/en/oss/calibre-opds-php-server
GNU General Public License v2.0
1.43k stars 229 forks source link

tolino vision 5 with cops on Synology: book download problem #517

Closed cslondon closed 2 years ago

cslondon commented 2 years ago

Hello, I have cops version 1.2 running on a Synology NAS DSM7.1, installed via ssh, with apache2.4 and php 7.4. Accessing and downloading books from 2 Kindle paperwhites is fine, when downloading from above tolino I get an error stating the file is defective. I have url-rewriting set to 1 / on in the local config. It appears a known problem with some tolinos, possibly similar to Kobo? my specific questions if not a known answer is available:

Thanks. Carsten

cslondon commented 2 years ago

A couple of updates:

javax.net.ssl Handshake exception :+1: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Strange is that this happens when trying to acess within the LAN vua http, not https.

I have no certificates installed on the Synology. In the future thus type of problem might spread with more and more secure browsers in readers?!

marioscube commented 2 years ago

@cslondon

This is not a known problem with COPS (perhaps nobody tried or they just gave up), but it is a known problem with "calibre-web". The autor of "calibre-web" did NOT officially solve it. It seems to be a problem with the (bugginess) of the tolino browser.

The workaroud seems to be (not tested/do not have a tolino): One way to work around the problem is to click the books author. Then from the author page click the selected books title (not the cover) to got the books page. At this point you can download the file.

Can you try this?

Logs in a "linux" system (and the Synology is a linux system) ate typically written to /var/log

PS: I'm just a fellow COPS enthousiast. I know how to install and make COPS work. I do not know how COPS is programmed.

cslondon commented 2 years ago

Hello, Thank you for the info, will give it a try when back from trip. On the Synology the web server have special logging areas separate from standard Linux, haven't drilled down by now. Will also check further on the web browser error which seems most specific to the issue. Not sure if the server side gets aware of the problem on the client side.

On August 12, 2022 4:17:29 PM GMT+02:00, marioscube @.> wrote: @.

This is not a known problem with COPS (perhaps nobody tried or they just gave up), but it is a known problem with "calibre-web". The autor of "calibre-web" did NOT officially solve it. It seems to be a problem with the (bugginess) of the tolino browser.

The workaroud seems to be (not tested/do not have a tolino): One way to work around the problem is to click the books author. Then from the author page click the selected books title (not the cover) to got the books page. At this point you can download the file.

Can you try this?

Logs in a "linux" system (and the Synology is a linux system) ate typically written to /var/log

PS: I'm just a fellow COPS enthousiast. I know how to install and make COPS work. I do not know how COPS is programmed.

-- Reply to this email directly or view it on GitHub: https://github.com/seblucas/cops/issues/517#issuecomment-1213160438 You are receiving this because you were mentioned.

Message ID: @.***>

marioscube commented 2 years ago

@cslondon Do you have the same issues with the Tolino app for iOS/Android?

If "yes" then I can test with my version of COPS. If "no" I will not bother installing it.

Sometimes, in my experience, COPS (apache/PHP) throws an error if a book cannot be found or cannot be delivered completely. I do not have a Synology with DSM 7. MIne is still on DSM 5 :-(

cslondon commented 2 years ago

@marioscube I did the tests back from trip: The problem downloading the books is independent from where I try to access the book, it always starts downloading but fails with errormessage, so going via author doesn't change this. Tolino APP: I didn't see an option to connect the tolino app to COPS. Downloading from normal webbroser on tablets and PC isn't a problem. But: I found the reason for my problems: all readers (paperwhite and tolino) are blocked in my router to access the internet, they are only allowed local access including the synology with cops. Main reason for the blocker were some automatic firmware updates on the readers which happened which I couldn't dismiss/reject. The tolino webrowser has apparently a problem with this, when I remove the internet blocker on the router (AVM Fritzbox under internet filters) it works now. So the tolino browser apparently does something besides the local cops access when downloading a book from cops. Didn't find anything further from the logs. I did a test on a tablet with blocking there same way internet access and downloading a book, this is no problem with internet access blocked. So the issue is tolino/webbrowser specific together with internet blocking, nothing specific to cops. Thanks again for your feedback and help.