![]() |
#1 |
Zealot
![]() ![]() ![]() Posts: 107
Karma: 224
Join Date: Sep 2008
Device: eeepc 901
|
calibre dies after a few days in whs
Hi,
Not sure whether to raise this as a ticket. Every version of calibre I've used (and installed as a service on windows home server) up to version 6.17 has crashed within a few days of starting the program. Is there something that I should be aware of that can keep the service running (so I can access the library from my iphone or another pc) Thanks |
![]() |
![]() |
#2 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
![]() This may not be ideal but should keep the service from crashing. ![]() |
|
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() Posts: 107
Karma: 224
Join Date: Sep 2008
Device: eeepc 901
|
dwanthy,
Thanks for the suggestion. One question about cron jobs. If I set it daily and it hasn't yet crashed will that mean there will be multiple instances of calibre running or is there away to only start it if it is not already running ? Thanks - hope this helps others too |
![]() |
![]() |
#4 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
![]() This is not my area of expertise, I have not done this, but I checked the info in this link and think I could start and stop a task. It had settings that would allow a task to start every day or every 2nd, or 3rd etc... There was also an option to end the started task any time up to 72 hours. I believe this means you could set it to start the task every 2 days at hh:mm and set the task to run for 47 hours and 57 minutes then it would stop the task and start it again 3 minutes later. What this means is Calibre will be shutdown completely then restarted minutes later. Again, I don't have experience but I believe my understanding here is correct. Sorry I couldn't be more help, try using Google for more info on windows cron jobs. |
|
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2011
Location: Sydney, Australia
Device: Kindle
|
Hi Mobleby,
I am curious to know more about your experiences with calibre on WHS. Like you, i suspect, i was thinking about installing calibre on my WHS and having it run as a service. Only so i can have my scheduled news feeds download & email to my Kindle without having to keep calibre running on a laptop or desktop. Should i bother trying - in light of your documented experiences? Cheers Nick |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
|
I ran calibre on my WHS for a while, and now I run just calibre-server there but I do keep my database and books on WHS. One thing I found is that wherever you store the calibre database file (metadata.db) must not be on a duplicated share. If it is and calibre is left running > 24 hours, drive extender will start through file inconsistency errors because it can't get write access to rebalance the file (DE tries to rebalance every hour or so, and will try for 24 hours before it throws errors). Note that this may still be a problem even if you only run calibre-server, since the SQLite library calibre uses has no concept of read-only access (calibre-server should be read-only, but it opens the database for read/write because it can't do it any other way. In theory, calibre-server should not keep the database open for long periods of time, but it's possible that it could).
The easiest solution is to put your calibre library on a non-duplicated share. However I wanted to ensure that my ebooks were duplicated for safety, so I came up with a different solution. WARNING: What I'm about to describe is non-standard, unsupported, and will probably break in future calibre versions (though it's been working for me since late-0.6.x builds up to current). What you need to do is put your database file on a non-duplicated share while you keep your library books themselves on a duplicated share. In my setup, I've created \\server\ebooks as a duplicated share and I keep \\server\software as a non-duplicated share.
Calibre now should point to that database location for its library. Note that doing this will prevent you from using calibre's multiple library feature. I need to go back and re-evaluate if it's truly necessary to put the database on a non-duplicated share if I'm only running calibre-server 24/7, but I can guarantee that it's required if you want to run the calibre gui 24/7 with the library hosted on a WHS duplicated share (whether you run calibre on the WHS directly or elsewhere, if it's pointint to WHS shares then it will take that write lock and break DE after 24 hours). Unless the SQLite library ever supports a true read-only mode (unlikely) and calibre uses that for everything except for when it needs to write, or calibre switches to a centralized DB model using MySQL or PostgreSQL or similar (even less likely), this is the only solution to keep WHS happy. |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
I notice you said "up to 0.6.17". That version is very old and many things have changed in the interim. You might want to try a newer one (the current version is 0.7.44).
|
![]() |
![]() |
#8 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
![]() ![]() ![]() Last edited by DoctorOhh; 02-08-2011 at 06:36 AM. |
|
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
@ Manichean, my turn
![]() ![]() ![]() The date from orig posts are 18 months old. (I now check date when the version mentioned is more than 10 editions off current version) Edit: too slow. |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Ah, damn it, never mind me then
![]() |
![]() |
![]() |
#11 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Yes: It would be a mind-numbing task to do
![]() I see two practicable options:
|
![]() |
![]() |
#13 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Moderator Notice
Old thread: Old Calibre. Closing thread |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic Help, Nook battery dies after a few hours | godlike1001 | Barnes & Noble NOOK | 4 | 08-29-2010 02:00 PM |
Alan Sillitoe dies at 82 | Sonist | News | 2 | 04-26-2010 09:17 PM |
J.D. Salinger dies aged 91 | seagull | News | 16 | 01-29-2010 10:16 AM |
Novelist Kurt Vonnegut dies at 84 | Laurens | Lounge | 10 | 08-20-2009 03:50 PM |
J.G. Ballard dies aged 78 | HarryT | News | 1 | 04-20-2009 05:31 PM |