Baruwa error 500

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Baruwa error 500

Max Keogh

Hi,

 

I've got 2 servers setup running Baruwa (main and backup servers) to scan and clean mail before forwarding oto out main internal exchange server.

I had reports from some clients who received undeliverables from our backup mail server.

Our main server is OK but I am not able to access the backup server. When I try to log on to the web interface I get a 500 error and an email saying I've had a WebApp error. Details below:

This came out of the blue this morning. No changes made to this server for a long time now so I have no idea what may have caused it.

Any suggestions on what the issue could be or where to look for further information would be greatly appreciated.

 

Email error message:

------------------------------------------------

WebApp Error: <type 'exceptions.TypeError'>: unsupported operand    type(s) for /: 'NoneType' and 'float'

 

Module baruwa.controllers.messages:2 in index

Module repoze.what.plugins.pylonshq.protectors:118 in wrap_action

<<                  return self.denial_handler(reason)
                   abort(code, comment=reason)
               return action_(*args, **kwargs)

>>  return action_(*args, **kwargs)

Module baruwa.controllers.messages:249 in index

<<          c.messages = items
               c.num_items = num_items
               return render('/messages/index.html')
      
           @ActionProtector(not_anonymous())

>>  return render('/messages/index.html')

Module pylons.templating:244 in render_mako

<<      return cached_template(template_name, render_template, cache_key=cache_key,
                                  cache_type=cache_type, cache_expire=cache_expire)

>>  cache_type=cache_type, cache_expire=cache_expire)

Module pylons.templating:219 in cached_template

<<          return content
           else:
               return render_func()

>>  return render_func()

Module pylons.templating:241 in render_template

<<          template = globs['app_globals'].mako_lookup.get_template(template_name)
      
               return literal(template.render_unicode(**globs))
      
           return cached_template(template_name, render_template, cache_key=cache_key,

>>  return literal(template.render_unicode(**globs))

Module mako.template:452 in render_unicode

<<                                  args,
                                       data,
                                       as_unicode=True)
      
           def render_context(self, context, *args, **kwargs):

>>  as_unicode=True)

Module mako.runtime:783 in _render

<<      _render_context(template, callable_, context, *args,
                                   **_kwargs_for_callable(callable_, data))
           return context._pop_buffer().getvalue()

>>  **_kwargs_for_callable(callable_, data))

Module mako.runtime:815 in _render_context

<<          # if main render method, call from the base of the inheritance stack
               (inherit, lclcontext) = _populate_self_namespace(context, tmpl)
               _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
           else:
               # otherwise, call the actual rendering method specified

>>  _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)

Module mako.runtime:836 in _exec_template

<<              callable_(context, *args, **kwargs)
               except Exception:
                   _render_error(template, context, compat.exception_as())
               except:
                   e = sys.exc_info()[0]

>>  _render_error(template, context, compat.exception_as())

Module mako.runtime:845 in _render_error

<<  def _render_error(template, context, error):
           if template.error_handler:
               result = template.error_handler(context, error)
               if not result:
                   raise error

>>  result = template.error_handler(context, error)

Module pylons.error:22 in handle_mako_error

<<      except:
               pass
           raise (exc, None, sys.exc_info()[2])

>>  raise (exc, None, sys.exc_info()[2])

TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'

CGI Variables

AUTH_TYPE

'cookie'

DOCUMENT_ROOT

'/var/www/html'

GATEWAY_INTERFACE

'CGI/1.1'

HTTP_ACCEPT

'*/*'

HTTP_ACCEPT_LANGUAGE

'en-GB'

HTTP_CONNECTION

'Keep-Alive'

HTTP_COOKIE

'baruwa=6a3dedaf43ad1b22f0145c143090b27e90c3c8b6b9435c6b176a4ac988337e8f7ab3dfd6; baruwaauth="60a9c8620962eac2de3a0035e33516dd54abd2efbaruwaadmin!<repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7f040f6a5ed0>,!userid_type:unicode"'

HTTP_HOST

'baruwa.backupserver.domain'

HTTP_USER_AGENT

'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)'

PATH_INFO

'/'

PATH_TRANSLATED

'/home/baruwa/px/lib/python2.6/site-packages/baruwa/baruwa.wsgi/'

REMOTE_ADDR

'192.168.0.109'

REMOTE_PORT

'4278'

REMOTE_USER

u'baruwaadmin'

REMOTE_USER_DATA

'userid_type:unicode'

REMOTE_USER_TOKENS

['<repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7f040f6a5ed0>', '']

REQUEST_METHOD

'GET'

REQUEST_URI

'/'

SCRIPT_FILENAME

'/home/baruwa/px/lib/python2.6/site-packages/baruwa/baruwa.wsgi'

SERVER_ADDR

'192.168.0.201'

SERVER_ADMIN

'root@localhost'

SERVER_NAME

'baruwa.backupserver.domain'

SERVER_PORT

'80'

SERVER_PROTOCOL

'HTTP/1.0'

SERVER_SIGNATURE

'<address>Apache/2.2.25 (CentOS) Server at baruwa.backupserver.domain Port 80</address>\n'

SERVER_SOFTWARE

'Apache/2.2.25 (CentOS)'

 

WSGI Variables

application

<baruwa.lib.auth.middleware.BaruwaPAM object at 0x7f040f7afc50>

beaker.get_session

<bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7f040f6a6090>>

beaker.session

{'taskids': [], '_accessed_time': 1420549194.8987989, '_creation_time': 1420546614.9689789, u'csrf': '810677010cade8ce7b143e31bfebf01d943ed89a'}

mod_ssl.is_https

<built-in method ssl_is_https of mod_wsgi.Adapter object at 0x7f040c4c0288>

mod_ssl.var_lookup

<built-in method ssl_var_lookup of mod_wsgi.Adapter object at 0x7f040c4c0288>

mod_wsgi.application_group

'baruwa.backupserver.domain|'

mod_wsgi.callable_object

'application'

mod_wsgi.handler_script

''

mod_wsgi.input_chunked

'0'

mod_wsgi.listener_host

''

mod_wsgi.listener_port

'80'

mod_wsgi.process_group

''

mod_wsgi.request_handler

'wsgi-script'

mod_wsgi.script_reloading

'1'

mod_wsgi.version

(3, 2)

paste.cookies

(<SimpleCookie: baruwa='6a3dedaf43ad1b22f0145c143090b27e90c3c8b6b9435c6b176a4ac988337e8f7ab3dfd6' baruwaauth='60a9c8620962eac2de3a0035e33516dd54abd2efbaruwaadmin!<repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7f040f6a5ed0>,!userid_type:unicode'>, 'baruwa=6a3dedaf43ad1b22f0145c143090b27e90c3c8b6b9435c6b176a4ac988337e8f7ab3dfd6; baruwaauth="60a9c8620962eac2de3a0035e33516dd54abd2efbaruwaadmin!<repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7f040f6a5ed0>,!userid_type:unicode"')

paste.registry

<paste.registry.Registry object at 0x7f040d2e7d10>

paste.throw_errors

True

pylons.action_method

<bound method MessagesController.index of <baruwa.controllers.messages.MessagesController object at 0x7f0410f17390>>

pylons.controller

<baruwa.controllers.messages.MessagesController object at 0x7f0410f17390>

pylons.environ_config

{'session': 'beaker.session', 'cache': 'beaker.cache'}

pylons.log_debug

False

pylons.pylons

<pylons.util.PylonsContext object at 0x7f040fa39b50>

pylons.routes_dict

{'action': u'index', 'controller': u'messages', 'format': None}

repoze.what.adapters

{'groups': {}, 'permissions': {}}

repoze.what.credentials

{'repoze.what.userid': u'baruwaadmin', 'groups': (), 'permissions': ()}

repoze.who.identity

<repoze.who identity (hidden, dict-like) at 139655376699040>

repoze.who.logger

None

repoze.who.plugins

{'authorization_md': <repoze.what.middleware.AuthorizationMetadata object at 0x7f040f7afc90>, 'form': <FriendlyFormPlugin 139655415778640>, 'baruwa_pop3_auth': <baruwa.lib.auth.pop3auth.BaruwaPOPAuthPlugin object at 0x7f040f726e90>, 'baruwa_smtp_auth': <baruwa.lib.auth.smtpauth.BaruwaSMTPAuthPlugin object at 0x7f040f6c5b50>, 'baruwa_radius_auth': <baruwa.lib.auth.radiusauth.BaruwaRadiusAuthPlugin object at 0x7f040f6add90>, 'sa_auth': <repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7f040f6a6ed0>, 'auth_tkt': <AuthTktCookiePlugin 139655415356304>, 'baruwa_imap_auth': <baruwa.lib.auth.imapauth.BaruwaIMAPAuthPlugin object at 0x7f040f6c5c90>, 'sa_md': <repoze.who.plugins.sa.SQLAlchemyUserMDPlugin object at 0x7f040f726e10>, 'baruwa_ldap_auth': <BaruwaLDAPAuthPlugin 139655415754128>}

routes.route

<routes.route.Route object at 0x7f040f452ad0>

routes.url

<routes.util.URLGenerator object at 0x7f040f8b4490>

webob._parsed_query_vars

(GET([]), '')

wsgi process

'Multiprocess'

wsgi.file_wrapper

<built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f040c4c0288>

wsgi.version

(1, 1)

wsgiorg.routing_args

(<routes.util.URLGenerator object at 0x7f040f8b4490>, {'action': u'index', 'controller': u'messages', 'format': None})

 

 

------------------------------------------------------------------------------------------

 

 

Kind Regards,

Max Keogh

Systems Administrator

 

---------------------------------------------------------------------------------------------------------------------------

Unless otherwise agreed expressly in writing by Marine Software Limited, This communication and attachments are to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it was sent. If you are not the intended recipient of this communication you should notify the sender immediately, then destroy it without copying, disclosing or otherwise using its contents. Marine Software Limited. Registered in England & Wales. No 2576494 Registered Office. 4 Ozengell Place, Eurokent Business Park, Ramsgate. Kent. United Kingdom. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, we do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of e-mail transmission. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.

 


_______________________________________________
http://pledgie.com/campaigns/12056