fscarmen2 / Argo-Nezha-Service-Container

Nezha server over Argo tunnel 使用 Argo 隧道的哪吒服务端
647 stars 397 forks source link

error reading server preface: http2: frame too large #45

Closed evlon closed 1 year ago

evlon commented 1 year ago

root@9b65acb5:/app# systemctl status nezha-agent nezha-agent.service - Nezha Agent Loaded: loaded (/etc/systemd/system/nezha-agent.service, enabled) Active: active (running) root@9b65acb5:/app# systemctl stop nezha-agent
root@9b65acb5:/app# /opt/nezha/agent/nezha-agent -s data.xxxxxx.vip:443 -p xxxxxxxxxxx -d NEZHA@2023-10-16 04:23:56>> 检查更新: 0.15.6 NEZHA@2023-10-16 04:23:56>> 上报系统信息失败: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: http2: frame too large" NEZHA@2023-10-16 04:23:56>> Error to close connection ... NEZHA@2023-10-16 04:24:06>> Try to reconnect ... NEZHA@2023-10-16 04:24:06>> 上报系统信息失败: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: http2: frame too large"

evlon commented 1 year ago

申请的虚拟机都可以,fly 也可以。

不行客户端的有:koyeb ,northflank, patr。 这几个不能上报数据。

fscarmen2 commented 1 year ago

这三个平台一定是可以的,你的参数要加上 --tls

 /opt/nezha/agent/nezha-agent -s data.xxxxxx.vip:443 -p xxxxxxxxxxx --tls
evlon commented 1 year ago

这三个平台一定是可以的,你的参数要加上 --tls

 /opt/nezha/agent/nezha-agent -s data.xxxxxx.vip:443 -p xxxxxxxxxxx --tls

root@9b65acb5:/app# /opt/nezha/agent/nezha-agent -s data.xxxxxxx.vip:443 -p xNxxxx6L --tls -d NEZHA@2023-10-17 03:41:04>> 检查更新: 0.15.8 NEZHA@2023-10-17 03:41:05>> 上报系统信息失败: rpc error: code = Internal desc = server closed the stream without sending trailers NEZHA@2023-10-17 03:41:05>> Error to close connection ... NEZHA@2023-10-17 03:41:15>> Try to reconnect ... NEZHA@2023-10-17 03:41:16>> 上报系统信息失败: rpc error: code = Internal desc = server closed the stream without sending trailers NEZHA@2023-10-17 03:41:16>> Error to close connection ... ^C root@9b65acb5:/app# /opt/nezha/agent/nezha-agent -s data.xxxxx.vip:443 -p xxxxxxxxxxxxx -d
NEZHA@2023-10-17 03:41:31>> 检查更新: 0.15.8 NEZHA@2023-10-17 03:41:32>> 上报系统信息失败: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: http2: frame too large" NEZHA@2023-10-17 03:41:32>> Error to close connection ...

evlon commented 1 year ago

这三个平台一定是可以的,你的参数要加上 --tls

 /opt/nezha/agent/nezha-agent -s data.xxxxxx.vip:443 -p xxxxxxxxxxx --tls

方法正解。 已解决。

evlon commented 1 year ago

问题已经解决。