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

graphite listener is broken #415

Closed
clofresh opened this issue Mar 19, 2013 · 0 comments
Closed

graphite listener is broken #415

clofresh opened this issue Mar 19, 2013 · 0 comments
Assignees

Comments

@clofresh
Copy link
Contributor

in datadog.conf:

graphite_listen_port: 17124

test script:

import socket
import struct
import pickle
import time

s = socket.socket()
s.connect(('localhost', 17124))
all_data = pickle.dumps([('test.metric', (time.time(), 1))])
size = struct.pack('!L', len(all_data))
s.sendall(size)
s.sendall(all_data)

The forwarder errors:

$ python ddagent.py
Log file is unwritable: '/var/log/datadog/forwarder.log'
2013-03-19 11:31:35,966 | INFO | dd.forwarder | root(ddagent.py:106) | Done with custom emitters
2013-03-19 11:31:35,966 | WARNING | dd.forwarder | forwarder(ddagent.py:153) | You are a Datadog user so we will send data to https://app.datadoghq.com
2013-03-19 11:31:35,969 | INFO | dd.forwarder | forwarder(ddagent.py:373) | Listening on port 17123
2013-03-19 11:31:35,969 | INFO | dd.forwarder | forwarder(ddagent.py:390) | Starting graphite listener on port 17124
2013-03-19 11:31:40,983 | DEBUG | dd.forwarder | forwarder(ddagent.py:171) | Created transaction 1
2013-03-19 11:31:40,984 | DEBUG | dd.forwarder | forwarder(ddagent.py:186) | Sending metrics to endpoint dd_url at http://localhost:9000/intake?api_key=apikey_2
2013-03-19 11:31:40,984 | ERROR | dd.forwarder | transaction(transaction.py:180) |
Traceback (most recent call last):
  File "/Users/carlo/Projects/datadog/dd-agent/transaction.py", line 178, in flush_next
    tr.flush()
  File "ddagent.py", line 201, in flush
    ca_certs=ssl_certificate
  File "/Users/carlo/Projects/datadog/tornado/tornado/httpclient.py", line 303, in __init__
    self.body = utf8(body)
  File "/Users/carlo/Projects/datadog/tornado/tornado/escape.py", line 168, in utf8
    assert isinstance(value, unicode)
AssertionError
2013-03-19 11:31:40,985 | WARNING | dd.forwarder | transaction(transaction.py:200) | Transaction 1 in error (1 error), it will be replayed after 2013-03-19 11:32:00
@ghost ghost assigned clofresh Mar 19, 2013
brettlangdon pushed a commit to brettlangdon/dd-agent that referenced this issue Mar 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant