GAM-team / GAM

command line management for Google Workspace
https://github.com/GAM-team/GAM/wiki
Apache License 2.0
3.53k stars 473 forks source link

Receiving error when deleting mobile device - "Temp error internalError. Backing off for 18 seconds" #445

Closed DouglasMWP closed 7 years ago

DouglasMWP commented 7 years ago

We are trying to remove approximately 1000 mobile device accounts from our domain using GAM, when we attempt to delete the device (we tried an individual device first to validate the commands) we receive an error: "Temp error internalError. Backing off for 18 seconds"

We have cleared the gamcache, updated and re-installed GAM, all to no avail.

Full steps to reproduce the issue:

  1. Enter command gam delete mobile ApplDX3LVVVCFML4

Once entered, it tries for 10-12 seconds and then returns the error above.

Expected outcome (what are you trying to do?): Delete a mobile device

Actual outcome (what errors or bad behavior do you see instead?): "Temp error internalError. Backing off for 18 seconds"

The results from the Gam Oauth Info are below: I've stripped the domain, secret and customer id from the info.

Scopes (29): https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/admin.directory.group https://www.googleapis.com/auth/admin.directory.orgunit https://www.googleapis.com/auth/admin.directory.user https://www.googleapis.com/auth/admin.directory.device.chromeos https://www.googleapis.com/auth/admin.directory.device.mobile https://apps-apis.google.com/a/feeds/emailsettings/2.0/ https://www.googleapis.com/auth/admin.directory.resource.calendar https://www.googleapis.com/auth/apps.groups.settings https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/admin.reports.audit.readonly https://www.googleapis.com/auth/admin.reports.usage.readonly https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/apps.licensing https://www.googleapis.com/auth/admin.directory.user.security https://www.googleapis.com/auth/admin.directory.notifications https://www.googleapis.com/auth/siteverification https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/admin.directory.userschema https://www.googleapis.com/auth/classroom.rosters https://www.googleapis.com/auth/classroom.courses https://www.googleapis.com/auth/classroom.profile.emails https://www.googleapis.com/auth/classroom.profile.photos https://www.googleapis.com/auth/classroom.guardianlinks.students https://www.googleapis.com/auth/cloudprint https://www.googleapis.com/auth/admin.datatransfer https://www.googleapis.com/auth/admin.directory.customer https://www.googleapis.com/auth/admin.directory.domain https://www.googleapis.com/auth/admin.directory.rolemanagement

taers232c commented 7 years ago

Douglas,

If you try to delete a mobile device with an invalid id, Google sends back a 500 Internal Server Error which produces the error you see. I think you're using the wrong ID, if you do a gam print mobile > mobile.csv mobile.csv has these headers:

resourceId,lastSync,kernelVersion,deviceCompromisedStatus,defaultLanguage,hardware,userAgent,firstSync,releaseVersion,hardwareId,securityPatchLevel,privilege,encryptionStatus,type,networkOperator,devicePasswordStatus,status,brand,meid,buildNumber,devic eId,imei,adbStatus,bootloaderVersion,manufacturer,basebandVersion,developerOptionsStatus,name,serialNumber,supportsWorkProfile,email,unknownSourcesStatus,managedAccountIsOnOwnerProfile,model,os,wifiMacAddress

The value you showed looks like it comes from the deviceId column, you want the value from the resourceId column:

AFiQxQ-yPhMtnG7WmExGkQLTypL3dt6PRHhyKL3aDpi_P_9pR9lr6QRtUAzFYJCH9rt01h0f6xb2ZZ_89q63d9NVvW0ANgeyzKEOefq6Bbe37aXV_PVSho0

Try that,

Ross

On Wed, Mar 8, 2017 at 11:36 AM, DouglasMWP notifications@github.com wrote:

We are trying to remove approximately 1000 mobile device accounts from our domain using GAM, when we attempt to delete the device (we tried an individual device first to validate the commands) we receive an error: "Temp error internalError. Backing off for 18 seconds"

We have cleared the gamcache, updated and re-installed GAM, all to no avail.

Full steps to reproduce the issue:

  1. Enter command gam delete mobile ApplDX3LVVVCFML4

Once entered, it tries for 10-12 seconds and then returns the error above.

Expected outcome (what are you trying to do?): Delete a mobile device

Actual outcome (what errors or bad behavior do you see instead?): "Temp error internalError. Backing off for 18 seconds"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jay0lee/GAM/issues/445, or mute the thread https://github.com/notifications/unsubscribe-auth/AIU8L8J0Tsda7bpiQYsWp_R4HIxbViUlks5rjwMvgaJpZM4MXNjh .

-- Ross Scroggs ross.scroggs@gmail.com