Eclipse Hono命令行客户端无法连接到沙盒上的Hono

问题描述

我正在尝试使用“ Eclipse Hono入门”中所述的Hono沙盒。

我遵循了所有步骤,但是在启动命令行客户端时,我无法连接到服务器:

12:43:22.465 [vert.x-eventloop-thread-0] INFO  o.e.h.client.impl.HonoConnectionImpl - max 
number of attempts [5] to re-connect to server [hono.eclipseprojects.io:15672,role: unkNown] have been made,giving up

12:43:22.489 [vert.x-eventloop-thread-0] INFO  o.e.h.client.impl.HonoConnectionImpl - stopping connection attempt to server [hono.eclipseprojects.io:15672,role: unkNown] due to terminal 
error

io.vertx.core.VertxException: disconnected

即使通过以下方式启动客户端:

java -jar hono-cli-*-exec.jar --hono.client.host=hono.eclipseprojects.io --hono.client.port=15672 --hono.client.username=consumer@HONO --hono.client.password=verysecret --tenant.id=DEFAULT_TENANT --device.id=4711 --spring.profiles.active=receiver

不起作用。据我了解,这意味着网络存在问题。验证我可以访问所有必要的端口是否成功:

curl -sIX GET http://hono.eclipseprojects.io:28080/v1/tenants/DEFAULT_TENANT

HTTP/1.1 200 OK
etag: ed4151c3-e694-460e-a21d-c68d5e40411e
content-type: application/json; charset=utf-8
content-length: 16

而且我能够ping通地址(hono.eclipseprojects.io)并访问端口(4711)。

  • 我正在研究RaspBerry 3B +
  • 我使用的JDK版本:
java -version 
openjdk version "11.0.9" 2020-10-20
OpenJDK Runtime Environment (build 11.0.9+11-post-Raspbian-1deb10u1)
OpenJDK Server VM (build 11.0.9+11-post-Raspbian-1deb10u1,mixed mode)

我非常感谢任何建议或想法。

非常感谢!

解决方法

感谢您的举报,我们与沙盒一起使用的Let's Encrypt证书已过期。应该再次工作...