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

bug: App occasionally shows Wi-Fi connected ghost robots that don't actually exist on the network #5462

Closed
SyntaxColoring opened this issue Apr 21, 2020 · 1 comment
Labels
app Affects the `app` project bug robot-svcs Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience). software-investigate Our Software team needs to look into this so we can understand more about it.

Comments

@SyntaxColoring
Copy link
Contributor

Overview

The Opentrons App is occasionally haunted by ghost robots.

Current behavior

When I took this screenshot, I was connected to S1-R10 over USB. S1-R1 is a robot on a completely different network; I'm quite certain my computer couldn't possibly have heard anything from it.

Screen Shot 2020-04-21 at 4 18 28 PM

If I click S1-R1, I see this:

Screen Shot 2020-04-21 at 4 18 43 PM

Unfortunately, neither error.log nor combined.log contain any recent mention of S1-R1.

The ghost robot persists for a while, but it does eventually disappear from the list.

Steps to reproduce

This seems to happen randomly. It's not clear what causes it.

When I've noticed it happen, I've been connected to a different robot over USB.

I had been connected to the ghost robot over Wi-Fi before, along with several other robots all sharing a WLAN. That WLAN is isolated, so I'm sure my computer isn't seeing its traffic.

@SyntaxColoring SyntaxColoring added bug app Affects the `app` project software-investigate Our Software team needs to look into this so we can understand more about it. robot-svcs Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience). labels Apr 21, 2020
@SyntaxColoring SyntaxColoring changed the title bug: Robots list occasionally shows robots that don't exist on the network bug: App occasionally shows robots that don't exist on the network Apr 21, 2020
@SyntaxColoring SyntaxColoring changed the title bug: App occasionally shows robots that don't exist on the network bug: App occasionally shows Wi-Fi connected ghost robots that don't actually exist on the network Apr 21, 2020
@mcous
Copy link
Contributor

mcous commented Aug 10, 2020

Presumed fixed by #6193. Two properties of the discovery client in versions prior to 3.20 would allow this to happen:

  • All state is tracked per IP address, which could have allowed stale data from S1-R1 to sneak in if it had ever used the same IP address as S1-R10
  • The inherently faulty "your robot is advertising its IP address" logic was removed in favor of simpler logic that:
    • Tracks if a given IP address has been seen in any way (mDNS or health polling) while the app has been open
    • Notes whether a given IP address is responding with an HTTP error code or is unreachable from a networking standpoint

@mcous mcous closed this as completed Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Affects the `app` project bug robot-svcs Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience). software-investigate Our Software team needs to look into this so we can understand more about it.
Projects
None yet
Development

No branches or pull requests

2 participants