Restore gets stuck - newbie

374 views
Skip to first unread message

Mooge

unread,
May 9, 2012, 5:08:39 AM5/9/12
to got-yo...@googlegroups.com
Newbie question:

I am trying to move 500+ messages from one gmail account to another. Backed them up with no problem.
Started the restore, it went fine for a few minutes. Got stuck once or twice, the line said 
imaplib.abort error:socket error: [Errno 10053]....retrying
and then it managed to continue.

Then it got to message 99 and went into a loop and just kept retrying, without success.

I have started over several times and used the --resume command, but it keeps happening. 
Not sure if there is some real problem or maybe just one screwed-up message? I don't mind skipping one or two messages but I would certainly like to be able to get most of them moved.

Any suggestions? TIA

Ed Hillis

unread,
Jun 27, 2013, 9:54:23 AM6/27/13
to got-yo...@googlegroups.com
Thanks for this! 

I needed to find the message another way, so here's a note on that.

The error I saw was:

restoring message 1798 of 3854 from 2012-02-02 17:13:50
imaplib.abort error:command: APPEND => socket error: EOF, retrying...

Instead of referring to the number of the message (1798), I had to search for the date (2012-02-02 17:13:50) in the message_internaldate column.


On Wednesday, February 20, 2013 9:35:34 PM UTC-6, Walter Marchewka wrote:
I got stuck on restore too.  This is what i did.  I noted what message it got stuck on (in your case 99).  I then downloaded SQLite Datebase Browser from http://sourceforge.net/projects/sqlitebrowser/.

In the backup folder (gyb\GYB-GMail-Ba...@gmail.com) look for the file "msg-db.sqlite" and open it with SQLite DB Browser.
In the SQLite DB browser, click the "Browse Data" tab and go to the offending message, in your case 99.
In the message filename column, note the data there.  Here is an example "2009\7\30\1-5819.eml"
Now browse to that folder in the backup data, ie, 2009 then 7 then 30 and look for email 1-5819.eml.
Cut or move that email from the folder.
Then restart the GYB and it should skip that message and continue on.
I am currently analyzing that email to see why GYB would stop on it.
Any help?

Michael Douma

unread,
Nov 17, 2013, 2:40:50 PM11/17/13
to got-yo...@googlegroups.com
I was able to solve this for my case. 

python gyb.py --email  new...address  --action restore --local-folder "GYB-GMail-Backup-..."


I was restoring >30k messages, and had to restart a few times. I also got this error: 
imaplib.abort error:command: APPEND => socket error: EOF, retrying... 

In my case, it looked like this: 
Using backup folder GYB-GMail-Backup-....@..... 
restoring message 1 of 1330 from 2011-03-28 09:38:26 

imaplib.abort error:command: APPEND => socket error: EOF, retrying...

imaplib.abort error:command: APPEND => socket error: EOF, retrying...

(and the error repeated)

I tried opening 'msg-db.sqlite', to look for message #1330, but I wasn't sure how the indexing counted, and did not direct right right message. I also looked for the exact message "2011-03-28 09:38:26", but it did not exist. 

I ended up removing *all* the messages from that date out of the folder (there were no important messages that day), and continued. I got errors like this, but it continued:

restoring message 1 of 1330 from 2011-03-28 09:38:26WARNING! file GYB-GMail-Backup-.../2011/3/28/601854236-407748.eml does not exist for message 1277

  this message will be skipped.

restoring message 2 of 1330 from 2011-03-28 09:17:29WARNING! file GYB-GMail-Backup-.../2011/3/28/601854236-407739.eml does not exist for message 1276

  this message will be skipped.


And it finished fine. 
Reply all
Reply to author
Forward
0 new messages