![]() |
#1456 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@iostrym
Have you rebooted your Synology? For me that solved similar problems with DSM 5. If this does not work then - put a small (calibre) test database in a directory "ebook" in the "cops" directory - change the relevant line in config_local.php to $config['calibre_directory'] = './ebook/'; - maybe add the cops directory to the open_basedir (not really sure if this is needed / can't remember if I ever did ) - maybe reboot and try again http://192.168.1.50/cops/checkconfig.php Now cops should work ....... if not we can continue trouble shooting. |
![]() |
![]() |
![]() |
#1457 |
Connoisseur
![]() Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
Thanks. I didn't reboot the Nas. I will try this. Could you please confirm me that path in .PHP file and open_basedir must be the same ? Both ending with / ? And there is no other PHP file to modify except config_local.php, right ? Is there rights to configure in cops directory using SSH ?
|
![]() |
![]() |
Advert | |
|
![]() |
#1458 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Paths should be the same:
- config_local.php with "/" - open_basedir (in my setup) without "/" (at the end) It the only error in http://192.168.1.50/cops/checkconfig.php is the database error then you do not need to change rights on the cops directory. The rights on the database directory look OK to me. |
![]() |
![]() |
![]() |
#1459 |
Connoisseur
![]() Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
thanks, is there a way to test http access ? for instance log with user "http" (what is the password ?) in ssh and try to reach the .db file ...
|
![]() |
![]() |
![]() |
#1460 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
The best (and only) way to test cops is: http://192.168.1.50/cops/checkconfig.php
All kinds of checks are built in by the developer. |
![]() |
![]() |
Advert | |
|
![]() |
#1461 |
Connoisseur
![]() Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
hello, I did a try by creating a new calibre database at
/volume2/@appstore/cops/share/cops/calibre_database_test then I modify config_local.php to : $config['calibre_directory'] = './calibre_database_test/'; and when doing http://192.168.1.50/cops/checkconfig.php : still the same error message with previous path : File /volume2/ebook/metadata.db not found, Please check I restard cops, webstation... without any effect.. it is also strange that when cops service is shut down, checkconfig.php is still working... and is stuck using the previous path indicated. is there elsewhere to modify so that checkconfig use the correct path ? when installing cops using the synology package manager, i was asked the path of calibre database, where is this path stored ? maybe this is this path that is kepts by checkconfig ? it is strange I would have thought that this path was the one set in config_user.php after desintalling cops and reinstalling it and specifying ./calibre_database_test/ during the GUI installation, now checkconfiguration.php display this : File ./calibre_database_test/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 but still don't work. I dont see the link between the path displayed by checkconfiguration.php ( = path given during COPS installation in synology GUI) and the path in config_local.php Last edited by iostrym; 03-07-2017 at 05:44 PM. Reason: new test |
![]() |
![]() |
![]() |
#1462 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
If you have a file named config_user.php and a file named config_local.php make sure that both contain the same line: $config['calibre_directory'] = './calibre_database_test/'; (or just rename config_user.php to something like config_user.php.bak. You can always change it back.
I do not know how the synology package of cops works. Never tried it. What I do is: - install cops (unzip a zipped file from github) in the /volume1/web/cops directory - then copy config_default.php to config_local.php - then edit config_local.php for the line $config['calibre_directory'] = './calibre_database_test/'; - put my database in that directory to test - If it works I move the database to another directory and edit open_basedir and config_local.php accordingly. This gives me a working cops. |
![]() |
![]() |
![]() |
#1463 |
Connoisseur
![]() Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
Thanks, in fact I use synocommunity package. I noticed that there was 2 different cops directory with same PHP file inside it. One in /@appstore and one in /var/service.
The one in @appstore (that I used) seems to be unused and the one in /var/service is working. By the way the last one is automatically configured (PHP file I mean) using the package GUI installation. So I move in the testdatabase and then check config.php is now working. But I have a blank page when using 192.168.1.50/cops.... Any idea ? |
![]() |
![]() |
![]() |
#1464 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
|
![]() |
![]() |
![]() |
#1465 |
Connoisseur
![]() Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
nop it was a test database with only one book. i will try the index.php.
it is strange that cops was installed in 2 differents directories par package manager of synology... I wonder if a lot of people are running COPS using the last version 6.1 of DSM... |
![]() |
![]() |
![]() |
#1466 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,024
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
Quote:
I do have one weird issue: I used to have a manual installation of COPS in /COPS/ (capitals). When I installed the Synology package, it went into /cops/ and didn't work, even after copying the old config files over. I made /COPS/ a hard link to /cops/ (so the two directories are absolutely identical by definition) and https://hostname/COPS/ works, where https://hostname/cops/ still doesn't. So the difference must be somewhere else, but where that might be? It complains about the path to my second library not being in the OPEN_BASEDIR list, but that's a global setting of WebStation/PHP, isn't it? |
|
![]() |
![]() |
![]() |
#1467 |
Connoisseur
![]() Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
hi all,
I tried : http://192.168.1.50/cops/ http://192.168.1.50/cops/index.php => blank page, on 3 different browser http://192.168.1.50/COPS/index.php http://192.168.1.50/COPS/ => 404 error but http://192.168.1.50/cops/checkconfig.php is working correctly. If my .db was empty for instance, I guess I would have at least something displayed like in the demo of cops ? could it be a open_basedir problem ? or is it already checked by checkconfig.php ? I don't know what to check... [EDIT] my problem seems the same as described here : https://github.com/seblucas/cops/issues/267 but my .db file seems to be ok, I created a new one to be sure populated with 3 epub and 1 pdf file... and still blank page. It is not a chmod problem as before doing chmod 777 I had a checkconfig problem and now checkconfig is OK. Is there a specific thing to do before copying the calibre database in the NAS ? a specific format to choose ? a configuration in calibre ? [EDIT2] do I need to activate personnal website ? and/or install apache http server 2.2 ? Last edited by iostrym; 03-08-2017 at 05:29 PM. |
![]() |
![]() |
![]() |
#1468 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
In answer to EDIT2: no and no
If checkconfig.php gives no errors then cops should work. The only thin I can think of is a typo in config_local.php (or config_user.php ?), but then checkconfig.php should not work either. Can you post your config_local.php file? |
![]() |
![]() |
![]() |
#1469 |
Connoisseur
![]() Posts: 73
Karma: 10
Join Date: Mar 2015
Device: kobo
|
i will do it this evening. but I don't write myself the config_*.php file as I noticed it was already correctly filled using the information from the package installer GUI.
in the package installer GUI I have checked that "I use a KOBO", I don't know if it has an impact on my problem... the guy on github seems to have same problem as me and it was a database problem, is there anything else to do with the database more than a copy paste of the complete folder in the NAS ? (+ chmod -R 777...) |
![]() |
![]() |
![]() |
#1470 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 140
Karma: 76596
Join Date: Feb 2015
Location: Portugal
Device: Kobo Aura HD
|
COPS is translated into 39 languages, but only 8 are 100% done.
Is there any request for a new translation for COPS and you know to translate to that language? If you want to translate COPS to a new language then start translating with Transifex at : https://www.transifex.com/rberec/cops (you can also review previous translations so they can be included in the new COPS release 1.1.0) |
![]() |
![]() |
![]() |
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 |