Advertisement
Guest User

carbon/graphite errors

a guest
Apr 10th, 2014
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. I am having an issue with graphite/carbon.
  2.  
  3. I am seeing errors in the webapp and carbon-cache log. I am using carbon-relay to relay to two local instances of carbon cache. I am running version 0.9.10.
  4.  
  5. carbon-relay.conf contains the following:
  6. DESTINATIONS = 127.0.0.1:2200:a, 127.0.0.1:2201:b
  7. RELAY_METHOD = consistent-hashing
  8. REPLICATION_FACTOR = 1
  9.  
  10. and local_settings.py has:
  11. CARBONLINK_HOSTS = ["127.0.0.1:7000:a", "127.0.0.1:7001:b"]
  12.  
  13. FWIW, CARBONLINK_HOSTS was misconfigured, pointing at the pickle receiver ports, which was causing connection lost errors in the webapp logs. Fixed that, then I stated getting errors shown below. I am not sure if this is a hash ring issue, or maybe an issue due to old code that would be remedied by running new code. Either way, I would like to get this optimized.
  14.  
  15. ----Begin Log Output----
  16.  
  17. /opt/graphite/storage/log/carbon-cache/carbon-cache-a/console.log:
  18.  
  19. 10/04/2014 00:24:36 :: Unhandled Error
  20. Traceback (most recent call last):
  21. File "/opt/graphite/local/lib/python2.7/site-packages/twisted/python/log.py", line 84, in callWithLogger
  22. return callWithContext({"system": lp}, func, *args, **kw)
  23. File "/opt/graphite/local/lib/python2.7/site-packages/twisted/python/log.py", line 69, in callWithContext
  24. return context.call({ILogContext: newCtx}, func, *args, **kw)
  25. File "/opt/graphite/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
  26. return self.currentContext().callWithContext(ctx, func, *args, **kw)
  27. File "/opt/graphite/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
  28. return func(*args,**kw)
  29. --- <exception caught here> ---
  30. File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 581, in _doReadOrWrite
  31. why = selectable.doRead()
  32. File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 199, in doRead
  33. rval = self.protocol.dataReceived(data)
  34. File "/opt/graphite/local/lib/python2.7/site-packages/twisted/protocols/basic.py", line 755, in dataReceived
  35. self.stringReceived(packet)
  36. File "/opt/graphite/lib/carbon/protocols.py", line 100, in stringReceived
  37. for (metric, datapoint) in datapoints:
  38. exceptions.ValueError: too many values to unpack
  39.  
  40. ------
  41.  
  42. graphite1:/opt/graphite/storage/log/webapp/exception.log:
  43.  
  44. Thu Apr 10 00:26:27 2014 :: Exception Caught
  45. Traceback (most recent call last):
  46. File "/opt/graphite/webapp/graphite/render/datalib.py", line 226, in fetchData
  47. cachedResults = CarbonLink.query(dbFile.real_metric)
  48. File "/opt/graphite/webapp/graphite/render/datalib.py", line 135, in query
  49. results = self.send_request(request)
  50. File "/opt/graphite/webapp/graphite/render/datalib.py", line 161, in send_request
  51. result = self.recv_response(conn)
  52. File "/opt/graphite/webapp/graphite/render/datalib.py", line 173, in recv_response
  53. len_prefix = recv_exactly(conn, 4)
  54. File "/opt/graphite/webapp/graphite/render/datalib.py", line 188, in recv_exactly
  55. raise Exception("Connection lost")
  56. Exception: Connection lost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement