keeleysam / munkireport

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

Installation Error #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. installed 0.7.0.82
2. ./setup.sh: line 56: 
/Users/ladmin/Library/Python/MunkiReportEnv/bin/activate: No such file or 
directory
3. installed successfull but no reports are sended to page

What is the expected output? What do you see instead?
i would except install failed or working reports

Which MunkiReport version are you using?
0.7.0.82

Which Munki version are you using?
0.7.1.1173.0

Which operating system version are you running MunkiReport on?
10.6.7 Server

Please provide any additional information below.
manual run preflight:

XXXXX:munki xxxxx$ ./preflight 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>A 500 Error has Occurred </title>
    <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="/css/admin.css" />
</head>
<body>
  <div id="header">
    <h1>MunkiReport</h1>
  </div>
  <ul id="mainmenu">
    <li class="first"><a href="/" class="">Start</a></li>
    <li><a href="/view" class="">Reports</a></li>
        <li id="login" class="loginlogout"><a href="/login">Login</a></li>
  </ul>
  <div id="content">
<h1>Error 500</h1>
<div><p>We're sorry but we weren't able to process  this request.</p></div>
    <!-- End of main_content -->
<div id="footer">
  <div class="clearingdiv"></div>
</div>
  </div>
  <div style="text-align: right; margin: 10px; color: #bbb; font-size: 80%;">
    <i>MunkiReport version 0.7.0</i>
  </div>
</body>

Original issue reported on code.google.com by mock.pri...@googlemail.com on 21 Jul 2011 at 7:29

GoogleCodeExporter commented 9 years ago
$ /Users/ladmin/Desktop/MunkiReport-0.7.0.82/start.sh 
start.sh launching MunkiReport
/Users/ladmin/Desktop/MunkiReport-0.7.0.82/start.sh: line 17: 
/Users/ladmin/Library/Python/MunkiReportEnv/bin/activate: No such file or 
directory
Starting server in PID 1298.
serving on http://XXX.XXX.XXX.XXX:8444
Error - <class 'sqlalchemy.exc.OperationalError'>: (OperationalError) attempt 
to write a readonly database u'INSERT INTO client (name, mac, remote_ip, 
timestamp, runtype, runstate, console_user, errors, warnings, activity, 
report_plist) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' (u'You need 
administrator access to run this tool... exiting!', u'XX:XX:XX:XX:XX:XX', 
u'XXX.XXX.XXX.XXX', '2011-07-21 09:38:58.270457', u'', u'in progress', None, 0, 
0, <read-only buffer for 0x102eed6a8, size -1, offset 0 at 0x102eeabb0>, None)
URL: http://XXX.XXX.XXX.XXX:8444/update/preflight
File 
'/Library/Python/2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/errormiddl
eware.py', line 162 in __call__
  app_iter = self.application(environ, sr_checker)
File 
'/Library/Python/2.6/site-packages/TurboGears2-2.1.1-py2.6.egg/tg/configuration.
py', line 797 in remover
  return app(environ, start_response)
File 
'/Library/Python/2.6/site-packages/repoze.tm2-1.0b2-py2.6.egg/repoze/tm/__init__
.py', line 24 in __call__
  result = self.application(environ, save_status_and_headers)
File 
'/Library/Python/2.6/site-packages/ToscaWidgets-0.9.12-py2.6.egg/tw/core/middlew
are.py', line 46 in __call__
  return self.wsgi_app(environ, start_response)
File 
'/Library/Python/2.6/site-packages/ToscaWidgets-0.9.12-py2.6.egg/tw/core/middlew
are.py', line 72 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 
'/Library/Python/2.6/site-packages/ToscaWidgets-0.9.12-py2.6.egg/tw/core/resourc
e_injector.py', line 70 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 
'/Library/Python/2.6/site-packages/Beaker-1.5.4-py2.6.egg/beaker/middleware.py',
 line 73 in __call__
  return self.app(environ, start_response)
File 
'/Library/Python/2.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 
'/Library/Python/2.6/site-packages/Routes-1.12.3-py2.6.egg/routes/middleware.py'
, line 131 in __call__
  response = self.app(environ, start_response)
File 
'/Library/Python/2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/wsgiapp.py', 
line 107 in __call__
  response = self.dispatch(controller, environ, start_response)
File 
'/Library/Python/2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/wsgiapp.py', 
line 312 in dispatch
  return controller(environ, start_response)
File 
'/Library/Python/2.6/site-packages/MunkiReport-0.7.0dev_r82-py2.6.egg/munkirepor
t/lib/base.py', line 32 in __call__
  return TGController.__call__(self, environ, start_response)
File 
'/Library/Python/2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/controllers/core.
py', line 211 in __call__
  response = self._dispatch_call()
File 
'/Library/Python/2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/controllers/core.
py', line 162 in _dispatch_call
  response = self._inspect_call(func)
File 
'/Library/Python/2.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 
'/Library/Python/2.6/site-packages/TurboGears2-2.1.1-py2.6.egg/tg/controllers/di
spatcher.py', line 254 in _perform_call
  r = self._call(func, params, remainder=remainder)
File 
'/Library/Python/2.6/site-packages/TurboGears2-2.1.1-py2.6.egg/tg/controllers/de
coratedcontroller.py', line 116 in _call
  output = controller(*remainder, **dict(params))
File 
'/Library/Python/2.6/site-packages/MunkiReport-0.7.0dev_r82-py2.6.egg/munkirepor
t/controllers/update.py', line 90 in preflight
  DBSession.flush()
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/orm/scoping.py', line 113 in do
  return getattr(self.registry(), name)(*args, **kwargs)
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/orm/session.py', line 1473 in flush
  self._flush(objects)
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/orm/session.py', line 1542 in _flush
  flush_context.execute()
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/orm/unitofwork.py', line 327 in execute
  rec.execute(self)
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/orm/unitofwork.py', line 471 in execute
  uow
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/orm/mapper.py', line 2163 in _save_obj
  execute(statement, params)
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/engine/base.py', line 1358 in execute
  params)
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/engine/base.py', line 1491 in _execute_clauseelement
  compiled_sql, distilled_params
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/engine/base.py', line 1599 in _execute_context
  context)
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/engine/base.py', line 1592 in _execute_context
  context)
File 
'/Library/Python/2.6/site-packages/SQLAlchemy-0.7.1-py2.6-macosx-10.6-universal.
egg/sqlalchemy/engine/default.py', line 325 in do_execute
  cursor.execute(statement, parameters)
OperationalError: (OperationalError) attempt to write a readonly database 
u'INSERT INTO client (name, mac, remote_ip, timestamp, runtype, runstate, 
console_user, errors, warnings, activity, report_plist) VALUES (?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?)' (u'You need administrator access to run this tool... 
exiting!', u'XX:XX:XX:XX:XX:XX', u'XXX.XXX.XXX.XXX', '2011-07-21 
09:38:58.270457', u'', u'in progress', None, 0, 0, <read-only buffer for 
0x102eed6a8, size -1, offset 0 at 0x102eeabb0>, None)

CGI Variables
-------------
  CONTENT_TYPE: 'application/x-www-form-urlencoded; charset=utf-8'
  HTTP_ACCEPT: '*/*'
  HTTP_HOST: 'XXX.XXX.XXX.XXX:8444'
  HTTP_USER_AGENT: 'curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3'
  PATH_INFO: '/update/preflight'
  REMOTE_ADDR: 'XXX.XXX.XXX.XXX'
  REQUEST_METHOD: 'POST'
  SERVER_NAME: 'XXX.XXX.XXX.XXX'
  SERVER_PORT: '8444'
  SERVER_PROTOCOL: 'HTTP/1.1'

WSGI Variables
--------------
  application: <function remover at 0x1021e98c0>
  beaker.cache: <beaker.cache.CacheManager object at 0x102199e10>
  beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x102199d90>>
  beaker.session: {'_accessed_time': 1311233938.2538249, '_creation_time': 1311233938.2538249}
  paste.cookies: (<SimpleCookie: >, '')
  paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 0x1011b4a90>
  paste.registry: <paste.registry.Registry object at 0x102809310>
  paste.throw_errors: True
  pylons.action_method: <bound method RootController.routes_placeholder of <munkireport.controllers.root.RootController object at 0x102809a90>>
  pylons.controller: <munkireport.controllers.root.RootController object at 0x102809a90>
  pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}
  pylons.pylons: <pylons.util.PylonsContext object at 0x102809a50>
  pylons.routes_dict: {'url': u'/update/preflight', 'action': u'routes_placeholder', 'controller': u'root'}
  repoze.tm.active: True
  repoze.who.logger: None
  repoze.who.plugins: {'authorization_md': <repoze.what.middleware.AuthorizationMetadata object at 0x101542790>, 'macosx_metadataprovider': <munkireport.lib.macosxauth.MacOSXMetadataProvider object at 0x101542cd0>, 'macosx_authenticator': <munkireport.lib.macosxauth.MacOSXAuthenticator object at 0x101542650>, 'file_metadataprovider': <munkireport.lib.fileauth.FileMetadataProvider object at 0x101542e10>, 'auth_tkt': <AuthTktCookiePlugin 4317258448>, 'friendlyform': <FriendlyFormPlugin 4317258192>, 'file_authenticator': <munkireport.lib.fileauth.FileAuthenticator object at 0x101542990>}
  routes.route: <routes.route.Route object at 0x10149ded0>
  routes.url: <routes.util.URLGenerator object at 0x102809850>
  toscawidgets.framework: <tw.mods.base.HostFramework object at 0x1021e80d0>
  toscawidgets.javascript.require_once: False
  toscawidgets.prefix: '/toscawidgets'
  webob._parsed_post_vars: (MultiDict([('runtype', ''), ('mac', 'XX:XX:XX:XX:XX:XX'), ('name', 'You need administrator access to run this tool... exiting!')]), <FakeCGIBody at 0x1028098d0 viewing MultiDict([('ru...!')])>)
  webob._parsed_query_vars: (GET([]), '')
  webob.adhoc_attrs: {'controller_state': <tg.controllers.dispatcher.DispatchState object at 0x102edc9d0>, 'errors': 'ignore', 'language': 'en-us', 'start_response': <function repl_start_response at 0x10280f2a8>, 'response_type': None, 'response_ext': None, 'identity': None}
  webob.is_body_readable: True
  webob.is_body_seekable: False
  wsgi process: 'Multithreaded'
  wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x102809850>, {'url': u'/update/preflight', 'action': u'routes_placeholder', 'controller': u'root'})
------------------------------------------------------------

Original comment by mock.pri...@googlemail.com on 21 Jul 2011 at 7:44

GoogleCodeExporter commented 9 years ago
I am getting the same error with Munki version 0.7.2 Build 1243 and 10.6.8 v1.1

some clients do get the report into Munkireport but some others don't. Even 
sometimes they lose the previous report or some client that was giving an error 
gets the report. So far seems random to me

Original comment by nbalonso on 10 Aug 2011 at 5:55

GoogleCodeExporter commented 9 years ago
This is the same that issue #13

Original comment by nbalonso on 10 Aug 2011 at 5:56