Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection timed out: Connecting to meshtasticd on Linux #453

Open
xstrex opened this issue Feb 27, 2024 · 3 comments
Open

Connection timed out: Connecting to meshtasticd on Linux #453

xstrex opened this issue Feb 27, 2024 · 3 comments
Assignees
Labels
bug Something isn't working high priority This issue needs to be addressed quickly

Comments

@xstrex
Copy link

xstrex commented Feb 27, 2024

Running a Raspberry Pi 5, with Waveshare LoRa hat. meshtasticd service is up and running, and talking to radio.

Running MNMC 0.3 on a Mac.

When running MNMC and choosing TCP, put in the IP of the PI & 4403 for the port. Hit connect, and receive the following form the system journal:

Feb 26 18:46:59 DietPi meshtasticd[723]: INFO  | ??:??:?? 15508 [ApiServer] Incoming wifi connection
Feb 26 18:46:59 DietPi meshtasticd[723]: INFO  | ??:??:?? 15508 [ServerAPI] Client wants config, nonce=3712423828
Feb 26 18:46:59 DietPi meshtasticd[723]: INFO  | ??:??:?? 15508 [ServerAPI] Starting API client config
Feb 26 18:46:59 DietPi meshtasticd[723]: INFO  | ??:??:?? 15508 [ServerAPI] getFromRadio=STATE_SEND_MY_INFO
Feb 26 18:46:59 DietPi meshtasticd[723]: DEBUG | ??:??:?? 15508 [ServerAPI] encoding toPhone packet to phone variant=3, 12 bytes
Feb 26 18:46:59 DietPi meshtasticd[723]: INFO  | ??:??:?? 15508 [ServerAPI] getFromRadio=STATE_SEND_METADATA
Feb 26 18:46:59 DietPi meshtasticd[723]: DEBUG | ??:??:?? 15508 [ServerAPI] encoding toPhone packet to phone variant=13, 29 bytes
Feb 26 18:46:59 DietPi meshtasticd[723]: INFO  | ??:??:?? 15508 [ServerAPI] getFromRadio=STATE_SEND_NODEINFO
Feb 26 18:46:59 DietPi meshtasticd[723]: INFO  | ??:??:?? 15508 [ServerAPI] nodeinfo: num=0xddad002e, lastseen=0, id=!ddad002e, name=Tnix Router

But the MNMC client times out, and never connects.

If I telnet to the same IP & port it connects (but obviously doesn't do anything)

telnet 192.168.2.110 4403
Trying 192.168.2.110...
Connected to 192.168.2.110.
Escape character is '^]'.

If I were to guess the client isn't waiting long enough to connect to the service, or not receiving the correct information from the service.

Happy to provide logs, or anything necessary. Thanks.

@ajmcquilkin
Copy link
Member

This looks like a config timeout issue, where it takes longer to connect to a TCP node than a serial node. #456 bumps this timing to 15s, although at some point I want to make this user-configurable.

@ajmcquilkin ajmcquilkin self-assigned this Mar 7, 2024
@ajmcquilkin ajmcquilkin added bug Something isn't working high priority This issue needs to be addressed quickly labels Mar 7, 2024
@xstrex
Copy link
Author

xstrex commented Aug 22, 2024

It's been 6mo, any progress on this?

@garthvh
Copy link
Member

garthvh commented Aug 23, 2024

It's been 6mo, any progress on this?

You are welcome to dig in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority This issue needs to be addressed quickly
Projects
None yet
Development

No branches or pull requests

3 participants