Configuring GYB alongside GAM

546 views
Skip to first unread message

Matt Nolley

unread,
Sep 16, 2021, 11:50:44 PM9/16/21
to Got Your Back: Gmail Backup
I'm failing to figure out how to install/configure GYB 1.50 to work alongside GAM (v6.04).  So far, I've symlinked the ouath2service.json file from GAM to GYB, and I've added the specified scopes to my GAM project in the Google Developer's Console (https://mail.google.com/,https://www.googleapis.com/auth/apps.groups.migration,https://www.googleapis.com/auth/drive.appdata)

When I attempt to backup a user's email account using the --service-account option, I get:

Traceback (most recent call last):
  File "gyb.py", line 2429, in <module>
  File "gyb.py", line 1737, in main
  File "gyb.py", line 671, in buildGAPIServiceObject
  File "gyb.py", line 1214, in getSvcAcctCredentials
  File "google/oauth2/service_account.py", line 376, in refresh
  File "google/oauth2/_client.py", line 193, in jwt_grant
  File "google/oauth2/_client.py", line 165, in _token_endpoint_request
  File "google/oauth2/_client.py", line 60, in _handle_error_response
google.auth.exceptions.RefreshError: ('unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.', {'error': 'unauthorized_client', 'error_description': 'Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.'})
[27400] Failed to execute script gyb

Environment is RHEL 7.

Any guidance/assistance would be most welcome.


Matt Nolley

unread,
Sep 29, 2021, 7:55:27 PM9/29/21
to Got Your Back: Gmail Backup
So, while I never figured out why my existing GAM ouath2service.json wouldn't suffice for GYB's needs, I was able to get it working by generating a  new GYB-specific ouath2service.json file, although the instructions in the documentation don't exactly correspond to the current state of the Google Cloud UI.

Mark Sterling

unread,
Sep 29, 2021, 8:26:49 PM9/29/21
to Got Your Back: Gmail Backup
Matt, I am running into the same issue.  
Did you delete your GYB Installation and start over?  
What were your steps?
Confidential Notice:  This e-mail message, including attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential, privileged and exempt from disclosure under applicable law.  If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify me immediately and delete or destroy all copies of the original message and attachments hereto.   

Jay Lee

unread,
Sep 29, 2021, 8:29:45 PM9/29/21
to Got Your Back: Gmail Backup
I'd recommend just using two separate projects. There's not much advantage to combining the projects and it's free to have two.

Jay

--
--
You received this message because you are subscribed to the Google
Groups "Got Your Back: Gmail Backup" group.
To post to this group, send email to got-yo...@googlegroups.com
To unsubscribe from this group, send email to
got-your-bac...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/got-your-back?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Got Your Back: Gmail Backup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to got-your-bac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/got-your-back/8d6fce5d-fca0-4a5e-8b80-13a92cbfe95an%40googlegroups.com.

Mark Sterling

unread,
Sep 29, 2021, 8:51:22 PM9/29/21
to got-yo...@googlegroups.com
Thanks Jay, doing a backup of my account now.   
Got it working
Company logo
Mark Sterling
Vice President Special Projects
Armellini Express Lines Inc.  
www.armellini.com
3446 SW Armellini Ave,
Palm City, FL 34990
Twitter  Facebook  Google Plus  Linkedin  



You received this message because you are subscribed to a topic in the Google Groups "Got Your Back: Gmail Backup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/got-your-back/JAsgf0mv0pU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to got-your-bac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/got-your-back/CA%2BVVBp-b2Gj_34RoqNxZeMuaK1oqioSnjAKjrDEC4193wMuhbg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages