Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 05-24-2016, 03:16 PM   #1246
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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/';
mariosipad is offline   Reply With Quote
Old 05-24-2016, 08:35 PM   #1247
sasilk
Connoisseur
sasilk began at the beginning.
 
sasilk's Avatar
 
Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
Quote:
Originally Posted by mariosipad View Post
So the directories are:

/root/cops

and

/root/ebooks

? -> try:

$config['calibre_directory'] = '../ebooks/';

or

$config['calibre_directory'] = '/root/ebooks/';

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.
sasilk is offline   Reply With Quote
Advert
Old 05-25-2016, 05:07 AM   #1248
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by sasilk View Post
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.
Hi,
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.
inthemood is offline   Reply With Quote
Old 05-25-2016, 07:10 AM   #1249
sasilk
Connoisseur
sasilk began at the beginning.
 
sasilk's Avatar
 
Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
Quote:
Originally Posted by inthemood View Post
Hi,
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.
I pasted my entire config_local.php file into my initial post, along with every other bit of information that had been asked of you in your case and everything that I'd tried already, and my directory structure is basically the same as yours. I tried the suggestions he made in your case before I posted, along with almost every other one in the entire thread (I spent 8 hours on this before I posted).
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.
sasilk is offline   Reply With Quote
Old 05-25-2016, 07:20 AM   #1250
sasilk
Connoisseur
sasilk began at the beginning.
 
sasilk's Avatar
 
Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
Directory structure screenshot

Screenshot attached
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2016-05-25 at 21.15.58.png
Views:	247
Size:	317.3 KB
ID:	148912  
sasilk is offline   Reply With Quote
Advert
Old 05-25-2016, 07:29 AM   #1251
sasilk
Connoisseur
sasilk began at the beginning.
 
sasilk's Avatar
 
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/"
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2016-05-25 at 21.24.05.png
Views:	460
Size:	159.8 KB
ID:	148913   Click image for larger version

Name:	Screen Shot 2016-05-25 at 21.26.05.png
Views:	259
Size:	142.0 KB
ID:	148914  
sasilk is offline   Reply With Quote
Old 05-25-2016, 10:13 AM   #1252
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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/'
However that possibly leads to a grey screen on http://library.momraths.com and a strange error on http://library.momraths.com/checkconfig.php.
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]
mariosipad is offline   Reply With Quote
Old 05-25-2016, 11:07 AM   #1253
sasilk
Connoisseur
sasilk began at the beginning.
 
sasilk's Avatar
 
Posts: 75
Karma: 14
Join Date: Jun 2008
Location: Australia
Device: iPad Pro 12"; Kindle Paperwhite
Quote:
Originally Posted by mariosipad View Post
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/'
However that possibly leads to a grey screen on http://library.momraths.com and a strange error on http://library.momraths.com/checkconfig.php.
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]

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
sasilk is offline   Reply With Quote
Old 05-25-2016, 12:13 PM   #1254
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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.
mariosipad is offline   Reply With Quote
Old 05-25-2016, 10:37 PM   #1255
sasilk
Connoisseur
sasilk began at the beginning.
 
sasilk's Avatar
 
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
sasilk is offline   Reply With Quote
Old 05-26-2016, 09:26 AM   #1256
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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)?
mariosipad is offline   Reply With Quote
Old 05-26-2016, 09:41 AM   #1257
sasilk
Connoisseur
sasilk began at the beginning.
 
sasilk's Avatar
 
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
sasilk is offline   Reply With Quote
Old 05-27-2016, 04:03 AM   #1258
tredelijkheid
Junior Member
tredelijkheid began at the beginning.
 
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?
tredelijkheid is offline   Reply With Quote
Old 05-27-2016, 04:48 AM   #1259
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Quote:
Originally Posted by tredelijkheid View Post
... Had quite some trouble to get it to work (Calibre had permission issues with my Synology ...
Did you eventually get it to work the way you wanted it to with your Synology?

Quote:
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?
a - grab the latest version of COPS from Github https://github.com/seblucas/cops
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';
This is a new feature.

I do not like the iPhone7 template on iOS 8 and iOS9. ("wrong" fonts used if I remember correctly)
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.
ends

Quote:
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?
a - I'm not aware of any "style guide". (But I do not claim to know everything)
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:
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?
a - in config_local.php change line
Code:
/*
     * Number of recent books to show
     */
    $config['cops_recentbooks_limit'] = '50';
to any value you want. I use 1000 for fast servers and a lower number on slow(er) servers like my Synology DS-110j.

Quote:
Regarding the Templates: maybe we can setup a library of user-created templates?
a - Great idea!!
b - just post them here (zipped?) or on github.

Last edited by mariosipad; 05-27-2016 at 07:41 AM.
mariosipad is offline   Reply With Quote
Old 05-29-2016, 08:46 AM   #1260
vowi
Member
vowi began at the beginning.
 
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
vowi is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology


Forum Jump

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


All times are GMT -4. The time now is 10:55 PM.


MobileRead.com is a privately owned, operated and funded community.