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

Restore mbox failing #269

Closed
Toni3Ash opened this issue May 10, 2020 · 3 comments
Closed

Restore mbox failing #269

Toni3Ash opened this issue May 10, 2020 · 3 comments
Labels

Comments

@Toni3Ash
Copy link

Hey. Sorry, I'm new to a lot of this, so if I did something that was obviously wrong please let me know.

C:\gyb>gyb --email [redacted]@gmail.com --action restore-mbox

Using backup folder GYB-GMail-Backup-[redacted]@gmail.com

Restoring from 1.28gb file GYB-GMail-Backup-[redacted]@gmail.com\All mail Includin
g Spam and Trash.mbox...

Traceback (most recent call last):%
File "gyb.py", line 2190, in
File "gyb.py", line 1945, in main
File "gyb.py", line 574, in callGAPI
File "site-packages\googleapiclient_helpers.py", line 130, in positional_wrap
per
File "site-packages\googleapiclient\http.py", line 1493, in execute
File "gyb.py", line 1372, in restored_message
sqlite3.IntegrityError: datatype mismatch
[4788] Failed to execute script gyb

@jay0lee
Copy link
Member

jay0lee commented May 10, 2020

It looks like you are using a regular GYB backup folder to restore mbix files. Can you create an empty folder, place just the mbox files there and try again?

@Toni3Ash
Copy link
Author

Okay.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd \gyb

C:\gyb>gyb --email [redacted]@gmail.com --action restore-mbox --local-folder "C:\U
sers[redacted]\Documents\Takeout\Mail"

Using backup folder C:\Users[redacted]\Documents\Takeout\Mail
Traceback (most recent call last):
File "gyb.py", line 1125, in get_db_settings
sqlite3.OperationalError: no such table: settings

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "gyb.py", line 2190, in
File "gyb.py", line 1559, in main
File "gyb.py", line 1129, in get_db_settings
AttributeError: 'OperationalError' object has no attribute 'message'
[1228] Failed to execute script gyb

C:\gyb>

@stale
Copy link

stale bot commented Aug 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

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

No branches or pull requests

2 participants