-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Django freezes when using Stackdriver logging #3088
Comments
Thanks for reporting @briandeheus! @waprin's the most familiar with this service I believe. WDYT @waprin? |
Not sure will try to repro. |
@waprin were you able to reproduce this? If not, I can try and reproduce it and get you some more information if possible. |
Very sorry for delay here. Unfortunately I am currently not able to reproduce this. This is on Django 1.10.5 , Python 2.7.10 (assuming you are also Django 1.10?) Copying and pasting your logging config is actually working fine for me and Django doesn't seem to be freezing up, and I see the logs. @briandeheus any way you can provide any more steps to reproduce? Django version, Python version all helpful. A Docker container would be most helpful. The most common reason I tend to see lockups is infinite recursions (a log statement that occurs in the logging code path restarts the process). The default excluded loggers should exclude all the loggers in the logging path, but that's something to consider. The fact that it's locking up on the synchronous handler is the most strange, but could also fall victim to infinite recursion problem. @daspecster if you could try to repro would also be great. |
@waprin I'll see if I can create a case. We're actually using Django 1.9 on our end. I should have mentioned that. |
Ah sorry, I got distracted and this slipped my memory. @briandeheus that would be great! Thanks! |
Hey guys, terribly sorry for the (really) late reply. I haven't been able to reproduce it with new installations, it must've been something I've done wrong. If I have any more details I'll update this ticket, I think it's best to close it for now. |
Thanks for coming back @briandeheus, sorry for the issues. |
This is probably related to #3310 so there's probably an issue lurking somewhere (though maybe fixed in some release?) that's just been hard to repro :-\ |
) Fix: GoogleCloudPlatform/python-docs-samples#2991 This test should take around 10-15 seconds to run, but every once in awhile there seems to be something causing it to take a long time.
OS:
MacOS 10.11.6
Python:
Python 2.7.10
Package:
Steps to reproduce
Your app will freeze after a few seconds. I've narrowed it down by adding some print statements to the stackdriver module:
The Worker class has some modified methods to achieve this:
I've tried both the
SyncTransport
and theBackgroundThreadTransport
but both lock up. Whether running your project in the Django development mode or using uWSGI, the end result is always the same.The text was updated successfully, but these errors were encountered: