Error when trying to get ACLs for all user files

26 views
Skip to first unread message

William

unread,
Jun 27, 2024, 7:51:54 AM (6 days ago) Jun 27
to GAM for Google Workspace
C:\GAMADV-XTD3>gam version
GAMADV-XTD3 6.77.02

Ran the command 
"gam config auto_batch_min 1 redirect csv ./All_Users.csv multiprocess all users print filelist fields id,name,permissions,owners.emailaddress,mimetype pm not domainlist <domain.com>,<domain1.com> em"


Everything was going fine and ran through all users and got down the final "Z" users before giving the following errors.


Got 20100 Drive Files/Folders that matched query ('me' in owners) for us...@domain.com...2024-06-27T01:51:44.042+00:00,0/57691,Waiting for 3 running processes to finish before terminating, wait limit unlimited seconds
Got 20700 Drive Files/Folders that matched query ('me' in owners) for us...@domain.com...2024-06-27T01:51:49.042+00:00,0/57691,Waiting for 3 running processes to finish before terminating, wait limit unlimited seconds
Got 21200 Drive Files/Folders that matched query ('me' in owners) for us...@domain.com...2024-06-27T01:51:54.043+00:00,0/57691,Waiting for 3 running processes to finish before terminating, wait limit unlimited seconds
Got 21500 Drive Files/Folders that matched query ('me' in owners) for us...@domain.com......
ERROR: [WinError 87] The parameter is incorrect
Got 21700 Drive Files/Folders that matched query ('me' in owners) for us...@domain.com...2024-06-27T01:51:59.044+00:00,0/57691,Waiting for 3 running processes to finish before terminating, wait limit unlimited seconds
Traceback (most recent call last):
  File "__init__.py", line 75251, in ProcessGAMCommand
  File "__init__.py", line 10077, in doAutoBatch
  File "__init__.py", line 9857, in MultiprocessGAMCommands
  File "<string>", line 2, in get
  File "multiprocessing\managers.py", line 836, in _callmethod
multiprocessing.managers.RemoteError:
---------------------------------------------------------------------------
Traceback (most recent call last):
  File "multiprocessing\managers.py", line 253, in serve_client
  File "multiprocessing\connection.py", line 250, in recv
  File "multiprocessing\connection.py", line 334, in _recv_bytes
  File "multiprocessing\connection.py", line 353, in _get_more_data
AssertionError
---------------------------------------------------------------------------
Process Process-2:
Traceback (most recent call last):
  File "multiprocessing\connection.py", line 328, in _recv_bytes
BrokenPipeError: [WinError 109] The pipe has been ended

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "multiprocessing\process.py", line 314, in _bootstrap
  File "multiprocessing\process.py", line 108, in run
  File "__init__.py", line 9395, in CSVFileQueueHandler
  File "<string>", line 2, in get
  File "multiprocessing\managers.py", line 821, in _callmethod
  File "multiprocessing\connection.py", line 250, in recv
  File "multiprocessing\connection.py", line 337, in _recv_bytes
EOFError

Ross Scroggs

unread,
Jun 27, 2024, 10:23:15 AM (6 days ago) Jun 27
to google-ap...@googlegroups.com
Wiliam,

Try modifying you command to cut down on the amount of data.

gam config auto_batch_min 1 redirect csv ./All_Users.csv multiprocess all users print filelist fields id,name,basicpermissions,mimetype pm not domainlist <domain.com>,<domain1.com> em pmfilter
Replace permissions with basicpermissions - This removes non-essential fields
Remove owners.emailaddress - As written the command only returns files owned by the user so this field produces unnecessary duplicate output
Add pmfilter - Without this you get every file every use owns, pmfilter says to only include files that matched pm not domainlist <domain.com>,<domain1.com> em

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9805e317-2e8b-4d84-a8fa-7b8a5533c3a1n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages