Getting 503 Service Unavailable despite working consumer (deploy on Openshift).
See original GitHub issueI set up Hono on Openshift (precisely on Minishift) using your tutorial on this site: Eclipse Hono deployment on Openshift.
And with deployment I’ve got no problems. But then I’ve tried create a Consumer and send some telemetry data.
To create consumer I have run Maven using line:
mvn spring-boot:run -Drun.arguments=--hono.client.host=192.168.99.100,--hono.client.port=30672,--hono.client.username=consumer@HONO,--hono.client.password=verysecret
(where 192.168.99.100 is local address of Minishift).
Then, I’ve registered device, and tried to send some telemetry (using curl). Every time I’ve tried to do that, I’ve got a message:
503 Service Unavailable
Hono-Reg-Assertion: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0NzE0IiwidGVuIjoiREVGQVVMVF9URU5BTlQiLCJleHAiOjE1MDQwNDE5MTd9.NJn38zeSh7laZ5T5TRm0ZMHpAx-EVzgPPCThJpPO9cs
Retry-After: 2
Content-Type: text/plain
Content-Length: 47
resource limit exceeded, please try again later
I know that I should receive this answer at first time, but I’m receiving it every time – despite that consumer is working. I have tried sending message using mosquito too and it hadn’t throw any errors (in terminal). But there were no message in consumer at all.
I have also checked logs in Openshift pods, to see what’s happening there. Here is log, when I’m trying to send something to REST Adapter:
12:14:00.577 [vert.x-eventloop-thread-0] DEBUG o.e.hono.client.impl.HonoClientImpl - reusing existing message sender [target: telemetry/DEFAULT_TENANT, credit: 0]
12:14:00.577 [vert.x-eventloop-thread-0] DEBUG o.e.hono.client.impl.HonoClientImpl - reusing existing registration client for [DEFAULT_TENANT]
12:14:00.583 [vert.x-eventloop-thread-0] DEBUG o.e.h.c.i.AbstractRequestResponseClient - received response [correlation ID: reg-client-1, status: 200]
12:14:00.583 [vert.x-eventloop-thread-0] DEBUG o.e.h.a.h.AbstractVertxBasedHttpProtocolAdapter - Service unavailable: resource limit exceeded, please try again later
And here is log, when I’m trying to send something to MQTT Adapter:
12:10:03.685 [vert.x-eventloop-thread-0] INFO o.e.h.a.m.VertxBasedMqttProtocolAdapter - connection request from client 4714
12:10:03.686 [vert.x-eventloop-thread-0] DEBUG o.e.hono.client.impl.HonoClientImpl - creating new registration client for [DEFAULT_TENANT]
12:10:03.686 [vert.x-eventloop-thread-0] DEBUG o.e.hono.client.impl.HonoClientImpl - creating new message sender for telemetry/DEFAULT_TENANT
12:10:03.693 [vert.x-eventloop-thread-0] DEBUG o.e.h.a.m.VertxBasedMqttProtocolAdapter - connection closed with client [4714]
12:10:03.706 [vert.x-eventloop-thread-0] DEBUG o.e.h.c.i.AbstractRequestResponseClient - request response client created
12:10:03.706 [vert.x-eventloop-thread-0] DEBUG o.e.hono.client.impl.HonoClientImpl - successfully created registration client for [DEFAULT_TENANT]
12:10:03.706 [vert.x-eventloop-thread-0] DEBUG o.e.hono.client.impl.AbstractSender - sender open [Target{address='telemetry/DEFAULT_TENANT', durable=NONE, expiryPolicy=SESSION_END, timeout=0, dynamic=false, dynamicNodeProperties=null, capabilities=null}]
12:10:03.706 [vert.x-eventloop-thread-0] DEBUG o.e.hono.client.impl.HonoClientImpl - successfully created new message sender for telemetry/DEFAULT_TENANT
12:10:03.725 [vert.x-eventloop-thread-0] DEBUG o.e.h.c.i.AbstractRequestResponseClient - received response [correlation ID: reg-client-0, status: 200]
12:10:03.726 [vert.x-eventloop-thread-0] DEBUG o.e.h.a.m.VertxBasedMqttProtocolAdapter - cannot process message [client ID: 4714, topic: telemetry/DEFAULT_TENANT/4714, QoS: AT_MOST_ONCE]: no credit available for sending message
12:10:03.726 [vert.x-eventloop-thread-0] DEBUG o.e.h.a.m.VertxBasedMqttProtocolAdapter - client has already closed connection
In each of these last lines are errors. And the question is – how can I solve that problem? I would be very thankful for any answer.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top GitHub Comments
You need to use 30671. Does this work? You can see the configuration of the dispatch router here: https://github.com/eclipse/hono/blob/master/dispatchrouter/qpid/qdrouterd-with-broker.json
Ah okay - then we will use this ticket for the change in the documentation. Thanx!