Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3.DatabaseError: file is not a database #25

Open
soundsk opened this issue Sep 27, 2022 · 1 comment
Open

sqlite3.DatabaseError: file is not a database #25

soundsk opened this issue Sep 27, 2022 · 1 comment

Comments

@soundsk
Copy link

soundsk commented Sep 27, 2022

Hi!

Trying to use this to decrypt and recover files from an old iPhone backup but keep getting this error, any idea what's wrong?
Thanks!

>>> b=iOSbackup(
...     udid="64004deb35e37f1ce7e698bd4b9a1926aae37d59",
...     cleartextpassword="supersecretpassword",
...     backuproot='Backup'
... )
>>> 
>>> 
>>> b.getFolderDecryptedCopy(
...     includeDomains='CameraRollDomain',
...     targetFolder='restored-photos',
... )
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/dist-packages/iOSbackup/__init__.py", line 654, in getFolderDecryptedCopy
    backupFiles = catalog.cursor().execute(query).fetchall()
sqlite3.DatabaseError: file is not a database
>>> 
@natarajan0007
Copy link

It might be due the problem with the backuproot = "Backup" path. Try to provide explicit path where the encrypted backup file exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants