Hi Jeremy, I see in the file "/home/baruwa/px/lib/python2.6/site-packages/baruwa/tasks/messages.py" has lots of logger.info , how do I turn it on so that I can see where it fails? Python is a new language to me. I'm far more familiar with perl, php, c
Tried the debug option in the production.ini but no logs for the above problem appear anywhere. Regards, Michael ________________________________________ From: [email protected] [[email protected]] On Behalf Of Michael Van Der Beek [[email protected]] Sent: Saturday, April 26, 2014 9:07 AM To: Baruwa users list Subject: Re: [Baruwa] FW: WebApp Error: <type 'exceptions.AttributeError'>: 'function' object has no attribute 'id' Hi Jeremy, Ignore this EOF error. It appears randomly when I click on mail queue status. Not related to the no attribute problem. Regards, Michael ________________________________________ From: [email protected] [[email protected]] On Behalf Of Michael Van Der Beek [[email protected]] Sent: Saturday, April 26, 2014 8:10 AM To: Baruwa users list Subject: Re: [Baruwa] FW: WebApp Error: <type 'exceptions.AttributeError'>: 'function' object has no attribute 'id' Hi Jeremy, Yes DNS seems fine.. I got 20 mails in 6 hours.. not loaded at all. However, I noticed this is pgsql logs LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection LOG: unexpected EOF on client connection I think thats the cause. For some reason its not getting the full command so I guess it waits and the connection times out. Regards, Michael ________________________________________ From: [email protected] [[email protected]] On Behalf Of Jeremy McSpadden [[email protected]] Sent: Saturday, April 26, 2014 8:39 AM To: Baruwa users list Subject: Re: [Baruwa] FW: WebApp Error: <type 'exceptions.AttributeError'>: 'function' object has no attribute 'id' Your probably over spinning it. 4GB is fine with 2 cores. More is not always better with virtualization. But it's def timing out. DNS ok ? -- Jeremy McSpadden Flux Labs | http://www.fluxlabs.net | Endless Solutions Office : 850-250-5590x501<tel:850-250-5590;501> | Cell : 850-890-2543<tel:850-890-2543> | Fax : 850-254-2955<tel:850-254-2955> On Fri, Apr 25, 2014 at 5:31 PM -0700, "Michael Van Der Beek" <[email protected]<mailto:[email protected]>> wrote: Hi Jeremy, I'm running on a vm, the host 8x2Ghz cpu vmware. I've allocated 4G of ram and 1 cores to this vm. There's only 4 vm's running on this system. I'll try assigning more cores to the vm and see what happens. Regards, Michael ________________________________________ From: [email protected] [[email protected]] On Behalf Of Jeremy McSpadden [[email protected]] Sent: Saturday, April 26, 2014 8:11 AM To: [email protected]; Baruwa users list Subject: Re: [Baruwa] FW: WebApp Error: <type 'exceptions.AttributeError'>: 'function' object has no attribute 'id' << return self.backend.wait_for(self.id, timeout=timeout, propagate=propagate, interval=interval) wait = get # deprecated alias to :meth:`get`. Timeout .. What are the specs on your machine ? -- Jeremy McSpadden Flux Labs | http://www.fluxlabs.net | Endless Solutions Office : 850-250-5590x501<tel:850-250-5590;501> | Cell : 850-890-2543<tel:850-890-2543> | Fax : 850-254-2955<tel:850-254-2955> On Fri, Apr 25, 2014 at 4:34 PM -0700, "Michael Van Der Beek" <[email protected]<mailto:[email protected]>> wrote: Hi Jeremy, For some reason.. hours later.. this error comes up. Seems like when there are more then 10 emails (only got 20) in email list currently after 6 hours). Then this error pops up when I try to train an email as spam. Regards, Michael ________________________________________ From: [email protected] [[email protected]] Sent: Saturday, April 26, 2014 7:27 AM To: Michael Van Der Beek Subject: WebApp Error: <type 'exceptions.AttributeError'>: 'function' object has no attribute 'id' Module baruwa.controllers.messages:2 in detail 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:281 in detail << task = process_quarantined_msg.apply_async( args=[job], queue=message.hostname) task.wait(30) if task.status == 'SUCCESS': # process response >> task.wait(30) Module celery.result:108 in get << return self.backend.wait_for(self.id, timeout=timeout, propagate=propagate, interval=interval) wait = get # deprecated alias to :meth:`get`. >> interval=interval) Module celery.backends.amqp:154 in wait_for << elif state in states.PROPAGATE_STATES: if propagate: raise self.exception_to_python(meta['result']) return meta['result'] else: >> raise self.exception_to_python(meta['result']) AttributeError: 'function' object has no attribute 'id' CGI Variables AUTH_TYPE 'cookie' CONTENT_TYPE 'application/x-www-form-urlencoded' DOCUMENT_ROOT '/var/www/html' GATEWAY_INTERFACE 'CGI/1.1' HTTP_ACCEPT 'application/json, text/javascript, */*; q=0.01' HTTP_ACCEPT_ENCODING 'gzip,deflate,sdch' HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.8' HTTP_CONNECTION 'keep-alive' HTTP_COOKIE 'PHPSESSID=7bb17da16382f6dcebee2af4dc858b4c; cookie_test=1398434289; baruwa=987d21be5623b328fc36f9ca52fead68a0604ae0940b550687f14cd5b97fb71b62df1ac3; baruwaauth="f7cb8f7db8bff805862b23473b0428f2535a970badmin!<repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7f2db3abce90>,!userid_type:unicode"' HTTP_HOST '27.96.104.59:8001' HTTP_ORIGIN 'Baruwa warning: numerical links are often malicious: http://27.96.104.59:8001<http://27.96.104.59:8001>' HTTP_REFERER 'Baruwa warning: numerical links are often malicious: Baruwa warning: numerical links are often malicious: http://27.96.104.59:8001/messages/detail/9<http://27.96.104.59:8001/messages/detail/9<http://27.96.104.59:8001/messages/detail/9<http://27.96.104.59:8001/messages/detail/9>>' HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36' HTTP_X_REQUESTED_WITH 'XMLHttpRequest' PATH_INFO '/messages/detail/9.json' PATH_TRANSLATED '/home/baruwa/px/lib/python2.6/site-packages/baruwa/baruwa.wsgi/messages/detail/9.json' REMOTE_ADDR '103.224.118.106' REMOTE_PORT '63310' REMOTE_USER u'admin' REMOTE_USER_DATA 'userid_type:unicode' REMOTE_USER_TOKENS ['<repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7f2db3abce90>', ''] REQUEST_METHOD 'POST' REQUEST_URI '/messages/detail/9.json' SCRIPT_FILENAME '/home/baruwa/px/lib/python2.6/site-packages/baruwa/baruwa.wsgi' SERVER_ADDR '192.168.50.70' SERVER_ADMIN 'root@localhost' SERVER_NAME '27.96.104.59' SERVER_PORT '8001' SERVER_PROTOCOL 'HTTP/1.1' SERVER_SIGNATURE '<address>Apache/2.2.27 (CentOS) Server at 27.96.104.59 Port 8001</address>\n' SERVER_SOFTWARE 'Apache/2.2.27 (CentOS)' WSGI Variables application <baruwa.lib.auth.middleware.BaruwaPAM object at 0x7fada6d3f3d0> beaker.get_session <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7fada6d3f090>> beaker.session {'_accessed_time': 1398468461.5435541, '_creation_time': 1398446360.0794771, u'csrf': 'ef2296443662494f7325569662bce62d8da62a3a', 'queue_choices': [(u'3', u'3')]} mod_wsgi.application_group 'antlabs.com:8001|' mod_wsgi.callable_object 'application' mod_wsgi.enable_sendfile '0' mod_wsgi.handler_script '' mod_wsgi.input_chunked '0' mod_wsgi.listener_host '' mod_wsgi.listener_port '80' mod_wsgi.process_group '' mod_wsgi.queue_start '1398468461522231' mod_wsgi.request_handler 'wsgi-script' mod_wsgi.script_reloading '1' mod_wsgi.version (3, 4) paste.cookies (<SimpleCookie: PHPSESSID='7bb17da16382f6dcebee2af4dc858b4c' baruwa='987d21be5623b328fc36f9ca52fead68a0604ae0940b550687f14cd5b97fb71b62df1ac3' baruwaauth='f7cb8f7db8bff805862b23473b0428f2535a970badmin!<repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7f2db3abce90>,!userid_type:unicode' cookie_test='1398434289'>, 'PHPSESSID=7bb17da16382f6dcebee2af4dc858b4c; cookie_test=1398434289; baruwa=987d21be5623b328fc36f9ca52fead68a0604ae0940b550687f14cd5b97fb71b62df1ac3; baruwaauth="f7cb8f7db8bff805862b23473b0428f2535a970badmin!<repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7f2db3abce90>,!userid_type:unicode"') paste.registry <paste.registry.Registry object at 0x7fada893c650> paste.throw_errors True pylons.action_method <bound method MessagesController.detail of <baruwa.controllers.messages.MessagesController object at 0x7fada8961cd0>> pylons.controller <baruwa.controllers.messages.MessagesController object at 0x7fada8961cd0> pylons.environ_config {'session': 'beaker.session', 'cache': 'beaker.cache'} pylons.log_debug False pylons.pylons <pylons.util.PylonsContext object at 0x7fada893c290> pylons.routes_dict {'action': u'detail', 'controller': u'messages', 'id': u'9', 'format': u'json'} repoze.what.adapters {'groups': {}, 'permissions': {}} repoze.what.credentials {'repoze.what.userid': u'admin', 'groups': (), 'permissions': ()} repoze.who.identity <repoze.who identity (hidden, dict-like) at 140383835105616> repoze.who.logger None repoze.who.plugins {'authorization_md': <repoze.what.middleware.AuthorizationMetadata object at 0x7fada6d3f0d0>, 'form': <FriendlyFormPlugin 140383805964432>, 'baruwa_pop3_auth': <baruwa.lib.auth.pop3auth.BaruwaPOPAuthPlugin object at 0x7fada6e001d0>, 'baruwa_smtp_auth': <baruwa.lib.auth.smtpauth.BaruwaSMTPAuthPlugin object at 0x7fada6dcee10>, 'baruwa_radius_auth': <baruwa.lib.auth.radiusauth.BaruwaRadiusAuthPlugin object at 0x7fada6d43f50>, 'sa_auth': <repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x7fada6d430d0>, 'auth_tkt': <AuthTktCookiePlugin 140383805566544>, 'baruwa_imap_auth': <baruwa.lib.auth.imapauth.BaruwaIMAPAuthPlugin object at 0x7fada6dcef50>, 'sa_md': <repoze.who.plugins.sa.SQLAlchemyUserMDPlugin object at 0x7fada6e00150>, 'baruwa_ldap_auth': <BaruwaLDAPAuthPlugin 140383805767888>} routes.route <routes.route.Route object at 0x7fada6b82d10> routes.url <routes.util.URLGenerator object at 0x7fada893c250> webob._body_file (<io.BufferedReader object at 0x7fada8949a50>, <mod_wsgi.Input object at 0x7fada893c770>) webob._parsed_post_vars (MultiDict([('learnas', u'spam'), ('altrecipients', u''), ('csrf_token', u'20140426092728##4dfad5de4505ad6bfbd09e1790d997389bb0b6b8'), ('learn', u'1')]), <io.BufferedReader object at 0x7fada8949710>) webob._parsed_query_vars (GET([]), '') webob.adhoc_attrs {'errors': 'ignore'} webob.is_body_readable True webob.is_body_seekable False wsgi process 'Multiprocess' wsgi.file_wrapper <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fada892a918> wsgiorg.routing_args (<routes.util.URLGenerator object at 0x7fada893c250>, {'action': u'detail', 'controller': u'messages', 'id': u'9', 'format': u'json'}) _______________________________________________ http://pledgie.com/campaigns/12056 _______________________________________________ http://pledgie.com/campaigns/12056 _______________________________________________ http://pledgie.com/campaigns/12056 _______________________________________________ http://pledgie.com/campaigns/12056 _______________________________________________ http://pledgie.com/campaigns/12056

