keeleysam / munkireport

Automatically exported from code.google.com/p/munkireport
Other
0 stars 0 forks source link

error 500 after software install #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install any software via munki on a client
2. Check the report for that client on munkireport website 
3. receive error

What is the expected output? What do you see instead?
I expect to see to see a list of software that was just installed on the 
machine, Instead I see an "error 500" page

Which MunkiReport version are you using?
MunkiReport dev snapshot 0.7.0.82

Which Munki version are you using?
0.7.0 Build 1047

Which operating system version are you running MunkiReport on?
Mac OS X Server 10.6.7 (10J869)

Please provide any additional information below.
I see the following error in the log:
/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/SQLAlchemy
-0.7.1-py2.6-macosx-10.6-universal.egg/sqlalchemy/engine/default.py:448: 
SAWarning: Unicode type received non-unicode bind param value.
  param.append(processors[key](compiled_params[key]))
Error - <type 'exceptions.TypeError'>: expected string or buffer
URL: 
http://munkireport.cul.columbia.edu:8444/view/report/c4%3A2c%3A03%3A1e%3Aae%3Aab
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/WebError-
0.10.3-py2.6.egg/weberror/errormiddleware.py', line 162 in __call__
  app_iter = self.application(environ, sr_checker)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/TurboGear
s2-2.1-py2.6.egg/tg/configuration.py', line 796 in remover
  return app(environ, start_response)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/repoze.tm
2-1.0b1-py2.6.egg/repoze/tm/__init__.py', line 23 in __call__
  result = self.application(environ, save_status_and_headers)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/ToscaWidg
ets-0.9.11-py2.6.egg/tw/core/middleware.py', line 43 in __call__
  return self.wsgi_app(environ, start_response)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/ToscaWidg
ets-0.9.11-py2.6.egg/tw/core/middleware.py', line 68 in wsgi_app
  resp = req.get_response(self.application)
File 'build/bdist.macosx-10.6-universal/egg/webob/request.py', line 1008 in 
get_response
File 'build/bdist.macosx-10.6-universal/egg/webob/request.py', line 977 in 
call_application
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/ToscaWidg
ets-0.9.11-py2.6.egg/tw/core/resource_injector.py', line 68 in _injector
  resp = req.get_response(app)
File 'build/bdist.macosx-10.6-universal/egg/webob/request.py', line 1008 in 
get_response
File 'build/bdist.macosx-10.6-universal/egg/webob/request.py', line 977 in 
call_application
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/Beaker-1.
5.4-py2.6.egg/beaker/middleware.py', line 73 in __call__
  return self.app(environ, start_response)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/Beaker-1.
5.4-py2.6.egg/beaker/middleware.py', line 152 in __call__
  return self.wrap_app(environ, session_start_response)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/Routes-1.
12.3-py2.6.egg/routes/middleware.py', line 131 in __call__
  response = self.app(environ, start_response)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/Pylons-1.
0-py2.6.egg/pylons/wsgiapp.py', line 107 in __call__
  response = self.dispatch(controller, environ, start_response)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/Pylons-1.
0-py2.6.egg/pylons/wsgiapp.py', line 312 in dispatch
  return controller(environ, start_response)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/MunkiRepo
rt-0.7.0dev_r82-py2.6.egg/munkireport/lib/base.py', line 32 in __call__
  return TGController.__call__(self, environ, start_response)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/Pylons-1.
0-py2.6.egg/pylons/controllers/core.py', line 211 in __call__
  response = self._dispatch_call()
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/Pylons-1.
0-py2.6.egg/pylons/controllers/core.py', line 162 in _dispatch_call
  response = self._inspect_call(func)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/Pylons-1.
0-py2.6.egg/pylons/controllers/core.py', line 105 in _inspect_call
  result = self._perform_call(func, args)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/TurboGear
s2-2.1-py2.6.egg/tg/controllers/dispatcher.py', line 254 in _perform_call
  r = self._call(func, params, remainder=remainder)
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/TurboGear
s2-2.1-py2.6.egg/tg/controllers/decoratedcontroller.py', line 111 in _call
  output = controller(*remainder, **dict(params))
File 
'/Users/lito/Library/Python/MunkiReportEnv/lib/python2.6/site-packages/MunkiRepo
rt-0.7.0dev_r82-py2.6.egg/munkireport/controllers/view.py', line 77 in report
  m = re_result.search(result)
TypeError: expected string or buffer

CGI Variables
-------------
  AUTH_TYPE: 'cookie'
  CONTENT_LENGTH: '0'
  CONTENT_TYPE: '; charset=utf-8'
  HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
  HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
  HTTP_ACCEPT_ENCODING: 'gzip, deflate'
  HTTP_ACCEPT_LANGUAGE: 'en-us,en;q=0.5'
  HTTP_CONNECTION: 'keep-alive'
  HTTP_COOKIE: '__utma=79242187.1830725102.1307636438.1308063565.1308065497.5; __utmz=79242187.1307636438.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ezproxy=jDn6moPk89p3K8g; __utmc=79242187; munkireport=2eb7f709969017d54b416f3bf9edd2dafff76e23b32aad79dff46fd59689a4f60a6900bb; auth_tkt="2832d8a25416814a8b5a99b4eeb861454df255e7am2507!userid_type:unicode"'
  HTTP_HOST: 'munkireport.cul.columbia.edu:8444'
  HTTP_KEEP_ALIVE: '115'
  HTTP_REFERER: 'http://munkireport.cul.columbia.edu:8444/view/client_list'
  HTTP_USER_AGENT: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1'
  PATH_INFO: '/view/report/c4:2c:03:1e:ae:ab'
  REMOTE_ADDR: '128.59.152.42'
  REMOTE_USER: u'am2507'
  REMOTE_USER_DATA: 'userid_type:unicode'
  REMOTE_USER_TOKENS: ['']
  REQUEST_METHOD: 'GET'
  SERVER_NAME: '128.59.155.188'
  SERVER_PORT: '8444'
  SERVER_PROTOCOL: 'HTTP/1.1'

WSGI Variables
--------------
  application: <function remover at 0x103169f50>
  beaker.cache: <beaker.cache.CacheManager object at 0x1032159d0>
  beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x103215950>>
  beaker.session: {'_accessed_time': 1308153021.3051219, '_creation_time': 1308153021.3051219}
  paste.cookies: (<SimpleCookie: __utma='79242187.1830725102.1307636438.1308063565.1308065497.5' __utmc='79242187' __utmz='79242187.1307636438.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)' auth_tkt='2832d8a25416814a8b5a99b4eeb861454df255e7am2507!userid_type:unicode' ezproxy='jDn6moPk89p3K8g' munkireport='2eb7f709969017d54b416f3bf9edd2dafff76e23b32aad79dff46fd59689a4f60a6900bb'>, '__utma=79242187.1830725102.1307636438.1308063565.1308065497.5; __utmz=79242187.1307636438.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ezproxy=jDn6moPk89p3K8g; __utmc=79242187; munkireport=2eb7f709969017d54b416f3bf9edd2dafff76e23b32aad79dff46fd59689a4f60a6900bb; auth_tkt="2832d8a25416814a8b5a99b4eeb861454df255e7am2507!userid_type:unicode"')
  paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 0x101b138d0>
  paste.registry: <paste.registry.Registry object at 0x103172690>
  paste.throw_errors: True
  pylons.action_method: <bound method RootController.routes_placeholder of <munkireport.controllers.root.RootController object at 0x103172c50>>
  pylons.controller: <munkireport.controllers.root.RootController object at 0x103172c50>
  pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}
  pylons.pylons: <pylons.util.PylonsContext object at 0x103172c10>
  pylons.routes_dict: {'url': u'/view/report/c4:2c:03:1e:ae:ab', 'action': u'routes_placeholder', 'controller': u'root'}
  repoze.tm.active: True
  repoze.what.adapters: {'groups': {'dscl_groups': <munkireport.lib.macosxauth.MacOSXGroupAdapter object at 0x102008210>, 'ini_groups': <repoze.what.plugins.ini.ini.INIGroupAdapter object at 0x10316f190>}, 'permissions': {'ini_permissions': <repoze.what.plugins.ini.ini.INIPermissionsAdapter object at 0x102005410>}}
  repoze.what.credentials: {'repoze.what.userid': u'am2507', 'groups': ('_lpadmin', 'everyone', 'com.apple.local.ard_reports', 'deploystudioadmin-group', 'netaccounts', '_lpoperator', 'macadmin-group', 'com.apple.access_screensharing', 'com.apple.sharepoint.group.1', '_developer', 'com.apple.sharepoint.group.3', 'staff', 'com.apple.local.ard_admin', 'admin', 'com.apple.local.ard_manage', 'munkiadmin-group', 'com.apple.access_ssh', 'com.apple.sharepoint.group.2', 'com.apple.local.ard_interact'), 'permissions': (u'admin', u'view')}
  repoze.who.identity: <repoze.who identity (hidden, dict-like) at 4297824304>
  repoze.who.logger: None
  repoze.who.plugins: {'authorization_md': <repoze.what.middleware.AuthorizationMetadata object at 0x102005e50>, 'macosx_metadataprovider': <munkireport.lib.macosxauth.MacOSXMetadataProvider object at 0x1020057d0>, 'macosx_authenticator': <munkireport.lib.macosxauth.MacOSXAuthenticator object at 0x1020051d0>, 'file_metadataprovider': <munkireport.lib.fileauth.FileMetadataProvider object at 0x102005350>, 'auth_tkt': <AuthTktCookiePlugin 4328544080>, 'friendlyform': <FriendlyFormPlugin 4328545744>, 'file_authenticator': <munkireport.lib.fileauth.FileAuthenticator object at 0x102005a90>}
  routes.route: <routes.route.Route object at 0x101e38f50>
  routes.url: <routes.util.URLGenerator object at 0x103172a90>
  toscawidgets.framework: <tw.mods.base.HostFramework object at 0x103164bd0>
  toscawidgets.javascript.require_once: False
  toscawidgets.prefix: '/toscawidgets'
  webob._parsed_query_vars: (GET([]), '')
  webob.adhoc_attrs: {'controller_state': <tg.controllers.dispatcher.DispatchState object at 0x1032b5b90>, 'language': 'en-us', 'start_response': <function repl_start_response at 0x103178758>, 'response_type': None, 'response_ext': None, 'identity': <repoze.who identity (hidden, dict-like) at 4297824304>}
  wsgi process: 'Multithreaded'
  wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x103172a90>, {'url': u'/view/report/c4:2c:03:1e:ae:ab', 'action': u'routes_placeholder', 'controller': u'root'})
------------------------------------------------------------

Original issue reported on code.google.com by am2...@apps.cul.columbia.edu on 15 Jun 2011 at 3:59

GoogleCodeExporter commented 9 years ago
Was fixed in r174 and will be fixed in the next release, see issue 8.

Original comment by MagerV...@gmail.com on 16 Jun 2011 at 7:00