07-09-2015, 07:31 AM | #1111 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
|
07-17-2015, 11:10 AM | #1112 |
Connoisseur
Posts: 72
Karma: 10
Join Date: Dec 2008
Device: iPhone, Note3
|
Is COPS still in development? Is there a feature request list anywhere?
|
07-22-2015, 03:31 AM | #1113 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@ki5ck:
As far as I know COPS is still in development. A new version is in the pipeline. For feature requests search for COPS & github (in your favorite searchengine). |
07-27-2015, 02:44 AM | #1114 | |
Enthusiast
Posts: 48
Karma: 10
Join Date: Mar 2012
Location: Sydney, Australia
Device: Kindle 3G & Paperwhite
|
Quote:
I have COPS working great with HTML but cannot get it to work at all for OPDS using Mantano on both Ipad & an Android phone. I use the format "https://www.mydomainname/cops/feed.php" but get "NO RESULTS" on the reader/s. I've looked in the apache2 log, other_vhosts_access.log , and found this.... Code:
www.mydomainname:80 192.168.1.254 - - [27/Jul/2015:12:50:59 +1000] "GET /cops/feed.php/ HTTP/1.1" 302 473 "-" "Mozilla/5.0 (Linux; U; Android 4.3; en-au; GT-I9300 Build/JSS15J) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 MantanoReader" I'm wondering if I need to forward a specific port to get this to work??? As usual, any help is warmly welcome. Thanks, TC |
|
07-27-2015, 04:52 AM | #1115 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@teejcee:
OPDS and https should work with mantano (source). If you try to connect to COPS (on your web server) from outside of your LAN you should forward one or more ports in your router: Ports: http = 80 https = 443 Last edited by mariosipad; 07-27-2015 at 01:36 PM. |
07-27-2015, 07:22 PM | #1116 | |
Enthusiast
Posts: 48
Karma: 10
Join Date: Mar 2012
Location: Sydney, Australia
Device: Kindle 3G & Paperwhite
|
Quote:
I'll keep looking into how Apache2 is handling the connection. I think the problem is there. Thanks for your input @mariosipad....much appreciated. |
|
07-28-2015, 04:47 AM | #1117 | |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Quote:
But why use https? it does not prevent anyone from accessing your webserver. It will protect you from 3rd parties from seeing what you are accessing. Perhaps protecting your web server (COPS) with a password is enough? (you can setup a usernameassword in COPS or even better with .htaccess.) |
|
07-29-2015, 05:39 AM | #1118 |
Enthusiast
Posts: 48
Karma: 10
Join Date: Mar 2012
Location: Sydney, Australia
Device: Kindle 3G & Paperwhite
|
@mariosipad
Still working on it...( lucky I'm retired with time on my hands... ) . I have found a lead from the line in the apache2 log file I posted earlier. Part of it read..... Code:
"GET /cops/feed.php/ HTTP/1.1" 302 473 as far as I've reached today. I have looked through the code but my PHP skills are as abysmal as my Apache2 skills. As far as https is concerned, as I've said, it works just fine with HTML. Oh, and I do have user/password set up ok via .htaccess...all works fine from browser. One other thing is that if I use https://mydomainname/cops/feed.php in firefox browser, I get the OPDS layout. I don't get the ability to download any books though. I use that exact same url from Mantano without success. I'm seriously considering renaming the cops directory and doing a fresh install to see what happens. I may have walked on something that I've forgotten about that may have broken the current install. Who knows what tomorrow may bring. Cheers... |
07-29-2015, 08:20 AM | #1119 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@teejcee
I'm 99% sure that you problems with reaching COPS with https have nothing to do with COPS. Every webserver has a sort of "welcome" page like: Code:
It works! This is the default web page for this server. The web server software is running but no content has been added, yet. 1 - http://<your-LAN-IP-of your -server> 2 - https://<your-LAN-IP-of your -server> 1 should work if 2 should work can you reach COPS with https://<your-LAN-IP-of your -server>/cops/index.php ? If 2 does not work, then you should setup https on your web server. [I did a quick setup of https on my apache webserver on a Pi and it works (after a restart or 2) with firefox. Later I will post the steps I needed to take here, bud now for something completely different ....... dinner ] However, bad or actually good luck, iOS does not accept self signed (ssl) certificates. So the only way to make COPS with https work is to buy a genuine ssl certificate (I'm not going to do that). If I want an as secure as possible connection I will use openVPN not https. What webserver are you using? Good luck! Last edited by mariosipad; 07-29-2015 at 05:22 PM. |
07-30-2015, 08:30 PM | #1120 |
Enthusiast
Posts: 48
Karma: 10
Join Date: Mar 2012
Location: Sydney, Australia
Device: Kindle 3G & Paperwhite
|
@mariosipad
It seems that , at least for the time being, that the ssl certificate/iOS problem is something of a show stopper. As an alternative for my installation, I'm going to set up the email option in config_local.php. By doing this, my few users of the library should be able to send themselves a file & side load it into their ebook reader. Now my next challenge is to work out how to nominate which file format is to be emailed when there is more than one. In testing so far against one title ( it has both ebub & azw3 ) the email always contains the azw3. Have you any idea as to how to do this selectively? edit....I've done some more testing by converting my test publication to mobi. So now I have epub, azw3 & mobi and the email will now only let me send the mobi file, so it's only the last format in the array ( if more than one ) that can be emailed. In the meantime, it's time for me to dive back into the PHP code to see what I can work out. Cheers, TC Last edited by teejcee; 07-30-2015 at 09:57 PM. Reason: More information |
08-15-2015, 03:16 PM | #1121 |
Enthusiast
Posts: 35
Karma: 28904
Join Date: Aug 2015
Device: none
|
getting 404 not found when downloading - koreader / kobo glo
Hi,
I've been giving COPS a try for the past few days and it seems to be exactly what I need. A very nice piece of software. Unfortunately I've been been unable to solve a problem over the past few days and at this point I am out of ideas. I am running COPS on an Apache server on my VPS. It's working great except for one important issue: I cannot download from the COPS server to my Kobo Glo running koreader. I can browse the catalog but when I try to download I get a 404 not found error. (The same happens in the stock kobo glo browser.) I have a default configuration except for url rewriting on. Other clients (eg iOS Marvin) can browse and download from the server and the browser interface works perfectly also. At first I suspected a problems with koreader, but I have no problem downloading to the kobo from other OPDS servers, including the demo server at http://cops-demo.slucas.fr/feed.php So I strongly suspect a configuration problem in Apache that causes an issue for the kobo/koreader and only the kobo/koreader but I cannot find it. I have tried with and without https, moving the calibre database in different locations, tweaking the rewriterules, xsendfile turned on and off etc etc. I am really stuck here. Does anyone have any suggestions on how I can solve this? Thanks. |
08-16-2015, 05:21 AM | #1122 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
To use your Kobo with Apache you need to enable mod_rewrite in apache.
In my version of Apache I had to do the following: 1 - ssh into my server (as root, so I do not need sudo) 2 - type: a2enmod rewrite 3 - type: /etc/init.d/apache2 restart and it worked, no more 404 |
08-16-2015, 07:15 AM | #1123 | |
Enthusiast
Posts: 35
Karma: 28904
Join Date: Aug 2015
Device: none
|
Quote:
Code:
root@server # /usr/local/apache/bin/httpd -l | grep rewrite mod_rewrite.c Code:
[16/Aug/2015:11:45:11 +0200] "GET /cops/download/67/wallabag+-+wallabag.mobi HTTP/1.1" 200 1002415 "-" "Mozilla/5.0 (Linux; U; Android 2.0; en-us;) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 (Kobo Touch)" Code:
[16/Aug/2015:11:50:18 +0200] "GET /cops/feed.php?page=10 HTTP/1.1" 200 28063 "-" "LuaSocket 3.0-rc1" Code:
[16/Aug/2015:11:50:28 +0200] "GET /download/67/wallabag+-+wallabag.mobi HTTP/1.1" 404 5627 "-" "LuaSocket 3.0-rc1" Any ideas? |
|
08-16-2015, 11:01 AM | #1124 |
Enthusiast
Posts: 35
Karma: 28904
Join Date: Aug 2015
Device: none
|
I've had a breakthrough and found a workaround for this issue.
As previously mentioned if I add my COPS server to koreader via the "Add new OPDS catalog", I can browse my library but downloading fails, due to the dropping of '/cops' from 'http://www.myserver.com/cops/download/....' This only appears to be an issue when both an Apache COPS server and koreader client are involved (so far, anyway). However, if I manually add my COPS server to the list of koreader's default OPDS servers by editing .adds/koreader/frontend/apps/opdscatalog I can browse and download from my server perfectly. I am posting this workaround for the benefit of anyone else who experiences this problem. My workaround makes me fairly confident the problem is not in my server configuration, but rather in the COPS or koreader code. I will open a new issue on github (COPS or koreader? both?) but if anyone has any further insight into what might be causing this issue please let me know. EDIT: cross posted on koreader for kobo thread Last edited by gummihuhn; 08-16-2015 at 11:07 AM. Reason: added link to cross-post on other thread |
08-16-2015, 11:22 AM | #1125 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Great that you found a workaround!
I have not (yet) installed KoReader on my (new) Kobo Glo HD. So I cannot confirm the KoReader side of the problem. All I can say is: 1 - OPDS from iPad (with several different OPDS clients) is no problem with Apache 2 - The COPS demo runs (as far as I know) on NGNIX. (So no Apache problem here) 3 - using the default Kobo browser I can download from my Apache COPS server. I would say it is a KoReader problem. |
Tags |
calibre opds, dns, kobo aura, synology |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre OPDS server with windows apps? | nickdma | Related Tools | 10 | 03-03-2024 02:53 PM |
[Old Thread] Android FBreader and Calibre OPDS server question | kalex | Calibre | 5 | 12-24-2015 10:16 PM |
PHP+Apache web server for calibre ... | chaley | Related Tools | 254 | 04-28-2014 08:18 PM |
External OPDS catalogue in Calibre | bolton | Calibre | 1 | 09-05-2012 06:14 AM |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |