Logger Aborting with(#0) with Error #23

Closed
iUwej opened this Issue Oct 20, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@iUwej

iUwej commented Oct 20, 2016

ERROR:root:Thespian Logger aborting (#0) with error Traceback (most recent call last): File "/home/soko/Env/soko_env/local/lib/python2.7/site-packages/thespian/system/logdirector.py", line 74, in startupASLogger logrecord = r.message AttributeError: 'Thespian__UpdateWork' object has no attribute 'message' INFO:Thespian.Admin:ActorSystem Administrator startup @ ActorAddr-Q.ThespianQ 'Thespian__UpdateWork' object has no attribute 'message'
I have a "multiprocQueueBase" actor system on my django app but the logger keep on aborting with the above error trace. Sending messages within the actor system is not working. Am I missing some configuration? How do I resolve the issue?

@kwquick

This comment has been minimized.

Show comment
Hide comment
@kwquick

kwquick Oct 20, 2016

Contributor

You should not need any special configuration. This looks like a bug possibly related to the multiple threads in Django. Thank your for the report, and I'm checking into this now...

Contributor

kwquick commented Oct 20, 2016

You should not need any special configuration. This looks like a bug possibly related to the multiple threads in Django. Thank your for the report, and I'm checking into this now...

@kwquick kwquick added the bug label Oct 20, 2016

@kwquick

This comment has been minimized.

Show comment
Hide comment
@kwquick

kwquick Oct 20, 2016

Contributor

This was an overlooked use case for a recent change. I've pushed two patches, and 96fcf0d in particular should address the problem.

Please let me know if this fixes your problem and if so I will generate a release shortly with this fix. If this does not fix the problem, can you supply any additional information about your setup or even a minimal reproducing example?

Thanks,
Kevin

Contributor

kwquick commented Oct 20, 2016

This was an overlooked use case for a recent change. I've pushed two patches, and 96fcf0d in particular should address the problem.

Please let me know if this fixes your problem and if so I will generate a release shortly with this fix. If this does not fix the problem, can you supply any additional information about your setup or even a minimal reproducing example?

Thanks,
Kevin

@iUwej

This comment has been minimized.

Show comment
Hide comment
@iUwej

iUwej Oct 21, 2016

Hi @kwquick
Thanks for the quick reply, I get the following error when working with the new fix.
ERROR:root:Thespian Logger aborting (#0) with error Traceback (most recent call last): File "/home/soko/Env/soko_env/local/lib/python2.7/site-packages/thespian-3.3.0-py2.7.egg/thespian/system/logdirector.py", line 75, in startupASLogger self._send_intent(TransmitIntent(self.myAddress, r)) NameError: global name 'self' is not defined INFO:Thespian.Admin:ActorSystem Administrator startup @ ActorAddr-Q.ThespianQ 'Thespian__UpdateWork' object has no attribute 'message'
the startupASLogger is defined as a global function but use of self suggest it was meant to be an instance method. I tried to redefine to be instance method but this escalated to other issues(due to scoping, I guess).What's your take on this?

Thanks, iUwej

iUwej commented Oct 21, 2016

Hi @kwquick
Thanks for the quick reply, I get the following error when working with the new fix.
ERROR:root:Thespian Logger aborting (#0) with error Traceback (most recent call last): File "/home/soko/Env/soko_env/local/lib/python2.7/site-packages/thespian-3.3.0-py2.7.egg/thespian/system/logdirector.py", line 75, in startupASLogger self._send_intent(TransmitIntent(self.myAddress, r)) NameError: global name 'self' is not defined INFO:Thespian.Admin:ActorSystem Administrator startup @ ActorAddr-Q.ThespianQ 'Thespian__UpdateWork' object has no attribute 'message'
the startupASLogger is defined as a global function but use of self suggest it was meant to be an instance method. I tried to redefine to be instance method but this escalated to other issues(due to scoping, I guess).What's your take on this?

Thanks, iUwej

@kwquick

This comment has been minimized.

Show comment
Hide comment
@kwquick

kwquick Oct 21, 2016

Contributor

My apologies for being too hasty in the fix before. Can you try updating that logdirector.py line 75 to read:

transport.scheduleTransmit(TransmitIntent(transport.myAddress, r))

Let me know if that helps. I'm not quite sure how this is getting triggered, so if you could tell me how you are using thespian with django I could investigate the interactions more.

Contributor

kwquick commented Oct 21, 2016

My apologies for being too hasty in the fix before. Can you try updating that logdirector.py line 75 to read:

transport.scheduleTransmit(TransmitIntent(transport.myAddress, r))

Let me know if that helps. I'm not quite sure how this is getting triggered, so if you could tell me how you are using thespian with django I could investigate the interactions more.

@kwquick

This comment has been minimized.

Show comment
Hide comment

@kwquick kwquick closed this Nov 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment