View Single Post
Old 09-25-2015, 06:20 PM   #6
Fiat_Lux
Addict
Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.
 
Fiat_Lux's Avatar
 
Posts: 394
Karma: 6700000
Join Date: Jan 2012
Location: Gimel
Device: tablets
Quote:
Originally Posted by eschwartz View Post
Do you by any chance mean something like this?:
Code:
Restoring database failed with error:
Traceback (most recent call last):
  File "/home/eschwartz/git/calibre/src/calibre/db/restore.py", line 125, in run
    self.replace_db()
...
Rerunning it, the error message is:
Code:
WARNING: Failed to set default libc locale, using en_US.UTF-8
Starting restoring preferences and column metadata ... 0%
Cannot restore preferences. Backup file not found. ... 100%
Restoring database failed with error:
Traceback (most recent call last):
  File "site-packages/calibre/db/restore.py", line 125, in run
  File "site-packages/calibre/db/restore.py", line 276, in replace_db
  File "shutil.py", line 82, in copyfile
IOError: [Errno 2] No such file or directory: u'/media/HITACHI/A/hitachi_library/metadata.db'


Quote:
The answer to that is to `touch` the metadata.db first, since the file must exist even if it is completely scribbled over.
Using ls -al *.db , I get:
Code:
182223872 Sep 17 14:48 metadata.db
Leaving out the section with the owner, user, and permissions.
I'm the owner, user, and permissions are "-rw------- 1"

Amber
Fiat_Lux is offline   Reply With Quote