luna icon indicating copy to clipboard operation
luna copied to clipboard

Can't remove Host using the context menu.

Open Zelaf opened this issue 8 years ago • 6 comments

  • Luna Version: Luna 0.7.0-rc7
  • nVidia GeForce Experience Version: 3.4.0.70
  • Moonlight Embedded Version: Moonlight Embedded 2.2.2 (EMBEDDED;PI)
  • OSMC Version: 17.02.2

Expected Behaviour: To remove the Host so I can re-add it (I reinstalled Windows 10 and need to add it again).

Actual Behaviour: I get the "click noise" but nothing happens, the context menu doesn't go away, the host doesn't get removed and the context menu stays there until get back out of it.

Zelaf avatar Mar 20 '17 13:03 Zelaf

@Zelaf I'll have a look at this as soon as I can. As a workaround, delete the host file in Luna's addon data dir (usually: /home/osmc/.kodi/userdata/addon_data/script.luna/.storage). You should be able to pair again afterwards.

wackerl91 avatar Mar 22 '17 17:03 wackerl91

Is this confirmed? Does it happen for you as well or just me?

Zelaf avatar Mar 24 '17 00:03 Zelaf

Is this confirmed? Does it happen for you as well or just me?

Didn't have time to try this :( During remove an unpair event is sent to GFE, which might fail if the host IP address is not reachable anymore or GFE doesn't respond to the payload (for various reasons), thus cancelling out the actual remove operation. Removing hosts should always work, even if the host itself isn't reachable, so I might just need to make this more robust (i.e. even if unpairing the host fails, it should still be removed alongside any files attributed to that host, like certs, etc.). Again, need to have a proper look at this as soon as I can find some time (and when I'm able to reboot my desktop PC, as it's currently doing some long-running calculations :/)

wackerl91 avatar Mar 27 '17 08:03 wackerl91

This is working.

Just remove rm -rf /home/osmc/.kodi/userdata/addon_data/script.luna/host and you ready to pair again. You do not need to type the pair code again. "Already Paired" and you able to run game stream.

BoBBer446 avatar May 01 '17 13:05 BoBBer446

@BoBBer446 I know, @wackerl91already stated this :)

Zelaf avatar May 01 '17 13:05 Zelaf

Just wanted to confirm that I've had the same issue too, you simply cannot remove a host from the context menu even if the host system is online and connected to the network.

Doing as @wackerl91 stated is a quick workaround;

rm -rf /home/osmc/.kodi/userdata/addon_data/script.luna/host

hemiipatu avatar May 22 '17 21:05 hemiipatu