| 
			
			 | 
		#1 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() Posts: 66 
				Karma: 186 
				Join Date: Nov 2008 
				
				
				
				Device: Paperwhite, Nook Glowlight 3 
				
				
				 | 
	
	
	
		
		
			
			 
			
			Upgraded to 4.0, tried to add some books and got an error (pasted below), went to library maintenance and check library, got the same sort of error about not being able to open the database file. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Code: 
	alibre, version 4.0.0 ERROR: Errors while adding: Failed to add any books, click "Show details" for more information ---------------------------------------------------------------------- Failed to add the book: Asteroid Discovery: A Gunner Fox Trilogy (The Asteroid Series Book 1) C:\Users\Chris\Downloads\As05teroidDiscoveryAGunnerFoxTrilogyT.epub With error: Traceback (most recent call last): File "site-packages\calibre\gui2\add.py", line 414, in add_book File "site-packages\calibre\db\legacy.py", line 225, in create_book_entry File "site-packages\calibre\db\cache.py", line 62, in call_func_with_lock File "site-packages\calibre\db\cache.py", line 1580, in create_book_entry File "site-packages\calibre\db\backend.py", line 874, in execute File "c:\t\t\apsw-tti2z1cq\src\cursor.c", line 236, in resetcursor CantOpenError: CantOpenError: unable to open database file Code: 
	calibre, version 4.0.0 ERROR: Failed: Database integrity check failed, click Show details for details. Traceback (most recent call last): File "site-packages\calibre\gui2\dialogs\check_library.py", line 54, in vacuum File "site-packages\calibre\db\cache.py", line 62, in call_func_with_lock File "site-packages\calibre\db\cache.py", line 2076, in vacuum File "site-packages\calibre\db\backend.py", line 1145, in vacuum File "site-packages\calibre\db\backend.py", line 874, in execute File "c:\t\t\apsw-tti2z1cq\src\cursor.c", line 236, in resetcursor CantOpenError: CantOpenError: unable to open database file Any ideas on if I did something weird or wrong? Thanks! Chris Last edited by hydin; 10-04-2019 at 06:45 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			what is the FULL path to the Library?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() Posts: 66 
				Karma: 186 
				Join Date: Nov 2008 
				
				
				
				Device: Paperwhite, Nook Glowlight 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Full path is d:\librarycopy\Library for the main one.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() Posts: 66 
				Karma: 186 
				Join Date: Nov 2008 
				
				
				
				Device: Paperwhite, Nook Glowlight 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Yup! Checked and it's not marked as read only or hidden.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Try disabling your AV and see if that might be causing the problem.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() Posts: 66 
				Karma: 186 
				Join Date: Nov 2008 
				
				
				
				Device: Paperwhite, Nook Glowlight 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Nope, disabled all shields and active processes for the antivirus, still the same error. Even when swapping to a different library. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Note, I didn't change anything when I installed 4, just downloaded and installed. Same error now when I try to run 3.34 (the one I upgraded from), I get the same error about adding to the libraries, etc. Chris  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() Posts: 66 
				Karma: 186 
				Join Date: Nov 2008 
				
				
				
				Device: Paperwhite, Nook Glowlight 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Same problem in safe mode.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Try creating a new library, if possible on another drive, and try to add a book to it. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	BR  | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() Posts: 66 
				Karma: 186 
				Join Date: Nov 2008 
				
				
				
				Device: Paperwhite, Nook Glowlight 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Nah, no optical discs on the PC. Just lots and lots of hard drives. I'll try the backup idea mentioned above and let you guys know how it goes! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Thanks!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() Posts: 66 
				Karma: 186 
				Join Date: Nov 2008 
				
				
				
				Device: Paperwhite, Nook Glowlight 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Wow this is gonna take a while. I'll update in a day or two. If anyone is looking for programming feedback, some sort of percentage or something would be awesome. I'm just looking at a solid bar with a warning that this is gonna be a three step process.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Calibre metadata.db contains errors... Calibre2opds cannot open file. | anamardoll | Related Tools | 25 | 02-12-2018 09:33 PM | 
| Calibre 2.7 Unable to open Database file | Gordo29 | Devices | 22 | 11-05-2016 12:10 AM | 
| unable to open database file | mihal.v | Calibre | 3 | 08-16-2014 10:44 AM | 
| Unable to open database file | wladdy | Library Management | 6 | 08-28-2012 06:04 AM | 
| Unable to open database file | JulieR | Calibre | 2 | 04-24-2009 05:40 AM |