graphite-project / carbon

Carbon is one of the components of Graphite, and is responsible for receiving metrics over the network and writing them down to disk using a storage backend.
http://graphite.readthedocs.org/
Apache License 2.0
1.51k stars 490 forks source link

carbon and rabbitmq issue #863

Closed 5x3 closed 4 years ago

5x3 commented 5 years ago

debian 9.9 installed from pip with virtualenv carbon cant connect to rabbit creds are right. please help to resolve.

(graphite) root@somename-vps681206:~# /opt/graphite/bin/carbon-cache.py start 
Starting carbon-cache (instance a)
(graphite) root@somename-vps681206:~# 
==> /var/log/rabbitmq/rabbit@somename-vps681206.log <==

=INFO REPORT==== 30-Aug-2019::16:40:21 ===
accepting AMQP connection <0.6408.0> (127.0.0.1:56486 -> 127.0.0.1:5672)

==> console.log <==
30/08/2019 16:40:21 :: Using sorted write strategy for cache
30/08/2019 16:40:21 :: Enabling Whisper fallocate support
30/08/2019 16:40:21 :: /opt/graphite/conf/storage-aggregation.conf not found or wrong perms, ignoring.
30/08/2019 16:40:21 :: twistd 19.7.0 (/opt/graphite/bin/python 2.7.13) starting up.
30/08/2019 16:40:21 :: reactor class: twisted.internet.epollreactor.EPollReactor.
30/08/2019 16:40:21 :: ServerFactory starting on 7002
30/08/2019 16:40:21 :: Starting factory <twisted.internet.protocol.ServerFactory instance at 0x7fc74bad40e0>
30/08/2019 16:40:21 :: Installing SIG_IGN for SIGHUP
30/08/2019 16:40:21 :: CarbonReceiverFactory starting on 2003
30/08/2019 16:40:21 :: Starting factory <carbon.protocols.CarbonReceiverFactory instance at 0x7fc74bb42b00>
30/08/2019 16:40:21 :: CarbonReceiverFactory starting on 2004
30/08/2019 16:40:21 :: Starting factory <carbon.protocols.CarbonReceiverFactory instance at 0x7fc74bda5560>
30/08/2019 16:40:21 :: Starting factory <carbon.amqp_listener.AMQPReconnectingFactory instance at 0x7fc74b4b6098>
30/08/2019 16:40:21 :: Unhandled error in Deferred:
30/08/2019 16:40:21 :: Unhandled Error
Traceback (most recent call last):
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 75, in invoke
    self.outgoing.put(frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1872, in put
    self.waiting.pop(0).callback(obj)
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 460, in callback
    self._startRunCallbacks(result)
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 375, in writer
    self.send_frame(frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 410, in send_frame
    FrameReceiver.send_frame(self, frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 143, in send_frame
    data = self._pack_frame(frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 152, in _pack_frame
    frame.payload.encode(c)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/connection.py", line 88, in encode
    c.encode(field.type, arg)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 88, in encode
    getattr(self, "encode_" + field_type)(field_value)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 177, in encode_longstr
    self.encode_table(s)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 212, in encode_table
    codec.encode_long(value)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 123, in encode_long
    self.pack("!L", o)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 76, in pack
    self.write(pack(fmt, *args))
struct.error: 'L' format requires 0 <= number <= 4294967295

==> /var/log/rabbitmq/rabbit@somename-vps681206.log <==

=ERROR REPORT==== 30-Aug-2019::16:40:31 ===
closing AMQP connection <0.6408.0> (127.0.0.1:56486 -> 127.0.0.1:5672):
{handshake_timeout,frame_header}

==> console.log <==
30/08/2019 16:40:31 :: <twisted.internet.tcp.Connector instance at 0x7fc74b4d1b90 disconnected IPv4Address(type='TCP', host='127.0.0.1', port=5672)> will retry in 2 seconds
30/08/2019 16:40:31 :: Stopping factory <carbon.amqp_listener.AMQPReconnectingFactory instance at 0x7fc74b4b6098>

==> /var/log/rabbitmq/rabbit@somename-vps681206.log <==

=INFO REPORT==== 30-Aug-2019::16:40:33 ===
accepting AMQP connection <0.6522.0> (127.0.0.1:58348 -> 127.0.0.1:5672)

==> console.log <==
30/08/2019 16:40:33 :: Starting factory <carbon.amqp_listener.AMQPReconnectingFactory instance at 0x7fc74b4b6098>
30/08/2019 16:40:33 :: Unhandled error in Deferred:
30/08/2019 16:40:33 :: Unhandled Error
Traceback (most recent call last):
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 75, in invoke
    self.outgoing.put(frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1872, in put
    self.waiting.pop(0).callback(obj)
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 460, in callback
    self._startRunCallbacks(result)
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 375, in writer
    self.send_frame(frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 410, in send_frame
    FrameReceiver.send_frame(self, frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 143, in send_frame
    data = self._pack_frame(frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 152, in _pack_frame
    frame.payload.encode(c)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/connection.py", line 88, in encode
    c.encode(field.type, arg)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 88, in encode
    getattr(self, "encode_" + field_type)(field_value)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 177, in encode_longstr
    self.encode_table(s)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 212, in encode_table
    codec.encode_long(value)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 123, in encode_long
    self.pack("!L", o)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 76, in pack
    self.write(pack(fmt, *args))
struct.error: 'L' format requires 0 <= number <= 4294967295

==> /var/log/rabbitmq/rabbit@somename-vps681206.log <==

=ERROR REPORT==== 30-Aug-2019::16:40:43 ===
closing AMQP connection <0.6522.0> (127.0.0.1:58348 -> 127.0.0.1:5672):
{handshake_timeout,frame_header}

==> console.log <==
30/08/2019 16:40:43 :: <twisted.internet.tcp.Connector instance at 0x7fc74b4d1b90 disconnected IPv4Address(type='TCP', host='127.0.0.1', port=5672)> will retry in 2 seconds
30/08/2019 16:40:43 :: Stopping factory <carbon.amqp_listener.AMQPReconnectingFactory instance at 0x7fc74b4b6098>

==> /var/log/rabbitmq/rabbit@somename-vps681206.log <==

=INFO REPORT==== 30-Aug-2019::16:40:45 ===
accepting AMQP connection <0.6622.0> (127.0.0.1:60110 -> 127.0.0.1:5672)

==> console.log <==
30/08/2019 16:40:45 :: Starting factory <carbon.amqp_listener.AMQPReconnectingFactory instance at 0x7fc74b4b6098>
30/08/2019 16:40:45 :: Unhandled error in Deferred:
30/08/2019 16:40:45 :: Unhandled Error
Traceback (most recent call last):
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 75, in invoke
    self.outgoing.put(frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1872, in put
    self.waiting.pop(0).callback(obj)
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 460, in callback
    self._startRunCallbacks(result)
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/opt/graphite/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 375, in writer
    self.send_frame(frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 410, in send_frame
    FrameReceiver.send_frame(self, frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 143, in send_frame
    data = self._pack_frame(frame)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/protocol.py", line 152, in _pack_frame
    frame.payload.encode(c)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/connection.py", line 88, in encode
    c.encode(field.type, arg)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 88, in encode
    getattr(self, "encode_" + field_type)(field_value)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 177, in encode_longstr
    self.encode_table(s)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 212, in encode_table
    codec.encode_long(value)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 123, in encode_long
    self.pack("!L", o)
  File "/opt/graphite/local/lib/python2.7/site-packages/txamqp/codec.py", line 76, in pack
    self.write(pack(fmt, *args))
struct.error: 'L' format requires 0 <= number <= 4294967295

(graphite) root@somename-vps681206:~# 
(graphite) root@somename-vps681206:~# 
(graphite) root@somename-vps681206:~# fg
tail -f /var/log/rabbitmq/rabbit@somename-vps681206.log console.log
^C
(graphite) root@somename-vps681206:~# 
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.