Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre Companion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2015, 12:50 PM   #1
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
[FIXED] Timeout on loading many titles

After installed CC, all is fine except it is impossible to load titles (15000 items).
Is it possible to increase it?
thanks

Quote:
[Thu Oct 29 17:23:45 2015] [error] [client 192.168.1.100] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/cal_bibli/db.php on line 549, referer: http://192.168.1.111/cal_bibli/

Last edited by aurigod; 10-30-2015 at 03:26 AM.
aurigod is offline   Reply With Quote
Old 10-29-2015, 01:51 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
That message is not coming from CC. It seems to be coming from some web server that is not a calibre web server, perhaps something like COPS. Thirty seconds is a standard maximum amount of run time for PHP scripts. You need to change it in your php.ini.

IMPORTANT NOTE: CC works only with a real calibre content server, not with a replacement like COPS. Even if you make the timeouts go away by editing php.ini, you will not be able to download books from that web server into CC.

EDIT: Also note that the calibre content server must be version 0.9.2 or later, preferably 2.4 or later. I mention this because I see on another thread that you are using a raspberry pi server. IIRC the package available for raspberry pi is ancient, somewhere arount 0.8. Of course I might not be remembering correctly.

Last edited by chaley; 10-29-2015 at 02:01 PM.
chaley is offline   Reply With Quote
Old 10-30-2015, 03:25 AM   #3
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
Sorry, but I think COPS and CC are similar, they read the content of Calibre DataBase.
Anyway the problem has been fixed by increasing timeout (the process with 15000 titles on my Raspberry takes 120s.

Quote:
/etc/php5/apache2/php.ini

max_execution_time = 240
aurigod is offline   Reply With Quote
Old 10-30-2015, 04:22 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by aurigod View Post
Sorry, but I think COPS and CC are similar, they read the content of Calibre DataBase.
CC has three connection types. Two of them, the wireless device connection and the content server connection, do not read the calibre database. Instead they depend on calibre itself to read the database, process the information, and give it to CC. The third connection type, CC cloud connection, does directly read the calibre database.

Just to note again: CC's content server connection will not work with COPS. Downloading books will fail.
chaley is offline   Reply With Quote
Old 10-30-2015, 07:26 AM   #5
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
you are certainly right but I have not Calibre process on my raspberry/debian and CC works.
I have just the database directory.
aurigod is offline   Reply With Quote
Old 10-30-2015, 08:02 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by aurigod View Post
you are certainly right but I have not Calibre process on my raspberry/debian and CC works.
I have just the database directory.
CC can connect to a COPS server. It can even navigate the server, mostly. However, downloading a book or looking at book details using a COPS server will fail because CC uses special calibre server functions to get book metadata. Also note that CC's automatic server location function will probably not work unless COPS uses mDNS broadcasts, which I don't think it does.

If you have a calibre content server running on a different computer on the same network then CC will probably automatically find it and connect to it. That may be what you are seeing.
chaley is offline   Reply With Quote
Old 10-30-2015, 12:55 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Why don't you have calibre on your Raspberry Pi? Is it because of the ancient version?


A general problem with debian, I find.
Try installing ArchLinuxARM, they update calibre weekly.
Arch Linux usually updates things as fast as upstream releases them.

Plus it becomes easy to roll your own through the power of the AUR.
eschwartz is offline   Reply With Quote
Old 11-24-2015, 08:31 AM   #8
aurigod
Enthusiast
aurigod began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Location: Lyon [France]
Device: JuliusvonJD
Quote:
Originally Posted by eschwartz View Post
Why don't you have calibre on your Raspberry Pi? Is it because of the ancient version?


A general problem with debian, I find.
Try installing ArchLinuxARM, they update calibre weekly.
Arch Linux usually updates things as fast as upstream releases them.

Plus it becomes easy to roll your own through the power of the AUR.
Hello Eschwartz, I have installed ArchLinux on the Raspberry Pi 2.
Can you tell me where I can find an installation procedure of Calibre?
I found a few but I prefer follow your advice.
Thanks
aurigod is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you alter the TimeOut? Beamer Smith Recipes 4 04-30-2016 04:17 PM
Screensaver timeout Kityn Amazon Kindle 0 09-23-2014 07:57 AM
Timeout hjay Feedback 2 02-16-2012 01:06 PM
Screen Timeout dontpanic enTourage Archive 10 04-10-2011 11:19 AM
Loading titles into Reader Contents dhbailey Sony Reader 11 03-14-2007 12:26 AM


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


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