Got 13500 users...Got 14000 users...Got 14500 users...Got 15000 users...Got 15288 users...done getting 12020 users.ERROR: [Errno 104] Connection reset by peer
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAOXHi9Oa%2B5ogAhwKn3HJg1rMSvfWdk957%3DqWJfVERjjtpR3BVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS_8y7C5KvoR%2B_Xf3GyOm%2BQAMPar%2BoBTSRQYYrEdRkXVVw%40mail.gmail.com.
Connection reset by peer means the other side hung up without even saying goodbye. Often this is flakey Wi-Fi, lack of bandwidth or a firewall/proxy appliance that's misbehaving.
Try the command while tethered to your phone or from your home internet and see if you get better results.
Jay
python gam.py all users print forward | sort > forwarding.txt
On Mon, Jan 30, 2017 at 3:30 PM Ross Scroggs <ross.s...@gmail.com> wrote:
Dan,What is the command you're executing?RossOn Mon, Jan 30, 2017 at 12:03 PM, Dan Schwartz <da...@lehigh.edu> wrote:I have a script which goes through all our users e-mail settings and reports on setting changes. Usually it runs fine, but occasionally I get an error message from gam that the connection was reset.Got 13500 users...Got 14000 users...Got 14500 users...Got 15000 users...Got 15288 users...done getting 12020 users.ERROR: [Errno 104] Connection reset by peerI think there is something timing out or the oauth token is expiring. Is there a way to recover nicely from this error and continue, rather than starting all over. Since the job takes hours to run, it would be nice to have it recover and continue rather than aborting.I've upgraded to GAM 4.11, but still occasionally see the error.Dan
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAOXHi9Oa%2B5ogAhwKn3HJg1rMSvfWdk957%3DqWJfVERjjtpR3BVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS_8y7C5KvoR%2B_Xf3GyOm%2BQAMPar%2BoBTSRQYYrEdRkXVVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAOXHi9NeZsrDXLf3OR%2BjXo1k0G29qJFZFp1Mziez0hNd6UMoMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Jay
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAOXHi9Oa%2B5ogAhwKn3HJg1rMSvfWdk957%3DqWJfVERjjtpR3BVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS_8y7C5KvoR%2B_Xf3GyOm%2BQAMPar%2BoBTSRQYYrEdRkXVVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAOXHi9NeZsrDXLf3OR%2BjXo1k0G29qJFZFp1Mziez0hNd6UMoMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
----Jay
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp_esW7NfsqNPehvoesw6NQSHd0_BoHeh5YZEAasD9CZ1A%40mail.gmail.com.
export GAM_THREADS=10; time python gam.py all users print forward |sort > 10-threads.txtGetting all users in G Suite account (may take some time on a large account)...Got 15286 users...done getting 12025 users.
ERROR: [Errno 104] Connection reset by peer
real 36m49.875suser 2m2.200ssys 0m7.100s
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAOXHi9Oa%2B5ogAhwKn3HJg1rMSvfWdk957%3DqWJfVERjjtpR3BVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS_8y7C5KvoR%2B_Xf3GyOm%2BQAMPar%2BoBTSRQYYrEdRkXVVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAOXHi9NeZsrDXLf3OR%2BjXo1k0G29qJFZFp1Mziez0hNd6UMoMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Jay
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/e74035ff-1af1-4b90-be99-c010b1b03cbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jay
Got 14000 users...Got 14500 users...Got 15000 users...
Got 15293 users...done getting 12031 users.Traceback (most recent call last):File "/home/ludas/gam/gam.py", line 10313, in <module>sys.exit(ProcessGAMCommand(sys.argv))File "/home/ludas/gam/gam.py", line 10050, in ProcessGAMCommandprintShowForward(users, True)File "/home/ludas/gam/gam.py", line 5356, in printShowForwarduserId=u'me')File "/home/ludas/gam/gam.py", line 586, in callGAPIreturn method(**parameters).execute()File "/home/ludas/GAM-4.11/oauth2client/util.py", line 137, in positional_wrapperreturn wrapped(*args, **kwargs)File "/home/ludas/GAM-4.11/googleapiclient/http.py", line 833, in executemethod=str(self.method), body=self.body, headers=self.headers)File "/home/ludas/GAM-4.11/googleapiclient/http.py", line 160, in _retry_requestresp, content = http.request(uri, method, *args, **kwargs)File "/home/ludas/GAM-4.11/oauth2client/transport.py", line 159, in new_requestcredentials._refresh(orig_request_method)File "/home/ludas/GAM-4.11/oauth2client/client.py", line 744, in _refreshself._do_refresh_request(http)File "/home/ludas/GAM-4.11/oauth2client/client.py", line 775, in _do_refresh_requestbody=body, headers=headers)File "/home/ludas/GAM-4.11/oauth2client/transport.py", line 282, in requestconnection_type=connection_type)File "/home/ludas/GAM-4.11/httplib2/__init__.py", line 1654, in request(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)File "/home/ludas/GAM-4.11/httplib2/__init__.py", line 1394, in _request(response, content) = self._conn_request(conn, request_uri, method, body, headers)File "/home/ludas/GAM-4.11/httplib2/__init__.py", line 1350, in _conn_requestresponse = conn.getresponse()File "/usr/lib/python2.7/httplib.py", line 1099, in getresponseraise ResponseNotReady()httplib.ResponseNotReady
You can try bumping your threads higher assuming you have the RAM for it (most newer systems should). Also make sure you're up on GAM 4.11, there were some recent improvements to bulk commands that should produce faster results.But yeah, GAM has to make 4,738 API calls for this command, one per user. That's never going to be terribly fast.Jay
On Mon, Feb 6, 2017 at 8:52 AM +KimNilsson <there.is.no.substitute@gmail.com> wrote:
Just tried that... damn, that took a while! :-)$ export GAM_THREADS=10; time gam all users print forward |sort > 10-threads.txt--Getting all users in G Suite account (may take some time on a large account)...
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/e74035ff-1af1-4b90-be99-c010b1b03cbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----Jay
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp8WRVfkpZ6Kd2D7%3Dbot3VO7fS3SUeMudygSTd3Dd5wV8Q%40mail.gmail.com.