Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger Aborting with(#0) with Error #23

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

Logger Aborting with(#0) with Error #23

iUwej opened this issue Oct 20, 2016 · 5 comments
Labels

Comments

@iUwej
Copy link

@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
Copy link
Contributor

@kwquick 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...

Loading

@kwquick kwquick added the bug label Oct 20, 2016
@kwquick
Copy link
Contributor

@kwquick 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

Loading

@iUwej
Copy link
Author

@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

Loading

@kwquick
Copy link
Contributor

@kwquick 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.

Loading

@kwquick
Copy link
Contributor

@kwquick kwquick commented Nov 8, 2016

Loading

@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
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants