Unhandled exception when trying to restore to a group

82 views
Skip to first unread message

Mike Nguyen

unread,
Jun 21, 2024, 3:56:58 PM6/21/24
to Got Your Back: Gmail Backup
Running the following version of GYB on an up-to-date Ubuntu 22.04.04 LTS VM:
Got Your Back 1.81
jaylee.us/gyb
Jay Lee - jay...@gmail.com
Python 3.12.3 64-bit final
google-api-client 2.126.0
Linux-5.15.0-112-generic-x86_64-with-glibc2.35 x86_64
Path: /home/mike/bin/gyb
ConfigPath: /home/mike/bin/gyb
OpenSSL 3.3.0 9 Apr 2024
gmail.googleapis.com connects using TLSv1.3 TLS_AES_256_GCM_SHA384

No issues backing mailboxes, but when I try to restore a mailbox to a Google Group (which does exist, etc.), I'm getting the following error:

mike@test-vm $ gyb --action restore-group --email us...@domain.com --service-account --use-admin mike-...@domain.com --local-folder ./GYB-GMail-...@domain.com
Using backup folder ./GYB-GMail-...@domain.com
Groups supports restore of messages up to 26214400
Traceback (most recent call last):
File "gyb.py", line 2817, in <module>
File "gyb.py", line 2581, in main
File "gyb.py", line 1990, in convert_timestamp
File "_strptime.py", line 554, in _strptime_datetime
File "_strptime.py", line 336, in _strptime
ValueError: unconverted data remains: .520000
[1419] Failed to execute script 'gyb' due to unhandled exception!

Kinara Verify

unread,
Jul 1, 2024, 6:52:00 AM7/1/24
to Got Your Back: Gmail Backup
I am getting the same type of error. See below.

Traceback (most recent call last):

  File "gyb.py", line 2817, in <module>

  File "gyb.py", line 2254, in main

  File "gyb.py", line 1990, in convert_timestamp

  File "_strptime.py", line 554, in _strptime_datetime

  File "_strptime.py", line 336, in _strptime

ValueError: unconverted data remains: .794000


I previously tested with a small size account and the restore command worked fine. this account has 400k messages. Is that the issue?

Mike Nguyen

unread,
Jul 1, 2024, 1:45:56 PM7/1/24
to Got Your Back: Gmail Backup
Could be the case, I was also trying to restore a huge mailbox (129gb) to a group.

Kinara Verify

unread,
Jul 5, 2024, 10:48:24 PM7/5/24
to Got Your Back: Gmail Backup
i was able to get past it by adding -mbox to the command. I am restoring to a backup email box and not to a group

gyb --email XX@ --action restore-mbox --local-folder GYB-GMail-Backup-YYY --service-account

other issues come along the way that requires restarting. but thankfully gyb quickly scans whats been done and re-starts from the right spot.

Ryan Finchum

unread,
Aug 5, 2024, 3:42:51 PM8/5/24
to Got Your Back: Gmail Backup
i tried this and it failed as well...
i'm only restoring a backup that is 8.5gb
any ideas?
what is --service-account used for?  why would i choose that?

Reply all
Reply to author
Forward
0 new messages