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

Eclipse Hono command line client is not able to connect to Hono on Sandbox

我正尝试按照“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)。

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 证书已过期。应该再次工作...