06-27-2021, 02:21 AM | #1831 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@Trevor68
The failsafe way to install COPS Is to use the latest ZIP file from the release page. Do NOT use the source code install. You need an older version of composer to make it work. |
06-28-2021, 12:07 AM | #1832 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2017
Device: Kobo H20
|
Agreed it did absolutely seem like my installed version of Composer was to new. The lockfile seemed to be requesting older files.
I wanted to use the "updated" version of COPS for the new template, so downloaded the zip from here. https://github.com/SenorSmartyPants/cops Was that where I went wrong, do I need to just grab the original from here. http://blog.slucas.fr/en/oss/calibre-opds-php-server and then somehow add the new template? |
06-28-2021, 12:54 AM | #1833 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2017
Device: Kobo H20
|
Thanks very much for the tip, have combined old and new files now and all up and running.
Next step is to add a user and password, any tips for that? I uncommented the bottom section of .htaccess, but unsure what else to do? Last edited by Trevor68; 06-28-2021 at 01:00 AM. |
06-28-2021, 04:18 AM | #1834 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2017
Device: Kobo H20
|
Almost there! Decided to use PHP password so that is sorted.
I can browse, read and email books online now, the last hurdle is I cannot download. Once I click download I just get the following error. Your ebook can't be opened, because it doesn't exist on the server at this location. Which seems impossible given i can see it? My Calibre Library Path is D:/Calibrelibrary/ if I change it at all the entire show stops working so I'm a bit confused. |
06-28-2021, 06:11 AM | #1835 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@Trevor68
If "Your ebook can't be opened, because it doesn't exist on the server at this location." it's usually a (reading)rights problem. Check if your directory can be read by ALL users. With what (app, browser, etc) are you trying to download the epub? |
06-28-2021, 07:53 AM | #1836 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Jun 2017
Device: Kobo H20
|
All fixed now, permissions was the tip I needed to notice that my windows/apache setup was not using/obeying the ,htaccess file. doh.
Thanks for your help |
07-17-2021, 09:10 AM | #1837 |
Member
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
|
COPS can't see mounted usb hard drive
I've been using COPS quite happily on my headless Raspberry Pi server running Ubuntu 20.10 for a year or so. The library is on a 1TB usb hard drive plugged into the Pi, and Ubuntu runs on a 120 GB SSD. I discovered yesterday it has stopped working, possibly as a result of allowing an ubuntu upgrade a couple of weeks or so ago. Now COPS reports that metadata.db isn't present at /mnt/usb-hdd/calibre-library/ even though I can see it there by listing the directory via the command line. Owner and permissions haven't changed since it was working.
If I copy the library folder to the system drive on /home/calibre-library and modify config_local.php to suit it works fine, but I want my library on the main storage drive. Has anybody experienced something similar or have any suggestions? |
07-18-2021, 05:39 AM | #1838 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@cbalmforth
What is the output of: http://<Pi-ip>/cops/checkconfig.php Last edited by mariosipad; 07-18-2021 at 07:17 AM. |
07-23-2021, 05:26 AM | #1839 |
Member
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
|
Sorry for the late reply. I've attached screenshots of the checkconfig.php output and a listing of the directory containing a test library. COPS works fine if I move this directory to /home/calibre-library/
|
07-23-2021, 08:21 AM | #1840 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Can you do:
ls -l /mnt/usb-hdd/ and ls -l /mnt/usb-hdd/calibre-library/ I do not run Ubuntu on my Pi, so first checking the rights setting, the most common problem. Last edited by mariosipad; 07-23-2021 at 09:51 AM. |
07-25-2021, 01:21 PM | #1841 |
Member
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
|
Thanks mariosipad. I've attached screenshots of the directory listings you requested, and also of the directory where COPS works. I blanked out the other directory info!
|
07-27-2021, 01:21 PM | #1842 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
I had an installation of (X)Ubuntu 20.10 in a virtual machine. First I updated it to all the latest versions. It has the same PHP version 7.4.9 as you use on your Pi. I even mounted a remote directory with a cops directory on it on the vm.
I could not reproduce your problem. As far as I can see there as no obvious errors with the rights. What you can try: 1 - (only to test) give the calibre-library on the mounted disk all rights (chmod 777) 2 - what does you config_local.php look like? 3 - if you make a symlink from the mounted directory to somewhere inside the COPS directory. Does that work? |
07-28-2021, 07:20 AM | #1843 | |
Member
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
|
Quote:
Many thanks for all your help, but I've decided to stop wasting everybody's time and live with having the calibre library on my system disk and not the external usb hard drive. Maybe I'll take another look when the system disk starts running out of space! |
|
08-05-2021, 10:35 AM | #1844 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2021
Device: Kobo
|
hello, do you update your php.ini and add you shared folder db path in the open_basedir variable ?
|
08-05-2021, 12:38 PM | #1845 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@SylvainDx
Not needed (as far as I can remember) for my installation of Xubuntu 20.10 (in a vm). But it's always worth checking. |
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 |