Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-24-2020, 12:50 PM   #1
DrW
Junior Member
DrW began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2018
Device: Kobo Aura One
Issue when moving library to new PC

I'm in the process of moving over to a new PC and have hit an issue when it come to moving Calibre over. I've had a look through the forums but haven't found any solution, so I was hoping that someone might have encountered something similiar before.

I did the export on the old machine, installed the same version of Calibre on the new machine (4.11.2 64-bit), hoping that would cause fewer issues.

Ran the import on the new machine and everything seemed to go okay but, when it had completed, there were no books showing up in the library. All the plugins seem to have gone in okay though.

I restarted Calibre and this error popped up:
Code:
calibre, version 4.14.0
Corrupted database: The library database at C:\Users\Mike\Documents\Calibre Library appears to be corrupted. Do you want calibre to try and rebuild it automatically? The rebuild may not be completely successful. If you say No, a new empty calibre library will be created.

Traceback (most recent call last):
  File "site-packages\calibre\gui2\main.py", line 304, in initialize_db
  File "site-packages\calibre\db\legacy.py", line 82, in __init__
  File "site-packages\calibre\db\legacy.py", line 47, in create_backend
  File "site-packages\calibre\db\backend.py", line 408, in __init__
  File "site-packages\calibre\db\schema_upgrades.py", line 19, in __init__
  File "site-packages\calibre\db\backend.py", line 874, in execute
  File "c:\t\t\apsw-cjr7a2yu\src\cursor.c", line 236, in resetcursor
ReadOnlyError: ReadOnlyError: attempt to write a readonly database
I set it rebuilding the database, but after two hours nothing seemed to have happened (my library isn't that big, only 514 books).

One thing I have noticed, is that the error mentions that the database is in C:\Users\Mike\Documents\. 'Mike' was the user account on the old machine: the new one is 'mikef'.

Could that be the issue? Or have I missed something else very obvious?

I've just noticed that the error is showing "calibre, version 4.14.0". I did put the most recent version on first but then, when I had problems, realised it was the 32-bit version, so uninstalled that and went back to 4.11.2 64-bit. It obviously didn't fix the problem.
DrW is offline   Reply With Quote
Old 04-24-2020, 01:11 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,169
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by DrW View Post
I'm in the process of moving over to a new PC and have hit an issue when it come to moving Calibre over. I've had a look through the forums but haven't found any solution, so I was hoping that someone might have encountered something similiar before.

I did the export on the old machine, installed the same version of Calibre on the new machine (4.11.2 64-bit), hoping that would cause fewer issues.

Ran the import on the new machine and everything seemed to go okay but, when it had completed, there were no books showing up in the library. All the plugins seem to have gone in okay though.

I restarted Calibre and this error popped up:
Code:
calibre, version 4.14.0
Corrupted database: The library database at C:\Users\Mike\Documents\Calibre Library appears to be corrupted. Do you want calibre to try and rebuild it automatically? The rebuild may not be completely successful. If you say No, a new empty calibre library will be created.

Traceback (most recent call last):
  File "site-packages\calibre\gui2\main.py", line 304, in initialize_db
  File "site-packages\calibre\db\legacy.py", line 82, in __init__
  File "site-packages\calibre\db\legacy.py", line 47, in create_backend
  File "site-packages\calibre\db\backend.py", line 408, in __init__
  File "site-packages\calibre\db\schema_upgrades.py", line 19, in __init__
  File "site-packages\calibre\db\backend.py", line 874, in execute
  File "c:\t\t\apsw-cjr7a2yu\src\cursor.c", line 236, in resetcursor
ReadOnlyError: ReadOnlyError: attempt to write a readonly database
I set it rebuilding the database, but after two hours nothing seemed to have happened (my library isn't that big, only 514 books).

One thing I have noticed, is that the error mentions that the database is in C:\Users\Mike\Documents\. 'Mike' was the user account on the old machine: the new one is 'mikef'.

Could that be the issue? Or have I missed something else very obvious?

I've just noticed that the error is showing "calibre, version 4.14.0". I did put the most recent version on first but then, when I had problems, realised it was the 32-bit version, so uninstalled that and went back to 4.11.2 64-bit. It obviously didn't fix the problem.
Check under C:\Users\mikef\Documents\ for calibre library.

bernie
gbm is offline   Reply With Quote
Advert
Old 04-25-2020, 09:14 AM   #3
DrW
Junior Member
DrW began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2018
Device: Kobo Aura One
Quote:
Originally Posted by gbm View Post
Check under C:\Users\mikef\Documents\ for calibre library.

bernie
Thanks for replying. Yes, I'd previously had a look in there, and that's where all the books had been placed, as I'd expected. That was where I told Calibre to import the library to, after all.

But, when I was double-checking in there, after your suggestion, I noticed the actual cause of the problem: there was now a Mike folder in Users. That just contained a Documents folder, which contained an empty Calibre library.

So, for some reason, Calibre was trying to open that library, which was the corrupt one. I pointed it to the mikef user folder and there were all the books!

No idea what happened there, but it all seems to be working now.
DrW is offline   Reply With Quote
Old 04-25-2020, 10:31 AM   #4
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
because you copied over a config folder which told calibre the library folder was filed under mike
stumped is offline   Reply With Quote
Old 04-25-2020, 04:28 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,905
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Simply re-link to whatever CURRENT location

Click the Library icon: Create/Switch: use existing: <point it to wherever it is NOW>
theducks is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Library ldandrew Library Management 2 02-22-2019 06:51 PM
Moving library to a new PC? Zoe_E_W Library Management 3 01-02-2015 01:04 PM
Moving books to device issue. spulley Calibre 2 01-04-2014 02:51 AM
Moving Calibre Library from Windows 7 to Windows 8 - json code issue DramaQueenLucy Devices 14 11-12-2013 11:47 AM
Moving library HardBall enTourage Archive 14 01-13-2011 11:15 PM


All times are GMT -4. The time now is 01:04 AM.


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