-
Notifications
You must be signed in to change notification settings - Fork 258
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
circusd-stats chokes on unix sockets #415
Comments
Thanks for this feedback. I guess the safest thing to do is to open stdout/stderr by default for statsd and other processes, and have an option to close them if wanted |
tarekziade
added a commit
that referenced
this issue
May 27, 2013
tarekziade
added a commit
that referenced
this issue
May 27, 2013
we found the bug. The stats streamer chokes on unix sockets because it expects regular sockets here: https://github.com/mozilla-services/circus/blob/master/circus/stats/streamer.py#L116 |
This was referenced May 27, 2013
Thanks a lot! Works for me now, too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
circusd-stats is normally started with stdout/stderr closed now, but will try to log with level INFO by default. This causes at least one startup message to be issued. In the current (0.8) implementation, this fails on python 2.7.3 (works fine on 2.7.5). The process exits as soon as it is started, causing it to flatter.
I checked, and between 2.7.3 and 2.7.5 the logging module got a couple of try: blocks around flushing and closing file descriptors. I have not yet debugged this problem fully. As a work around and to confirm the cause of the problem, setting the log-level to CRITICAL by default, it works fine.
I might do some work on this later, just wanted to get the word out as quick as possible.
The text was updated successfully, but these errors were encountered: