![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 82272
Join Date: Jun 2021
Device: Kobo - New and better than the very old Papyre
|
Corrupted library recovery advice, probably a stupid question
First of all, I have been a very happy Calibre user for many years. To say I love it is an understatement. If my wife would let me, I would marry this software.
Nest I am using Ubuntu 21.04 and I have upgraded to the latest version of Calibre. Now the problem. On Saturday, I lost most access to Calibre and all of my library with a database problem. I read through these forums and took the advice and opened a new library and everything went back to normal. Great! However my old library is very large and is not something I would choose to lose, so I went back and looked at it with other software. Every book I sampled, opened without the slightest problem. so I test transferred a few to the new library and they do not appear in the lists. To me this seems to indicate I have some, hopefully minor, corruption problems. That is the problem I have. I also tried to move them back in as a book file from the Calibre GUI and it was having none of that either. I am thinking all I need do is go into safe mode and use "fsck" to check all of the files and then go back to that library, then I hear people saying that this method could ruin the entire file. I really do not see how, myself, but it is what I do not know that gets me every time. So my question is this. Given that I am using the latest Ubuntu and the latest Calibre, what is the best way of repairing the corrupted file, assuming that it can be repaired. I do know this is a very easy question and one that will be glaringly obvious, but I can only think if I am not certain and it is not answered here, then maybe it should be to save time later. More like it has been answered many times and I am just blind or stupid. Thanks Fsirett |
![]() |
![]() |
![]() |
#2 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 82272
Join Date: Jun 2021
Device: Kobo - New and better than the very old Papyre
|
Just when I thought I had it nearly beaten, I have a new problem. Let me post the message first:
Quote:
F |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can recover a corrupted database with
calibredb --library-path=/path/to/library/folder restore_database -r |
![]() |
![]() |
![]() |
#4 | ||||
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 82272
Join Date: Jun 2021
Device: Kobo - New and better than the very old Papyre
|
I put that code into a terminal and it returned this:
Quote:
I thought maybe I needed to prefix it with "sudo" and I got this: Quote:
Just thinking, I have not moved the old library back into the game. Let me do that and see if that happens to work. Another stupid oversight on my part. Okay, first try, without the "sudo command came up with this: Quote:
With the "sudo command I got this: Quote:
Cheers again, F |
||||
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to replace /path/to/library/folder with the actual path to your calibre library folder.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 82272
Join Date: Jun 2021
Device: Kobo - New and better than the very old Papyre
|
Did I mention I was stupid?
|
![]() |
![]() |
![]() |
#7 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 82272
Join Date: Jun 2021
Device: Kobo - New and better than the very old Papyre
|
Okay, I was able to eventually get the path right. Using an external disk for this sort of thing is new to me and it was a touch confusing. but I did get an odd remark in the terminal:
Quote:
I might be dumb, but I keep careful notes so I do ot have to bother people again, if that is of any comfort. It looks like it has sort of worked and I think it is the code you prescribed, but I might have made a whole set of new mistakes. Finding that I had used capitals in the titles had me stumped for a while. I am pleading a hot summer day as a mitigating circumstance. F |
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Code:
calibredb restore_database --libray-path "/media/home/frank/My Passport/Calibre" -r |
![]() |
![]() |
![]() |
#9 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 82272
Join Date: Jun 2021
Device: Kobo - New and better than the very old Papyre
|
Sorry to be so late replying. Work got in the way.
First of all, I had problem until I noticed the spelling mistake, then it would not accept my location, so I looked again at my path and thought: "it looks like external drives are accessed through the /home folder, but possibly not. I removed the /home part of the pat, and it worked. In case another Ubuntu user comes this way, that is at least one of the problems. I can now access the library with little or no problem. I suspect there will be damage, but as long as there is some progress, I have to live with that. Now, it will not download my news feeds at all. I can call up the page and hit the button but it just sits there. I find that very odd. When I tried to change a book - PDF to EPUB - it did not work but it could be that particular book. I have to find another non-EPUB book to try again, but I have some suspicions that I would like to ask about. I am thinking of removing and reinstalling Calibre and see if that works. The reason I ask is that I have, in the past, tried that and found it did not work and so thought it was another corrupted file. This went on some five or mre times before I asked and found I was chasing my tail, and I don't even have a tail! Is that a wise path to take? Cheers, F |
![]() |
![]() |
![]() |
#10 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 82272
Join Date: Jun 2021
Device: Kobo - New and better than the very old Papyre
|
Problem Solved
I just found the news works with my new library. It took a few days to kick in, probably something I did, but there you have it, the News works as before.
Calibre is my favourite software and my go to tool every day. I was in a near panic thinking I would have to change to something else. I now suspect that most of my problems with the library may have come from the News downloads. In any case, I would like to change the status to this thread as "Solved," but I do not see any way of doing that, So I am going to put it in the title and hope that does the trick. Many thanks for all your help, F |
![]() |
![]() |
![]() |
Tags |
best way to recover, corrrupted library file, solved |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A Rather Stupid Question | Senior | Kobo Tablets | 3 | 01-14-2013 05:23 PM |
probably a stupid question, but...how do I search My Library online on B&N website? | sufue | Barnes & Noble NOOK | 2 | 12-25-2012 04:47 PM |
A stupid question probably! | leosrme | Amazon Kindle | 31 | 09-05-2011 08:41 AM |
Somewhat stupid question... | MJK2111 | Lounge | 14 | 07-07-2010 09:00 AM |
Another stupid question | pufff | Calibre | 2 | 01-29-2010 08:34 PM |