500 Internal Server Error after update

51 views
Skip to first unread message

Tarmo Soodla

unread,
May 12, 2016, 3:48:22 AM5/12/16
to Simian Discuss
Hi!

After updating to latest master, clients are not able to connect to server.

Output of preflight -debug:

DEBUG:root:Do(POST, /auth) try #4
DEBUG:root:Connecting to https://simian-1190.appspot.com:None
DEBUG:root:Loaded 300157 bytes of CA cert chain and configured ctx
DEBUG:root:SSL configuring with context
DEBUG:root:SSL connect(('simian-1190.appspot.com', 443))
DEBUG:root:IsValidCert() ok=0 cert=/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA, returning 0
DEBUG:root:SSL connected ('simian-1190.appspot.com', 443)
DEBUG:root:Requesting POST /auth
DEBUG:root:Waiting for response
DEBUG:root:Response status 500
WARNING:root:Retry status hit for Do(POST, /auth)
Traceback (most recent call last):
  File "/usr/local/munki/simian_client.py", line 87, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/munki/simian_client.py", line 73, in main
    preflight.RunPreflight(runtype, server_url=server_url)
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian-2.4-py2.6.egg/simian/mac/client/preflight.py", line 365, in RunPreflight
    secure_config, client_id, user_settings, client_exit)
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian-2.4-py2.6.egg/simian/mac/client/preflight.py", line 139, in LoginToServer
    token = client.GetAuthToken()
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian-2.4-py2.6.egg/simian/client/client.py", line 1828, in GetAuthToken
    self.DoSimianAuth()
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian-2.4-py2.6.egg/simian/client/client.py", line 1363, in DoSimianAuth
    'Auth step 1: %d %s' % (response.status, response.body))
simian.client.client.SimianServerError: Auth step 1: 500 500 Internal Server Error


 Error in server log:
89.219.131.3 - - [12/May/2016:10:16:08 +0300] "POST /auth HTTP/1.1" 500 176 - "gzip" "simian-1190.appspot.com" ms=50 cpu_ms=69 cpm_usd=1.9669e-8 instance=00c61b117c8347cb62c6e20570dde0ab0ade1639a7c4ec6e90 app_engine_release=1.9.37 trace_id=7e675bb8984d7cbc8954768ed1da059c

'bytearray' object has no attribute 'tostring' Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__ rv = self.handle_exception(request, response, e) File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in __call__ rv = self.router.dispatch(request, response) File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher return route.handler_adapter(request, response) File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in __call__ return handler.dispatch() File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch return self.handle_exception(e, self.app.debug) File "/base/data/home/apps/e~simian-1190/3615fcdf295d.392730969932375762/simian/mac/munki/handlers/__init__.py", line 133, in handle_exception super(AuthenticationHandler, self).handle_exception(exception, debug_mode) File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch return method(*args, **kwargs) File "/base/data/home/apps/e~simian-1190/3615fcdf295d.392730969932375762/simian/mac/munki/handlers/auth.py", line 90, in post auth1.Input(n=n, m=m, s=s) File "/base/data/home/apps/e~simian-1190/3615fcdf295d.392730969932375762/simian/auth/base.py", line 921, in Input sig = self.Sign(m) File "/base/data/home/apps/e~simian-1190/3615fcdf295d.392730969932375762/simian/auth/base.py", line 686, in Sign return sig_bytes.tostring() AttributeError: 'bytearray' object has no attribute 'tostring'

Maxim Ermilov

unread,
May 12, 2016, 9:30:33 PM5/12/16
to simian-...@googlegroups.com
Hi!

> After updating to latest master, clients are not able to connect to server.

I just pushed fix.
Thank you for taking the time to report this bug.

----Maxim

--
You received this message because you are subscribed to the Google Groups "Simian Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simian-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages