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

Vault count errors not reported correctly #433

Open
archierosenblum opened this issue Aug 23, 2024 · 7 comments
Open

Vault count errors not reported correctly #433

archierosenblum opened this issue Aug 23, 2024 · 7 comments

Comments

@archierosenblum
Copy link

When getting vault counts for a large number of users with large mailboxes using gam 6.80.11, the errors come back as a separate json rows, and the rows with the email shows a count of 0 (which is not correct) and no data in the error field.

The users below have over 250k emails in the vault. The desired outcome is that error field next to the email would contain the contain the error, and there would be no json rows.

gam print vaultcounts todrive matter "id:<matter id>" corpus mail scope all_data everyone

image
@archierosenblum archierosenblum changed the title Vault Count Errors not Reported Correctly Vault count errors not reported correctly Aug 23, 2024
@taers232c
Copy link
Owner

taers232c commented Aug 23, 2024 via email

@taers232c
Copy link
Owner

taers232c commented Aug 23, 2024 via email

@archierosenblum
Copy link
Author

archierosenblum commented Aug 27, 2024

Ross, thank you for looking into this issue. On 6.80.15, it is hitting an exception every time:

MacBookPro ~ % gam print vaultcounts todrive matter "id:7237529a-a849-46fc-9dd7-2ffc145b5cee" corpus mail scope all_data everyone
Getting all Vault Matter Artifacts for Vault Operation: operations/count/a3f96b4a-969a-4ec7-aa8e-937e6449a6eb, may take some time on a large Vault Matter...
Vault Operation: operations/count/a3f96b4a-969a-4ec7-aa8e-937e6449a6eb, Is not done, checking again in 15 seconds
Vault Operation: operations/count/a3f96b4a-969a-4ec7-aa8e-937e6449a6eb, Is not done, checking again in 15 seconds
Vault Operation: operations/count/a3f96b4a-969a-4ec7-aa8e-937e6449a6eb, Is not done, checking again in 15 seconds
Vault Operation: operations/count/a3f96b4a-969a-4ec7-aa8e-937e6449a6eb, Is not done, checking again in 15 seconds
Getting all Users, may take some time on a large Google Workspace Account...
Got 11029 Users...
Got 11029 Users
Traceback (most recent call last):
  File "__init__.py", line 75827, in ProcessGAMCommand
  File "__init__.py", line 40905, in doPrintVaultCounts
UnboundLocalError: cannot access local variable 'account' where it is not associated with a value

I put this in the debugger, it looks like this statement has an error. It looks like "account" should be "email" and if I make that change locally, it works fine.

        if email in query_accounts:
          query_accounts.remove(account)
image

@taers232c
Copy link
Owner

taers232c commented Aug 27, 2024 via email

@archierosenblum
Copy link
Author

Thank you very much!

@taers232c
Copy link
Owner

taers232c commented Aug 27, 2024 via email

@taers232c
Copy link
Owner

6.80.16 is available.

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

No branches or pull requests

2 participants