View Single Post
Old 03-06-2017, 04:09 PM   #1455
iostrym
Connoisseur
iostrym began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
hi thanks for your answer.

eveything is OK except :


Check if the rendering will be done on client side or server side
Client side rendering
Check if Calibre database path is not an URL
OK
Check if Calibre database file exists and is readable
File /volume2/ebook/metadata.db not found, Please check

Value of $config['calibre_directory'] in config_local.php
Value of open_basedir in your php.ini
The access rights of the Calibre Database
Synology users please read this


Concerning access to database :

/volume2/ebook$ ls -la meta*
-rwxrwxrwx+ 1 http users 277504 Mar 5 21:43 metadata.db
-rwxrwxrwx+ 1 toto users 17159 Mar 5 21:33 metadata_db_prefs_backup.json


/volume2$ ls -la
total 8420
drwxr-xr-x 24 root root 4096 Mar 6 03:08 .
drwxr-xr-x 22 root root 4096 Mar 6 03:08 ..
...
drwxrwxrwx+ 43 http root 4096 Mar 5 22:21 ebook


And in open_basedir :

/tmp:/var/services/tmp:/var/services/web:/var/services/homes:/volume2/ebook/

And concerning access to @appstore/cops/share/cops/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'] = '/volume2/ebook/';

/*


I don't see where the problem is... probably in right access of the shared folder "ebook" ? but except give all access to http, is there something else to do ?

I don't know if it is a clue for the problem but using a find & grep for "calibre_database", I've found :

./var/services/web/cops/config_local.php: $config['calibre_directory'] = './calibre_database_test/';

So which config_local.php do I need to modify ? the one in /var/services/web/cops/ ? or the one in @appstore/cops/share/cops/config_local.php ?

after moving database from @appstore/cops/share/cops/calibre_database to /var/services/web/cops/calibre_database => checkconfig.php is now working correctly.

why is the cops directory duplicated ?

but http://192.168.1.50/cops/ displays a blank page

Last edited by iostrym; 03-07-2017 at 05:59 PM.
iostrym is offline   Reply With Quote