question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ActiveMQ Connection Problem?

See original GitHub issue

As soon as I try to connect to ActiveMQ 5.14.5,

  activemq_connection = Connection("amqp://" + username + ":" + password + "@" + ip + ":5672//")
  activemq_connection.connect()
  activemq_publisher = activemq_connection.SimpleQueue("file")

python crashes:

Traceback (most recent call last):
  File "./send_activemq.py", line 317, in <module>
    mq_connect(server_ip,'user','password')
  File "./send_activemq.py", line 268, in mq_connect
    activemq_connection.connect()
  File "/usr/local/lib/python2.7/dist-packages/kombu/connection.py", line 261, in connect
    return self.connection
  File "/usr/local/lib/python2.7/dist-packages/kombu/connection.py", line 802, in connection
    self._connection = self._establish_connection()
  File "/usr/local/lib/python2.7/dist-packages/kombu/connection.py", line 757, in _establish_connection
    conn = self.transport.establish_connection()
  File "/usr/local/lib/python2.7/dist-packages/kombu/transport/pyamqp.py", line 130, in establish_connection
    conn.connect()
  File "/usr/local/lib/python2.7/dist-packages/amqp/connection.py", line 300, in connect
    self.drain_events(timeout=self.connect_timeout)
  File "/usr/local/lib/python2.7/dist-packages/amqp/connection.py", line 464, in drain_events
    return self.blocking_read(timeout)
  File "/usr/local/lib/python2.7/dist-packages/amqp/connection.py", line 468, in blocking_read
    frame = self.transport.read_frame()
  File "/usr/local/lib/python2.7/dist-packages/amqp/transport.py", line 247, in read_frame
    payload = read(size)
  File "/usr/local/lib/python2.7/dist-packages/amqp/transport.py", line 385, in _read
    raise IOError('Socket closed')
IOError: Socket closed

AMQP tells me this:

 WARN | Connection attempt from non AMQP v1.0 client. AMQP,1,1,0,9
 WARN | Transport Connection to: tcp://IP:59230 failed: org.apache.activemq.transport.amqp.AmqpProtocolException: Connection from client using unsupported AMQP attempted
 WARN | Transport Connection to: tcp://IP:36818 failed: java.net.SocketException: Connection reset

qpid does also not work as transport… How can I get this working? Thanks a lot 😃!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
thedrowcommented, Sep 24, 2017

Yup, that’s it. I’m going to close this issue since it’s not a bug.

1reaction
thedrowcommented, Jul 25, 2017

Could this be an authentication error?

Read more comments on GitHub >

github_iconTop Results From Across the Web

I am not receiving any messages, what is wrong - ActiveMQ
A very common gotcha when working with JMS is forgetting to start the JMS connection, creating a consumer and not having it receive...
Read more >
ActiveMQ Dead Connection issue - apache - Stack Overflow
After some usage am facing error as max connections exceeded in activeMQ,i have gone through activemq console and found a lot of the...
Read more >
Troubleshooting: Amazon MQ for ActiveMQ
Use the information in this section to help you diagnose and resolve common issues you might encounter when working with Amazon MQ for...
Read more >
ActiveMQ cannot connect with useJMX = true with master ...
Steps to Reproduce the Problem. Setup two hosts (master + slave in "Connection" - Queue Manager: Apache ActiveMQ
Read more >
How to fix ActiveMQ transport issue? - IBM
The HPC use ActiveMQ 5.4.2, sometimes it generates the below error message in ActiveMq logs ... INFO | Connector openwire Started | org.apache.activemq.broker....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found