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-20-2016, 09:25 AM   #1231
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
The apache2 server on OSX is rather outdated (as far as I know).

Your Mac is your "only" computer and is it running Calibre?
Are you sure the Calibre directory is working?
mariosipad is offline   Reply With Quote
Old 05-20-2016, 09:30 AM   #1232
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 mariosipad View Post
The apache2 server on OSX is rather outdated (as far as I know).

Your Mac is your "only" computer and is it running Calibre?
Are you sure the Calibre directory is working?
The mac with the server on it doesn't have calibre on it. As for the directory, I know it works because I tried a Calibre application on android and everything works fine there with Dropbox which is what I am trying to get COPS to recognize…
inthemood is offline   Reply With Quote
Old 05-20-2016, 09:41 AM   #1233
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
I asked because Calibre can serve ebooks quite nicely (though I like COPS better).

Accessing the Dropbox folders should work.

So I think your problem is either a configuration problem or a rights issue. The first is hard to "debug" and the latter is a bit dangerous if you do not know what you do and change access rights (I know, I made all the errors before I understood what I was doing).
mariosipad is offline   Reply With Quote
Old 05-20-2016, 10:50 AM   #1234
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 mariosipad View Post
I asked because Calibre can serve ebooks quite nicely (though I like COPS better).

Accessing the Dropbox folders should work.

So I think your problem is either a configuration problem or a rights issue. The first is hard to "debug" and the latter is a bit dangerous if you do not know what you do and change access rights (I know, I made all the errors before I understood what I was doing).
I think I'll try to reinstall everything tomorrow. I'm off to work now. Thank you for all your advice. Have a good day.
inthemood is offline   Reply With Quote
Old 05-20-2016, 06:03 PM   #1235
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
Ok, after some reinstalling and reconfiguring I have Abyss webserver (Debian Linux) working with COPS!

It works both inside and outside of the COPS directory/folder.

If it works for me, it should work for you!

I suggest starting with putting the calibre folder with all files inside of the COPS directory [../htdocs/cops/e-book].

If this works then change the
Code:
$config['calibre_directory'] = './e-book/';
to
Code:
$config['calibre_directory'] = '/Users/peter/Dropbox/Public/E-books/';
Good luck!
mariosipad is offline   Reply With Quote
Old 05-21-2016, 05:16 AM   #1236
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 mariosipad View Post
Ok, after some reinstalling and reconfiguring I have Abyss webserver (Debian Linux) working with COPS!

It works both inside and outside of the COPS directory/folder.

If it works for me, it should work for you!

I suggest starting with putting the calibre folder with all files inside of the COPS directory [../htdocs/cops/e-book].

If this works then change the
Code:
$config['calibre_directory'] = './e-book/';
to
Code:
$config['calibre_directory'] = '/Users/peter/Dropbox/Public/E-books/';
Good luck!
Hi.

This is encouraging news. I will try to reinstall everything from scratch. Maybe I did something wrong along the way. Thank you. I will tell you the result. Have a good day.
inthemood is offline   Reply With Quote
Old 05-21-2016, 12:18 PM   #1237
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 mariosipad View Post
Ok, after some reinstalling and reconfiguring I have Abyss webserver (Debian Linux) working with COPS!

It works both inside and outside of the COPS directory/folder.

If it works for me, it should work for you!

I suggest starting with putting the calibre folder with all files inside of the COPS directory [../htdocs/cops/e-book].

If this works then change the
Code:
$config['calibre_directory'] = './e-book/';
to
Code:
$config['calibre_directory'] = '/Users/peter/Dropbox/Public/E-books/';
Good luck!
I'm afraid I can't get it to work. I tried everything. A simple php file works fine. Could there be something wrong with my calibre folder? Is there a preference in Calibre that I should choose for Cops to work? I'm at a loss.
Here is a link to my books on dropbox. Maybe you can try to make it work if you have time. Of course feel free to take any of the books you could be interested in. https://www.dropbox.com/sh/9jbiwx3df...VVbKL1iZa?dl=0
Thanks again for your help.
inthemood is offline   Reply With Quote
Old 05-21-2016, 02:44 PM   #1238
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
You can take down the Dropbox-link.

Your calibre folder works fine (with Dropbox) on a Windows PC with another webserver.
I'm convinced it should work with Abyss webserver as well.

There is probably something wrong with a setting in config_local.php

Did you have all the right "/" in config_local.php?

Could you post the COPS output with the error(s) again?

Last edited by mariosipad; 05-21-2016 at 05:51 PM.
mariosipad is offline   Reply With Quote
Old 05-21-2016, 06:53 PM   #1239
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 mariosipad View Post
You can take down the Dropbox-link.

Your calibre folder works fine (with Dropbox) on a Windows PC with another webserver.
I'm convinced it should work with Abyss webserver as well.

There is probably something wrong with a setting in config_local.php

Did you have all the right "/" in config_local.php?

Could you post the COPS output with the error(s) again?

Thank you again for helping me.

Here is the Cops output

https://www.dropbox.com/s/a7cvkykihq...58.51.jpg?dl=0

And here is my config_local.php Maybe something will strike you.

https://www.dropbox.com/s/otco043gjy...l.php.png?dl=0
inthemood is offline   Reply With Quote
Old 05-21-2016, 07:00 PM   #1240
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 mariosipad View Post
You can take down the Dropbox-link.

Your calibre folder works fine (with Dropbox) on a Windows PC with another webserver.
I'm convinced it should work with Abyss webserver as well.

There is probably something wrong with a setting in config_local.php

Did you have all the right "/" in config_local.php?

Could you post the COPS output with the error(s) again?
And this is an image of the abyss web server folder if it can help you figure out my mistake.

https://www.dropbox.com/s/ofjph0lkgt...older.png?dl=0
inthemood is offline   Reply With Quote
Old 05-22-2016, 01:13 PM   #1241
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
@inthemood

It should work if you change the file config_local.php:
Code:
    /*
     * The directory containing calibre's metadata.db file, with sub-directories
     * containing all the formats.
     * BEWARE : it has to end with a /
     */

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

Code:
    /*
     * The directory containing calibre's metadata.db file, with sub-directories
     * containing all the formats.
     * BEWARE : it has to end with a /
     */

 $config['calibre_directory'] = './ebooks/';
So do not change $config['calibre_directory'] !!!

Additionally you could rename the directory/folder ./htdocs/cops-1.0.0RC3 to ./htdocs/cops

Hope it works!
mariosipad is offline   Reply With Quote
Old 05-22-2016, 05:32 PM   #1242
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 mariosipad View Post
@inthemood

It should work if you change the file config_local.php:
Code:
    /*
     * The directory containing calibre's metadata.db file, with sub-directories
     * containing all the formats.
     * BEWARE : it has to end with a /
     */

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

Code:
    /*
     * The directory containing calibre's metadata.db file, with sub-directories
     * containing all the formats.
     * BEWARE : it has to end with a /
     */

 $config['calibre_directory'] = './ebooks/';
So do not change $config['calibre_directory'] !!!

Additionally you could rename the directory/folder ./htdocs/cops-1.0.0RC3 to ./htdocs/cops

Hope it works!
Wow! You did it! Great ! IT WORKS!

I had seen that = './' - and for some reason I thought it was just an indication of how the path had to be written or something. I don't know. Now, of course, it seems so obvoius. Thank you very much for taking this time to help me.
inthemood is offline   Reply With Quote
Old 05-24-2016, 12:48 PM   #1243
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
Question COPS unable to find metadata.db

Hi,

I am trying to get COPS 1.0.0RC3 working on my hosted server. (I had an older version working, but accidentally deleted my config_local.php when preparing to upgrade.) Details are:

COPS files are in the domain root
metadata.db and ebook directories/files are in a subdirectory called ebooks which is in the domain root
config_local.php:
*****
<?php
if (!isset($config))
$config = array();

/*
* The directory containing calibre's metadata.db file, with sub-directories
* containing all the formats.
* BEWARE : it has to end with a /
*/
$config['calibre_directory'] = 'ebooks/';

/*
* Catalog's title
*/
$config['cops_title_default'] = "Test Title";

/*
* use URL rewriting for downloading of ebook in HTML catalog
* See README for more information
* 1 : enable
* 0 : disable
*/
$config['cops_use_url_rewriting'] = "0";
*****
base_opendir is set in php.ini to NULL
PHP version is 5.6.19 fastcgi
sqlite3 is installed
Both the ebooks subdirectory and metadata.db are set to 755 (and have been tested with 777)
I am the owner of the directories and files.

This configuration gets me a grey screen, with a changed title on the tab. If I change the calibre_directory to anything else, I can get the Configuration Check page, which shows everything as OK, but gives the "<path>/metadata.db not found" message.
I've reinstalled everything a couple of times and started with a clean config_local.php file (which is what I'm currently trying, as per the above).

I did once manage to get past this error (and can't remember how) and immediately ran into an error message "fetchColumn on a boolean" when checkconfig.php was trying to check that metadata.db had the required columns, so I suspect that I hadn't solved the issue but had managed to bypass it somehow.

Any suggestions welcome :-)

Stephen Silk
sasilk is offline   Reply With Quote
Old 05-24-2016, 01:03 PM   #1244
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
I think your calibre directory should be : './ebooks/'
inthemood is offline   Reply With Quote
Old 05-24-2016, 01:28 PM   #1245
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
I think your calibre directory should be : './ebooks/'
I tried that - same result. Grey screen.

I had a look at the page source for the grey screen - it has some set up code, but nothing in the <body></body> section.

Last edited by sasilk; 05-24-2016 at 01:33 PM.
sasilk 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 02:14 PM.


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