Re: Hawkbit docker image: Amqp connection refused


Mohammed Billoo <mab@...>
 

Suzuki,

It looks like my iptables were out of wack. Once I restored them to their default configuration,  I can now access the webpage.

Thanks


On Thu, Jul 9, 2020 at 3:48 AM <akihiro27.suzuki@...> wrote:

Hi Mohammed,

 

I checked a hawkbit log in my local environment and found amqp-related error messages as well as your environment.

The error messages seem to be shown periodically every 5 seconds.

But I could access the webpage at localhost:8083.

 

When I accessed it, the following messages were shown.

 

2020-07-09 06:34:05.291  INFO 1 --- [tp1510087865-14] c.vaadin.spring.server.SpringUIProvider  : Checking the application context for Vaadin UIs

2020-07-09 06:34:05.298  INFO 1 --- [tp1510087865-14] c.vaadin.spring.server.SpringUIProvider  : Found Vaadin UI [org.eclipse.hawkbit.app.MyUI]

2020-07-09 06:34:05.299  INFO 1 --- [tp1510087865-14] c.vaadin.spring.server.SpringUIProvider  : Found Vaadin UI [org.eclipse.hawkbit.app.MyLoginUI]

2020-07-09 06:34:05.759  INFO 1 --- [tp1510087865-21] c.v.spring.navigator.SpringViewProvider  : Looking up SpringViews

2020-07-09 06:34:05.771  INFO 1 --- [tp1510087865-21] c.v.spring.navigator.SpringViewProvider  : 6 SpringViews found

 

I’ll attach the complete log.

Could you compare it with yours?

 

Suzuki

 

From: cip-dev@... <cip-dev@...> On Behalf Of Mohammed Billoo
Sent: Thursday, July 9, 2020 5:53 AM
To: cip-dev@...
Subject: [cip-dev] Hawkbit docker image: Amqp connection refused

 

Hi,

 

I'm trying to follow the instructions in the README to set up a BBB and hawkbit via docker. But, I can't access the webpage at localhost:8083. When I looked in the docker logs, I saw the following:

 

2020-07-08 20:33:54.170  INFO 1 --- [           main] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [localhost:5672]
2020-07-08 20:33:54.181  INFO 1 --- [           main] o.s.a.r.l.SimpleMessageListenerContainer : Broker not available; cannot force queue declarations during start: java.net.ConnectException: Connection refused (Connection refused)
2020-07-08 20:33:54.199  INFO 1 --- [ntContainer#0-1] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [localhost:5672]
2020-07-08 20:33:54.205 ERROR 1 --- [ntContainer#0-1] o.s.a.r.l.SimpleMessageListenerContainer : Failed to check/redeclare auto-delete queue(s).

org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:62)
at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:509)
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:682)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.createConnection(ConnectionFactoryUtils.java:214)
at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:2073)
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:2047)
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:2027)
at org.springframework.amqp.rabbit.core.RabbitAdmin.getQueueProperties(RabbitAdmin.java:403)
at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.attemptDeclarations(AbstractMessageListenerContainer.java:1787)
at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.redeclareElementsIfNecessary(AbstractMessageListenerContainer.java:1768)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.initialize(SimpleMessageListenerContainer.java:1195)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1041)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at com.rabbitmq.client.impl.SocketFrameHandlerFactory.create(SocketFrameHandlerFactory.java:60)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1102)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1054)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:994)
at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:462)
... 11 common frames omitted

2020-07-08 20:33:54.208  INFO 1 --- [ntContainer#0-1] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [localhost:5672]
2020-07-08 20:33:54.208  INFO 1 --- [           main] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [localhost:5672]
2020-07-08 20:33:54.209  INFO 1 --- [           main] o.s.a.r.l.SimpleMessageListenerContainer : Broker not available; cannot force queue declarations during start: java.net.ConnectException: Connection refused (Connection refused)
2020-07-08 20:33:54.209  INFO 1 --- [ntContainer#1-1] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [localhost:5672]
2020-07-08 20:33:54.210 ERROR 1 --- [ntContainer#1-1] o.s.a.r.l.SimpleMessageListenerContainer : Failed to check/redeclare auto-delete queue(s).

org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)

 

Can anyone advise (the complete log is attached).

--

Mohammed A Billoo

Founder

MAB Labs, LLC

201-338-2022


--
Mohammed Billoo
MAB Labs, LLC
www.mab-labs.com



--
Mohammed A Billoo
Founder
MAB Labs, LLC
201-338-2022

--
Mohammed Billoo
MAB Labs, LLC
www.mab-labs.com

Join cip-dev@lists.cip-project.org to automatically receive all group messages.