| 
			
			 | 
		#1 | 
| 
			
			
			
			 Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 41 
				Karma: 608 
				Join Date: Feb 2019 
				
				
				
				Device: Kindle Signature 
				
				
				 | 
	
	
	
		
		
			
			 
				
				'no savepoint' error
			 
			
			
			Hi  
		
	
		
		
		
		
		
		
		
		
		
		
	
	I tried deleting a few items from my database but got the 'no savepoint' error as others have done. I followed advice in those older posts I found to use Library Maintenance but there is no change to this error message when I try to delete. Then I ran 'check database' action (with 'compact database' checked). That generated the string of errors below! Note: I have I have two databases; both have been moved manually a few times during computer upgrade; both were created in W10 now using W11 (though that is unlikely the cause). One passes the Lib Maintenance test, the other doesn't. It's an issue because I would like to delete a number of items but can't. Any advice greatly appreciated. Error messages follow (don't like the look of the last one!): ----------------------------------------------------- calibre, version 6.26.0 ERROR: Failed: Database integrity check failed, click "Show details" for details. Traceback (most recent call last): File "calibre\gui2\dialogs\check_library.py", line 85, in vacuum File "calibre\db\cache.py", line 85, in call_func_with_lock File "calibre\db\cache.py", line 2642, in vacuum File "calibre\db\backend.py", line 1314, in vacuum File "calibre\db\fts\connect.py", line 83, in vacuum File "calibre\db\backend.py", line 400, in execute apsw.CorruptError: CorruptError: database disk image is malformed  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Backup your library folder, then use the restore database function under library maintenance. That will rebuild the database from distributed backups and hopefully fix the corruption.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 41 
				Karma: 608 
				Join Date: Feb 2019 
				
				
				
				Device: Kindle Signature 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Thanks but did not work
			 
			
			
			HI 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Thanks for the advice. Tried that but no change - books that cannot be deleted still generate 'no savepoint' error ... I'll try again ...  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Is your library on a network drive or in a dropbox/onedrive/??? folder?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 41 
				Karma: 608 
				Join Date: Feb 2019 
				
				
				
				Device: Kindle Signature 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Yes but not used - only for brief storage
			 
			
			
			Yes -but not used. Put there while I rebuilt my PC ... did not use Calibre
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Where is your calibre library located? On what type of drive with what filesystem? Try rebooting in safe mode and see if you can delete the books.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 3 
				Karma: 10 
				Join Date: Apr 2024 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I get the same error.  I've been trying various suggestions, including exporting the library and reimporting it to a different local drive.  My library passes all the check library tests.  I can add and edit books, but I cannot delete some books.  There's a serious bug in Calibre somewhere.  Here's the error message: 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Spoiler: 
 
		Last edited by theducks; 04-19-2024 at 03:59 AM. Reason: spoilered log  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Tags | 
| library maintenance, no savepoint | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Sqlerror:no such savepoint: _apsw-0 calibre | uncletoma | Calibre | 5 | 03-22-2018 10:21 AM | 
| Calibre Hudl 2: calibre, version 3.2.1 ERROR: Error: Error communicating with device | elfed | Devices | 4 | 07-21-2017 06:33 AM | 
| Aura ERROR: Error: Error communicating with device | Calibrefan | Kobo Reader | 2 | 07-02-2015 03:14 PM | 
| calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: | e-bookuser | Devices | 1 | 07-03-2011 05:09 PM | 
| ERROR: Error: Error communicating with device | JWood | Calibre | 10 | 04-20-2010 08:28 PM |