Cannot connect to RabbitMQ server after upgrading .net RabbitMQ client from 3.6.2 to 3.6.3

5,087 views
Skip to first unread message

Kyu

unread,
Jul 25, 2016, 12:21:06 AM7/25/16
to rabbitmq-users
Hi,

I'm runing a rabbitMQ 3.6.3 server on erlang 18.3 on windows 7 local machine. I created a c# client using rabbitMQ.client 3.6.2 and it ran just fine, I discovered that there is a bug regarding ClientProviderName was removed during connection creation so i update the package using Nuget to 3.6.3 and the client cannot connect to the server anymore saying "connection.start was never received, likely due to a network timeout". Stacktrace is shown as below. The problem is gone after I rollback the client to 3.6.2. I don't know what's wrong or what I might have missed. And this is not just happening at my local machine but remote machines as well.

   at RabbitMQ.Client.Framing.Impl.Connection.StartAndTune()
   at RabbitMQ.Client.Framing.Impl.Connection.Open(Boolean insist)
   at RabbitMQ.Client.Framing.Impl.Connection..ctor(IConnectionFactory factory, Boolean insist, IFrameHandler frameHandler, String clientProvidedName)
   at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.Init(AmqpTcpEndpoint endpoint)
   at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.Init(IList`1 endpoints)
   at RabbitMQ.Client.ConnectionFactory.CreateConnection(IList`1 endpoints, String clientProvidedName)


Cheers,
Kyu

Karl Nilsson

unread,
Jul 25, 2016, 3:40:28 AM7/25/16
to rabbitm...@googlegroups.com
Hi,

Could you provide a small code sample that reproduces the problem?

Cheers
Karl

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Karl Nilsson

Staff Software Engineer, Pivotal/RabbitMQ

Kyu Rutchapon

unread,
Jul 25, 2016, 4:14:52 AM7/25/16
to rabbitm...@googlegroups.com
Hi Karl, 

it freezes at  _con = _cf.CreateConnection();

Cheers,
Kyu

=========
using RabbitMQ.Client;
using RabbitMQ.Client.Events;

namespace TestingSolution.BlockingCollection
{
    public class RabbitListener
    {
        private ConnectionFactory _cf;
        private IConnection _con;
        private IModel _channel;
        private EventingBasicConsumer _consumer;

        public RabbitListener()
        {
            _cf = new ConnectionFactory();

            _cf.HostName = "localhost";
            _cf.VirtualHost = "/";
            _cf.Port = 15672;
            _cf.UserName = "aaaa";
            _cf.Password = "aaaa123";
            _cf.AutomaticRecoveryEnabled = true;

            // freeze here
            _con = _cf.CreateConnection();

            _channel = _con.CreateModel();

            _consumer = new EventingBasicConsumer(_channel);
            _consumer.Received += OnMessageReceived;
            _channel.BasicQos(0, 3, false);
            _channel.BasicConsume("SomeQName", false, _consumer);


        }

        public void OnMessageReceived(object ch, BasicDeliverEventArgs ea)
        {
            //WorkerQueue.RabbitMessage.Add(ea.RoutingKey);
            _channel.BasicAck(ea.DeliveryTag, false);
        }
    }
}

--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/NZMAYvURxB4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.

Karl Nilsson

unread,
Jul 25, 2016, 4:57:02 AM7/25/16
to rabbitm...@googlegroups.com
Hi,

That looks like fairly standard connection code. Can I just double check that you are running RabbitMQ on the non standard port 15672 and not on the standard 5672? 15672 is normally used for the management interface. If so I assume you are either not running the management interface or running the it on a different port?

Cheers

Karl

Kyu Rutchapon

unread,
Jul 25, 2016, 5:26:26 AM7/25/16
to rabbitm...@googlegroups.com
Hi,

Thank you, I mistakenly used the wrong port. The management interface is running on 15672 and the Rabbit MQ is on 5672. But client 3.6.2 can connect to management interface port while 3.6.3 cannot. Anyway, it works now using 5672.

Cheers,
Kyu
Reply all
Reply to author
Forward
0 new messages