zhaojh329 / rttys

Access your device's terminal from anywhere via the web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Receive error when trying to attach to device: msgTypeLogin: invalid

mfoxworthy opened this issue · comments

commented

Environment

rtty

  • arch: ipq4018
  • os: OpenWrt
  • version: 21.02.1

rttys

  • arch: x86
  • os: Ubuntu
  • version: 20.04

Description

I am getting an error that forces client to disconnect.

Server side:

2022-01-27T03:00:20Z |INFO| main.go:47 |Go Version: go1.17.1
2022-01-27T03:00:20Z |INFO| main.go:48 |Go OS/Arch: linux/amd64
2022-01-27T03:00:20Z |INFO| main.go:50 |Rttys Version: 4.0.0
2022-01-27T03:00:20Z |INFO| main.go:56 |Git Commit: 4548689
2022-01-27T03:00:20Z |INFO| main.go:60 |Build Time: 2021-09-22T09:38:32+0000
2022-01-27T03:00:20Z |INFO| device.go:387 |Listen device on: :5912 SSL off
2022-01-27T03:00:20Z |INFO| http.go:185 |Automatically select an available port for http proxy
2022-01-27T03:00:20Z |INFO| http.go:195 |Listen http proxy on: [::]:45271
2022-01-27T03:00:20Z |INFO| api.go:626 |Listen user on: :5913 SSL off
2022-01-27T03:00:20Z |DEBU| device.go:400 |Device '72.220.176.244:38646' connected
2022-01-27T03:00:20Z |INFO| broker.go:90 |Device '483C412477F' registered, proto 57
2022-01-27T03:00:43Z |INFO| broker.go:112 |New session: 8f0bb665af4bebfcb5609b6364f133a8
2022-01-27T03:00:43Z |ERRO| device.go:242 |msgTypeLogin: invalid
2022-01-27T03:00:43Z |DEBU| device.go:139 |Device '72.220.176.244:38646' disconnected
2022-01-27T03:00:43Z |INFO| broker.go:143 |Delete session: 8f0bb665af4bebfcb5609b6364f133a8
2022-01-27T03:00:43Z |INFO| broker.go:147 |Device '483C412477F' unregistered
2022-01-27T03:00:48Z |DEBU| device.go:400 |Device '72.220.176.244:38648' connected
2022-01-27T03:00:48Z |INFO| broker.go:90 |Device '483C412477F' registered, proto 57

Client Side:

Thu Jan 27 03:05:05 2022 daemon.info rtty: (rtty.c:195) new tty: 0
Thu Jan 27 03:05:05 2022 daemon.info rtty: (rtty.c:379) socket closed by server
Thu Jan 27 03:05:05 2022 daemon.info rtty: (rtty.c:61) delete tty: 0
Thu Jan 27 03:05:10 2022 daemon.err rtty: (rtty.c:448) rtty reconnecting..

commented

I solved the problem with an upgrade to the client.