04-21-2013, 06:05 PM | #391 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
If you type:
Code:
http://<ip-of-your-sybology>/cops/checkconfig.php Or what is different? Last edited by mariosipad; 04-21-2013 at 06:09 PM. |
04-22-2013, 06:35 AM | #392 |
Member
Posts: 20
Karma: 10
Join Date: Dec 2012
Device: Kindle
|
Ok it's working ! After some desperation time, turn out it was a *simple* php permission problem. The data folder was a copy from a personal directory on the NAS, with herited permissions. I can sleep now :-) Thanks for the help !
For information my error message was exactly like your picture. |
Advert | |
|
04-22-2013, 07:57 AM | #393 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Yeah, permissions can be a major source of unexpected problems.
Enjoy COPS |
04-22-2013, 08:09 AM | #394 |
Member
Posts: 20
Karma: 10
Join Date: Dec 2012
Device: Kindle
|
|
04-22-2013, 11:04 AM | #395 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
You can try, it works with safari on an iPad.
Safari asks if I want to "Open (the mobi file) in Kindle". Maybe on your Kindle it works the same? |
Advert | |
|
04-22-2013, 11:07 AM | #396 |
Member
Posts: 20
Karma: 10
Join Date: Dec 2012
Device: Kindle
|
I'll check.
|
04-26-2013, 09:24 AM | #397 | |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Quote:
|
|
04-27-2013, 05:12 PM | #398 |
Member
Posts: 20
Karma: 10
Join Date: Dec 2012
Device: Kindle
|
|
04-28-2013, 04:35 AM | #399 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
@Grishka
I like your screenshot, can you share it with so that I can include it in COPS ? My mail is in the bottom of COPS's README. Another thing, I've almost finished adding a new button to send the book to an email address (mainly send to Kindle). I don't own a Kindle so I can't test it properly, would you be willing to test a beta version of COPS with this functionnality ? Thanks in advance. @other Kindle users If you want to do some beta testing, send me an email or a PM. |
04-28-2013, 07:31 AM | #400 | |
Member
Posts: 20
Karma: 10
Join Date: Dec 2012
Device: Kindle
|
Quote:
Of course, I can test the mail button in the beta version :-) |
|
05-03-2013, 11:33 AM | #401 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2013
Device: Ipad
|
COPS on QNAP : cannot download files
Dear,
I managed to install COPS on a QNAP419 (QNap : latest firmware). Surfing to the COPS PHP site works, and connecting to the OPDS catalog works also. The only thing that doesn't work is a book download (: On an Ipad with the Shubook app, I receive a message 'server error'. When downloading in Firefox on Windows , the system creates a file with 0 bytes. When accessing the library through the original calibre program, everything works fine, so I think the database is ok. I suspect it is an access right problem, but I tried everything I could find in forums, and cannot get it working. The Calibre library is in a separate directory. Checkconfig.php generates no errors. Could someone please help me ? TX ! Joris |
05-03-2013, 12:38 PM | #402 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@everaejo
First a few questions: What version number of COPS did you install? In the file config_local.php that you copied from config_local.php.example or config_default.php did you change anything other than the line Code:
$config['calibre_directory'] = './calibre/'; Are the files readable for all users (-rw-r--r--)? (change with chmod) Did you change anything in .htaccess? Can you ssh (using putty) into your QNAP? |
05-03-2013, 10:25 PM | #403 |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2013
Device: Kindle Paperwhite
|
Multiple libraries and multiple COPS instances
Vlad, thank you so much for COPS.
I've installed the Synology package (0.3.4-1) on a DS1812+ Things didn't go completely smoothly (I figured out that I needed to customize the PHP open_basedir after a bit of fiddling with folder and file permissions in web admin) -- however the package made it easy to remove and reinstall multiple times. My question is about multiple libraries, which were discussed earlier in this thread as a potential feature. Right now I am considering this process: 1. make a copy (cp -p -R) of the cops web directory for each library 2. edit each config file to point at a different data directory I have three questions about this, for you or anyone who has experimented with multiple libraries: - Is there a better way of doing this? - Are there any complications to watch out for? - Will having many cops directories (e.g. 5-10) have any performance impact, or is it simple PHP (e.g. no per-site daemons or things like that). Thank you again for COPS! |
05-04-2013, 05:01 AM | #404 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2013
Device: Ipad
|
Sir,
Thanks for the quick response. I have no experience with Linux so this is a painstaking excersise for me COPS-version : 0.3.4. Config_Local : I added a reference to an location outside the website directory. <?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'] = '/share/Gezin/CalLib/'; $config['calibre_internal_directory'] = '/share/Gezin/CalLib/'; $config['cops_x_accel_redirect'] = "X-Sendfile"; /* * Catalog's title */ $config['cops_title_default'] = "thuis"; /* * 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"; ?> where ./caliber/ point to your calibre directory on your QNAP : I'm sorry, but I don't understand the question. Rights on Calibre folder : I added rights during troubleshooting phase, just to make sure ... [/share/Web/calibre] # ls -ls 8 -rwxrwx-w- 1 admin administ 6850 Mar 27 20:13 CHANGELOG* 20 -rwxrwx-w- 1 admin administ 17992 Mar 5 08:22 COPYING* 4 -rwxrwx-w- 1 admin administ 1212 Mar 26 20:09 LICENSE_php-epub-meta* 12 -rwxrwx-w- 1 admin administ 11734 Mar 23 08:34 OPDS_renderer.php* 4 -rwxrwx-w- 1 admin administ 2920 Mar 5 08:22 README* 4 -rwxrwx-w- 1 admin administ 167 Mar 5 08:22 README.md* 4 -rwxrwx-w- 1 admin administ 1136 Mar 6 07:18 about.xml* 4 -rwxrwx-w- 1 admin administ 4049 Mar 5 08:22 author.php* 20 -rwxrwx-w- 1 admin administ 18933 Mar 26 21:52 base.php* 20 -rwxrwx-w- 1 admin administ 17372 Mar 26 20:10 book.php* 4 -rwxrwx-w- 1 admin administ 3573 Mar 14 16:26 bookdetail.php* 8 -rwxrwx-w- 1 admin administ 4681 Mar 12 09:59 checkconfig.php* 4 -rwxrwx-w- 1 admin administ 300 Mar 5 08:22 config.php* 8 -rwxrwx-w- 1 admin administ 4771 Mar 26 21:53 config_default.php* 4 -rwxrwx--- 1 admin administ 726 May 3 15:37 config_local.php* 4 -rwxrwx-w- 1 admin administ 570 Mar 5 08:22 config_local.php.example* 4 -rwxrwx-w- 1 admin administ 3628 Mar 27 19:46 customcolumn.php* 8 -rwxrwx-w- 1 admin administ 4541 Mar 5 08:22 data.php* 20 -rwxrwx-w- 1 admin administ 20014 Mar 26 20:09 epub.php* 8 drwxrwxrwx 3 admin administ 4096 May 2 16:58 fancybox/ 16 -rwxrwx-w- 1 admin administ 12862 Mar 5 08:22 favicon.ico* 4 -rwxrwx-w- 1 admin administ 1082 Mar 5 08:22 feed.php* 4 -rwxrwx-w- 1 admin administ 3808 Mar 5 08:22 fetch.php* 8 drwxrwxrwx 2 admin administ 4096 May 2 16:58 images/ 16 -rwxrwx-w- 1 admin administ 12305 Mar 8 08:43 index.php* 8 drwxrwxrwx 2 admin administ 4096 May 2 16:58 js/ 8 drwxrwxrwx 2 admin administ 4096 May 2 16:58 lang/ 4 -rwxrwx-w- 1 admin administ 2484 Mar 5 08:22 serie.php* 4 -rwxrwx-w- 1 admin administ 2839 Mar 6 07:18 style.css* 4 -rwxrwx-w- 1 admin administ 1997 Mar 5 08:22 tag.php* 32 -rwxrwx-w- 1 admin administ 29895 Mar 26 20:09 tbszip.php* 8 drwxrwxrwx 2 admin administ 4096 May 2 16:58 tools/ Rights on book files : Just to make sure, I recreated the metadata.db file with a small sample of books. [/share/Gezin/CalLib] # ls -l drwxrwxrwx 3 admin administ 4096 May 3 22:07 Berry, Steve/ drwxrwxrwx 3 admin administ 4096 May 3 21:59 D. Hewson/ drwxrwxrwx 3 admin administ 4096 May 3 22:26 Glenn Thrush/ drwxrwxrwx 35 admin administ 4096 May 3 22:25 Rene Goscinny/ drwxrwxrwx 3 admin administ 4096 May 3 22:03 S. Berry/ drwxrwxrwx 10 admin administ 4096 May 3 22:05 Steve Berry/ -rwxrwx--- 1 admin administ 192512 May 3 23:05 metadata.db* -rwxrwx--- 1 admin administ 13042 May 3 22:28 metadata_db_prefs_backup.json* [/share/Gezin/CalLib] # .htaccess : I created an .htaccess file in the /share/Gezin/CalLib folder, but I deleted it. In the apache.conf file, I added the /share/Gezin/CalLib in a < directory>statement, giving access to all. Putty : I can access the NAS over Putty from SSH. Once again : thanks. Joris |
05-04-2013, 05:03 AM | #405 | |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2013
Device: Ipad
|
Quote:
Thanks for the quick response. I have no experience with Linux so this is a painstaking excersise for me COPS-version : 0.3.4. Config_Local : I added a reference to an location outside the website directory. <?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'] = '/share/Gezin/CalLib/'; $config['calibre_internal_directory'] = '/share/Gezin/CalLib/'; $config['cops_x_accel_redirect'] = "X-Sendfile"; /* * Catalog's title */ $config['cops_title_default'] = "thuis"; /* * 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"; ?> where ./caliber/ point to your calibre directory on your QNAP : I'm sorry, but I don't understand the question. Rights on Calibre folder : I added rights during troubleshooting phase, just to make sure ... [/share/Web/calibre] # ls -ls 8 -rwxrwx-w- 1 admin administ 6850 Mar 27 20:13 CHANGELOG* 20 -rwxrwx-w- 1 admin administ 17992 Mar 5 08:22 COPYING* 4 -rwxrwx-w- 1 admin administ 1212 Mar 26 20:09 LICENSE_php-epub-meta* 12 -rwxrwx-w- 1 admin administ 11734 Mar 23 08:34 OPDS_renderer.php* 4 -rwxrwx-w- 1 admin administ 2920 Mar 5 08:22 README* 4 -rwxrwx-w- 1 admin administ 167 Mar 5 08:22 README.md* 4 -rwxrwx-w- 1 admin administ 1136 Mar 6 07:18 about.xml* 4 -rwxrwx-w- 1 admin administ 4049 Mar 5 08:22 author.php* 20 -rwxrwx-w- 1 admin administ 18933 Mar 26 21:52 base.php* 20 -rwxrwx-w- 1 admin administ 17372 Mar 26 20:10 book.php* 4 -rwxrwx-w- 1 admin administ 3573 Mar 14 16:26 bookdetail.php* 8 -rwxrwx-w- 1 admin administ 4681 Mar 12 09:59 checkconfig.php* 4 -rwxrwx-w- 1 admin administ 300 Mar 5 08:22 config.php* 8 -rwxrwx-w- 1 admin administ 4771 Mar 26 21:53 config_default.php* 4 -rwxrwx--- 1 admin administ 726 May 3 15:37 config_local.php* 4 -rwxrwx-w- 1 admin administ 570 Mar 5 08:22 config_local.php.example* 4 -rwxrwx-w- 1 admin administ 3628 Mar 27 19:46 customcolumn.php* 8 -rwxrwx-w- 1 admin administ 4541 Mar 5 08:22 data.php* 20 -rwxrwx-w- 1 admin administ 20014 Mar 26 20:09 epub.php* 8 drwxrwxrwx 3 admin administ 4096 May 2 16:58 fancybox/ 16 -rwxrwx-w- 1 admin administ 12862 Mar 5 08:22 favicon.ico* 4 -rwxrwx-w- 1 admin administ 1082 Mar 5 08:22 feed.php* 4 -rwxrwx-w- 1 admin administ 3808 Mar 5 08:22 fetch.php* 8 drwxrwxrwx 2 admin administ 4096 May 2 16:58 images/ 16 -rwxrwx-w- 1 admin administ 12305 Mar 8 08:43 index.php* 8 drwxrwxrwx 2 admin administ 4096 May 2 16:58 js/ 8 drwxrwxrwx 2 admin administ 4096 May 2 16:58 lang/ 4 -rwxrwx-w- 1 admin administ 2484 Mar 5 08:22 serie.php* 4 -rwxrwx-w- 1 admin administ 2839 Mar 6 07:18 style.css* 4 -rwxrwx-w- 1 admin administ 1997 Mar 5 08:22 tag.php* 32 -rwxrwx-w- 1 admin administ 29895 Mar 26 20:09 tbszip.php* 8 drwxrwxrwx 2 admin administ 4096 May 2 16:58 tools/ Rights on book files : Just to make sure, I recreated the metadata.db file with a small sample of books. [/share/Gezin/CalLib] # ls -l drwxrwxrwx 3 admin administ 4096 May 3 22:07 Berry, Steve/ drwxrwxrwx 3 admin administ 4096 May 3 21:59 D. Hewson/ drwxrwxrwx 3 admin administ 4096 May 3 22:26 Glenn Thrush/ drwxrwxrwx 35 admin administ 4096 May 3 22:25 Rene Goscinny/ drwxrwxrwx 3 admin administ 4096 May 3 22:03 S. Berry/ drwxrwxrwx 10 admin administ 4096 May 3 22:05 Steve Berry/ -rwxrwx--- 1 admin administ 192512 May 3 23:05 metadata.db* -rwxrwx--- 1 admin administ 13042 May 3 22:28 metadata_db_prefs_backup.json* [/share/Gezin/CalLib] # .htaccess : I created an .htaccess file in the /share/Gezin/CalLib folder, but I deleted it. In the apache.conf file, I added the /share/Gezin/CalLib in a < directory>statement, giving access to all. Putty : I can access the NAS over Putty from SSH. Once again : thanks. Joris |
|
Tags |
calibre opds, dns, kobo aura, synology |
|
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 |