unable to connect to running server

1,098 views
Skip to first unread message

Daniel Butler

unread,
May 23, 2019, 3:45:45 AM5/23/19
to rabbitmq-users
hi , bit further forward thanks...next...

docker run -d --hostname localhost --name rabbitmq rabbitmq:3


(looks to be up)


from server logs

##  ##

  ##  ##      RabbitMQ 3.7.14. Copyright (C) 2007-2019 Pivotal Software, Inc.

  ##########  Licensed under the MPL.  See https://www.rabbitmq.com/

  ######  ##

  ##########  Logs: <stdout>


              Starting broker...

2019-05-23 07:35:08.144 [info] <0.212.0> 

 Starting RabbitMQ 3.7.14 on Erlang 21.3.8.1

 Copyright (C) 2007-2019 Pivotal Software, Inc.

 Licensed under the MPL.  See https://www.rabbitmq.com/

2019-05-23 07:35:08.150 [info] <0.212.0> 

 node           : rabbit@localhost

 home dir       : /var/lib/rabbitmq

 config file(s) : /etc/rabbitmq/rabbitmq.conf

 cookie hash    : eO270jOyaQL0Gko/Dql3Aw==

 log(s)         : <stdout>

 database dir   : /var/lib/rabbitmq/mnesia/rabbit@localhost


...


2019-05-23 07:35:10.134 [info] <0.486.0> started TCP listener on [::]:5672

2019-05-23 07:35:10.134 [info] <0.212.0> Running boot step direct_client defined by app rabbit

2019-05-23 07:35:10.186 [info] <0.8.0> Server startup complete; 0 plugins started.


from client

2019-05-23 08:36:52.203  INFO 878 --- [nio-8080-exec-3] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [localhost:5672]
2019-05-23 08:36:52.217 ERROR 878 --- [nio-8080-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)] with root cause


Is it OK to use localhost, I assume so ?
[::]
Would you suggest that it related to SSL or CORS configuration ?

thanks
dan



Daniel Butler

unread,
May 23, 2019, 3:01:16 PM5/23/19
to rabbitmq-users
is this question deemed too irrelevant for this blog (sorry if it is the case you are short on time) ?

Daniel Butler

unread,
May 26, 2019, 11:38:22 AM5/26/19
to rabbitmq-users
https://github.com/moby/moby/issues/22753

The above link suggests problems with docker on mac os - it certainly look similar to what I have experienced trying your embedded product.

Will move to try it on windows next.


On Thursday, 23 May 2019 08:45:45 UTC+1, Daniel Butler wrote:

Michael Klishin

unread,
Jun 30, 2019, 7:54:24 PM6/30/19
to rabbitmq-users
"Connection refused" means client's TCP connection was rejected. There can be a great number of reasons for that, see [1].


--
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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/11fecfaf-8cba-4910-a249-f41981da0a0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages