![]() |
#1246 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
So the directories are:
/root/cops and /root/ebooks ? -> try: $config['calibre_directory'] = '../ebooks/'; or $config['calibre_directory'] = '/root/ebooks/'; |
![]() |
![]() |
![]() |
#1247 | |
Connoisseur
![]() Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
|
Quote:
The directory structure is /root/<cops files> /root/ebooks/ Your first suggestion gives me the Configuration Check page and "File ../ebooks/metadata.db not found, Please check" Your second suggestion gives me the grey screen. I have tried every variant of path that I can think of. I've even renamed the ebooks folder, just to check that it wasn't something to do with the name itself. |
|
![]() |
![]() |
Advert | |
|
![]() |
#1248 | |
Zealot
![]() Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
|
Quote:
Mariosipad solved my problem when I posted an image of the equivalent of your "root" folder with what's in it and an image of my config_local.php file. Maybe he can do the same for you if you post those. |
|
![]() |
![]() |
![]() |
#1249 | |
Connoisseur
![]() Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
|
Quote:
Mariosipad then made exactly the same suggestion that he had to you, so I tested it again just to be sure, along with his other suggestion, and posted the results. I doubt that a couple of screenshots are going to make any difference, but I'll take one of the directory structure just to make sure. |
|
![]() |
![]() |
![]() |
#1250 |
Connoisseur
![]() Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
|
Directory structure screenshot
Screenshot attached
|
![]() |
![]() |
Advert | |
|
![]() |
#1251 |
Connoisseur
![]() Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
|
Result screenshots
The first screenshot shows the result of the suggested path "../ebooks/"
The second shows the result of the supposedly correct path "ebooks/" |
![]() |
![]() |
![]() |
#1252 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Hmm, I thought I had a solution to your problem, but now I'm not so sure....
![]() Based on your "directory structure screenshot" the relevant line in the config_local.php should be: Code:
$config['calibre_directory'] = './ebooks/' Or not, can you test? For testing purposes the access rights on directories /library.momraths.com and /library.momraths.com/ebooks should be (at least) 755. But I suspect they already are. ![]() Just to be sure, can you verify your Calibre Library in Calibre? Did you use the latest cops version from github? [I'm not the developer, just an enthusiastic user with some knowledge] |
![]() |
![]() |
![]() |
#1253 | |
Connoisseur
![]() Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
|
Quote:
The access rights are both 755 and have been tested at 777 just to be certain that they weren't the issue. I have tested "./ebooks/" and what you describe is the behaviour I get. The library database there is copied directly from my working one here on my personal machine, and I've copied it more than once to check that it was OK. It was copied with Calibre shut down, to avoid possible corruption issues. For your information, the ebooks directory wasn't uploaded via Calibre, but was FTPed up to the server. It's around 200Gb, so letting Calibre do it would have taken weeks. It took around 5 days as it was. I used the version from the developer's website, so I'll go and grab the one from github and test that, just in case it's more up to date. Would someone mind posting the github URL please, so that I can be sure I'm getting the correct one? Replies will be delayed as it's 1am here and I need some sleep :-) Thanks Stephen Silk |
|
![]() |
![]() |
![]() |
#1254 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
COPS github : https://github.com/seblucas/cops
It could be that your database is just to big for either the used server hardware (CPU and Memory and HDD speed) or the software (PHP, SQlite3, COPS, etc). Though I have tested with pretty big databases, never with one this BIG ![]() To test if its the database you can try one or both of these tests: A - just copy the files metadata.db and metadata_db_prefs_backup.json out of your ebooks directory and into a new directory ebooktest. Then point COPS to this directory: $config['calibre_directory'] = './ebooktest/'; [Did we forget the ; in the previous posts?] Then try to access it wit a browser (preferably FIrefox as I know it just works with COPS). B - make a small new calibre library with just a few book and ftp it to a new directory ebooktest on your server. Further as A. Just to be 100% sure (I know for 99.9% sure you did it right, but it would be stupid not to check) did you change the preferences with chmod -R 775 ebooks ? And do this for the new directories as well. |
![]() |
![]() |
![]() |
#1255 |
Connoisseur
![]() Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
|
Sorry, I wasn't clear. The entire collection (books, covers, etc) is 200Gb - metadata.db is 70Mb.
Anyway, I have it working. I went and got the version from github and it just worked - looks like there's a problem with the code on the developer's website. Thanks for the help and the suggestions! Stephen Silk |
![]() |
![]() |
![]() |
#1256 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@sasilk
![]() You are aware that your book database is open to access from the internet (if people read this topic)? |
![]() |
![]() |
![]() |
#1257 |
Connoisseur
![]() Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
|
I'm aware, thank you. I just haven't set up the security yet.
Stephen Silk |
![]() |
![]() |
![]() |
#1258 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2015
Device: iPad
|
Hi guys,
I have been using Calibre2toOPDS for years but the ability to search really sets this great package apart from the rest. Had quite some trouble to get it to work (Calibre had permission issues with my Synology but on my QNAP it runs flawlessly. So thank you very much! Just having a couple of questions… Have been searching in this forum and hope that I do not raise any questions that have not been answered already. 1. Per default I would like to assign the template “iphone7” to new users. Instead of the obvious “default” template. This should be done in “config_local.php”? In my version of this file I can’t find such a parameter? Do I need to add something? 2. I would like to customize the interface a bit. Example: To search you now have to press a kind of “config” button and I would like to change this into a “magnifying glass” for example. I am a bit familiar with CSS but is there a kind of “Style” guide which explains how to change the interface? 3. A nice feature of CalibretoOPDS was the option to see the books that were added the last month or he last week. With COPS you can only see the last 50? Just minor things but it would be great additions. Regarding the Templates: maybe we can setup a library of user-created templates? |
![]() |
![]() |
![]() |
#1259 | |||||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Quote:
Quote:
b - in the COPS directory copy the file config_default.php to config_local.php c - open config_local.php in an editor and change the value of default to .... Code:
/* * Which style is used by default : * 'base' * 'default' * 'eink' (only available for the 'default' template) * 'iphone' (only available for the 'default' template) * 'iphone7' (only available for the 'default' template) */ $config['cops_style'] = 'default'; ![]() ![]() I once tried to "fix" it for my own devices (iPad and iPhone on iOS 8 and 9 and for OSX 8, 9, 10 and 11 (El Capitan). I'll see if I can find this "fix" again, clean it up a bit and post is somewhere. ![]() Quote:
b - All code is available so amaze us with your new or improved interface. c - changing the "cog" to a "magnifying glass" should be possible. Quote:
Code:
/* * Number of recent books to show */ $config['cops_recentbooks_limit'] = '50'; Quote:
![]() b - just post them here (zipped?) or on github. Last edited by mariosipad; 05-27-2016 at 07:41 AM. |
|||||
![]() |
![]() |
![]() |
#1260 |
Member
![]() Posts: 11
Karma: 10
Join Date: May 2016
Device: none
|
Hello,
my cops should be usable from the internet with different users.# each user should have his own login/password and other settings i.e. mailadresses to send the books to. i tried like said in the faq with the file conig_local.<user>.php which i set up for each user but it isnt working. does anybody have an example for me how the user-php file has to look like? i´m using version 1.0.0RC4 on a synology nas. thanks in advance. vowi EDIT: i think i succeeded. I uncommented the part on the bottom of the .htaccess (which came with the other files) where a user specific htaccess file could be set. then i made my own password file. i left the config_local.php untouched. i set up two users in the password file. i realized when i log in with the first user, i can set up an mailadress in the options. logging in with the second user i can set up another mailadress in the options. it seems to work this way, but is this the correct way of setting up multiple users? EDIT1: the settings per user aren´t saved, so something must be wrong. i can set the options (i.e. mailadresse) when i logged in, but when i close the browser and reopen it the mailadress is initial. can anybody help me out? Last edited by vowi; 05-29-2016 at 12:07 PM. Reason: version added |
![]() |
![]() |
![]() |
Tags |
calibre opds, dns, kobo aura, synology |
|
![]() |
||||
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 |