GAM and Google Compute Engine Network Errors

86 views
Skip to first unread message

Dave Kaminsky

unread,
Aug 30, 2013, 12:44:18 AM8/30/13
to google-ap...@googlegroups.com
Is anyone one else running GAM in a GCE instance?  I have started getting error to the effect of

error [Errno 101Network is unreachable

when I run 'nohup python /bin/GAM/gam.py print users ou >> /GAM_Reports/ALL.USER.REPORTS/20130829.With.OUS &'

I am running GAM in GCE because my gapps domain is over 100k in users, so running off a laptop to generate reports is not feasible.
The version is GAM 2.55, waiting for 403 error to get addressed before rolling out 3.0.1 to handle my daily/weekly reports etc...

-Dk  





Jay Lee

unread,
Aug 30, 2013, 8:36:07 AM8/30/13
to google-ap...@googlegroups.com
I've not seen issues on GCE, in fact I generally recommend it for huge GAM tasks like this since it allows you to run entirely within Google's network.

Can you try running the command normally without the nohup and see what it produces?

Jay

Dave Kaminsky

unread,
Aug 30, 2013, 8:49:14 AM8/30/13
to google-ap...@googlegroups.com
Well, not getting the network related error, but get this GEM (gam error message) of a error

will re-run with a debug.gam file next...

-Dk 

more /GAM_Reports/Members.OU.Files/20130830.INFO.ORG
Organization Unit: Members
Description: IEEE Members
Parent Org: /
Block Inheritance: false
Organization Unit: Members
Description: IEEE Members
Parent Org: /
Block Inheritance: false
Traceback (most recent call last):
  File "/bin/GAM/gam.py", line 6564, in <module>
    doGetOrgInfo()
  File "/bin/GAM/gam.py", line 3763, in doGetOrgInfo
    result2 = org.RetrieveAllOrganizationUnitUsers(name)
  File "/bin/GAM/gdata/apps/orgs/service.py", line 164, in RetrieveAllOrganizationUnitUsers
    all_users = self._GetPropertiesList(uri)
  File "/bin/GAM/gdata/apps/service.py", line 514, in _GetPropertiesList
    property_feed, gdata.apps.PropertyFeedFromString)
  File "/bin/GAM/gdata/apps/service.py", line 482, in AddAllElementsFromAllPages
    next_feed = self.Get(next.href, converter=func)
  File "/bin/GAM/gdata/service.py", line 1108, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 500, 'body': '<?xml version="1.0" encoding="UTF-8"?>\r\n<AppsForYourDomainErrors>\r\n  <error errorCode="1000" invalidInput="" reason="UnknownError" />\r\n</AppsForYourDomainErrors>\r\n\r\n', 'reason': 'Internal Se
rver Error'}



Dave Kaminsky
Manager of Alternative Client Systems
IEEE
Office: (732) 562-5422
WWW.IEEE.ORG


--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/ae18a68e-9e06-41eb-8449-7150a3e463a4%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Dave Kaminsky

unread,
Aug 30, 2013, 9:10:10 AM8/30/13
to google-ap...@googlegroups.com
Jay,

here are the last 2 sends form the Debug output....
The error is a 500 internal server error.

-Dave

-

send: 'GET https://apps-apis.google.com/a/feeds/orguser/2.0/C045prx4r?startKey=RCSS00gjdgxs1kruzsf.Members&orgUnitPath=Members&get=children HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: apps-apis.google.com\r\nContent-Type: application/atom+xml\r\nAuthorization: OAuth realm="", oauth_version="1.0", oauth_signature="%2FyCOXDd5XmcoMchWvxGAX7hYL2U%3D", oauth_nonce="26459167", oauth_timestamp="1377867597", oauth_token="1%2FHaeGcHqZH-m4kUZKkrTMaY0qIon0VllM2yoOdtW0mTE", oauth_consumer_key="739751628045-tph589b0lki2ndundltr1ffu1mp4i45e.apps.googleusercontent.com", oauth_signature_method="HMAC-SHA1"\r\nUser-Agent: Google Apps Manager 2.55 / j...@ditoweb.com (Jay Lee) / Python 2.6.6 final / Linux-3.3.8-gcg-201305291443-x86_64-with-centos-6.4-Final x86_64 / GData-Python 2.0.14+20110902+custom_mods\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/atom+xml; charset=UTF-8

header: Expires: Fri, 30 Aug 2013 13:00:01 GMT

header: Date: Fri, 30 Aug 2013 13:00:01 GMT

header: Cache-Control: private, max-age=0, must-revalidate, no-transform

header: Vary: Accept, X-GData-Authorization, GData-Version

header: GData-Version: 1.0

header: Last-Modified: Fri, 30 Aug 2013 13:00:01 GMT

header: X-Content-Type-Options: nosniff

header: X-Frame-Options: SAMEORIGIN

header: X-XSS-Protection: 1; mode=block

header: Server: GSE

header: Alternate-Protocol: 443:quic

header: Transfer-Encoding: chunked

send: 'GET https://apps-apis.google.com/a/feeds/orguser/2.0/C045prx4r?startKey=RCSS00gjdgxs0rieacz.Members&orgUnitPath=Members&get=children HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: apps-apis.google.com\r\nContent-Type: application/atom+xml\r\nAuthorization: OAuth realm="", oauth_version="1.0", oauth_signature="tsYZwiEx0SQea2eH8wASpofLDy4%3D", oauth_nonce="37414883", oauth_timestamp="1377867601", oauth_token="1%2FHaeGcHqZH-m4kUZKkrTMaY0qIon0VllM2yoOdtW0mTE", oauth_consumer_key="739751628045-tph589b0lki2ndundltr1ffu1mp4i45e.apps.googleusercontent.com", oauth_signature_method="HMAC-SHA1"\r\nUser-Agent: Google Apps Manager 2.55 / j...@ditoweb.com (Jay Lee) / Python 2.6.6 final / Linux-3.3.8-gcg-201305291443-x86_64-with-centos-6.4-Final x86_64 / GData-Python 2.0.14+20110902+custom_mods\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
header: Content-Type: text/xml

header: Date: Fri, 30 Aug 2013 13:00:11 GMT

header: Expires: Fri, 30 Aug 2013 13:00:11 GMT

header: Cache-Control: private, max-age=0

header: X-Content-Type-Options: nosniff

header: X-Frame-Options: SAMEORIGIN

header: X-XSS-Protection: 1; mode=block

header: Server: GSE

header: Alternate-Protocol: 443:quic

header: Transfer-Encoding: chunked

-Dave


send: 'GET https://apps-apis.google.com/a/feeds/orguser/2.0/C045prx4r?startKey=RCSS00gjdgxs1kruzsf.Members&orgUnitPath=Members&get=children HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: apps-apis.google.com\r\nContent-Type: application/atom+xml\r\nAuthorization: OAuth realm="", oauth_version="1.0", oauth_signature="%2FyCOXDd5XmcoMchWvxGAX7hYL2U%3D", oauth_nonce="26459167", oauth_timestamp="1377867597", oauth_token="1%2FHaeGcHqZH-m4kUZKkrTMaY0qIon0VllM2yoOdtW0mTE", oauth_consumer_key="739751628045-tph589b0lki2ndundltr1ffu1mp4i45e.apps.googleusercontent.com", oauth_signature_method="HMAC-SHA1"\r\nUser-Agent: Google Apps Manager 2.55 / j...@ditoweb.com (Jay Lee) / Python 2.6.6 final / Linux-3.3.8-gcg-201305291443-x86_64-with-centos-6.4-Final x86_64 / GData-Python 2.0.14+20110902+custom_mods\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/atom+xml; charset=UTF-8

header: Expires: Fri, 30 Aug 2013 13:00:01 GMT

header: Date: Fri, 30 Aug 2013 13:00:01 GMT

header: Cache-Control: private, max-age=0, must-revalidate, no-transform

header: Vary: Accept, X-GData-Authorization, GData-Version

header: GData-Version: 1.0

header: Last-Modified: Fri, 30 Aug 2013 13:00:01 GMT

header: X-Content-Type-Options: nosniff

header: X-Frame-Options: SAMEORIGIN

header: X-XSS-Protection: 1; mode=block

header: Server: GSE

header: Alternate-Protocol: 443:quic

header: Transfer-Encoding: chunked

send: 'GET https://apps-apis.google.com/a/feeds/orguser/2.0/C045prx4r?startKey=RCSS00gjdgxs0rieacz.Members&orgUnitPath=Members&get=children HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: apps-apis.google.com\r\nContent-Type: application/atom+xml\r\nAuthorization: OAuth realm="", oauth_version="1.0", oauth_signature="tsYZwiEx0SQea2eH8wASpofLDy4%3D", oauth_nonce="37414883", oauth_timestamp="1377867601", oauth_token="1%2FHaeGcHqZH-m4kUZKkrTMaY0qIon0VllM2yoOdtW0mTE", oauth_consumer_key="739751628045-tph589b0lki2ndundltr1ffu1mp4i45e.apps.googleusercontent.com", oauth_signature_method="HMAC-SHA1"\r\nUser-Agent: Google Apps Manager 2.55 / j...@ditoweb.com (Jay Lee) / Python 2.6.6 final / Linux-3.3.8-gcg-201305291443-x86_64-with-centos-6.4-Final x86_64 / GData-Python 2.0.14+20110902+custom_mods\r\n\r\n'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
header: Content-Type: text/xml

header: Date: Fri, 30 Aug 2013 13:00:11 GMT

header: Expires: Fri, 30 Aug 2013 13:00:11 GMT

header: Cache-Control: private, max-age=0

header: X-Content-Type-Options: nosniff

header: X-Frame-Options: SAMEORIGIN

header: X-XSS-Protection: 1; mode=block

header: Server: GSE

header: Alternate-Protocol: 443:quic

header: Transfer-Encoding: chunked

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.

Dave Kaminsky

unread,
Aug 30, 2013, 9:29:45 AM8/30/13
to google-ap...@googlegroups.com
opps for got to capture the actually error, running again



Dave Kaminsky
Manager of Alternative Client Systems
IEEE
Office: (732) 562-5422
WWW.IEEE.ORG


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.
Reply all
Reply to author
Forward
0 new messages