nerves-hub / nerves_hub_web

Manage firmware updates for Nerves devices
https://nerves-hub.org/
Apache License 2.0
193 stars 69 forks source link

Device unable to connect to NervesHub #1569

Closed BryanLeong closed 1 month ago

BryanLeong commented 1 month ago

Describe the bug

Devices using shared secret auth are not able to connect to NervesHub from 1fba01e onwards (tagged docker image, probably not the exact commit).

The last version where devices are able to connect is bd1847c.

To Reproduce Steps to reproduce the behavior:

  1. Set up shared secret auth
  2. Deploy NervesHub 1fba01e

Expected behavior

Devices connecting with shared secret auth should be able to connect and come online.

Screenshots

In the web interface, "seen" keeps getting updated to "now", but the device never comes online: image

The device is stuck in a cycle trying to join the channel but getting an error after: image

Last working version for me (bd1847c): image

Additional context

BryanLeong commented 1 month ago

Oops, nevermind. Just tried the latest tagged release and the issue seems to have been fixed 😅

joshk commented 1 month ago

Thanks for creating this detailed issue.

Funnily enough we discovered this issue yesterday and fixed it with https://github.com/nerves-hub/nerves_hub_web/commit/c19a63528769a89c2933e0422583e5bfbe421428

Sorry for the issues you ran into.

As a side question, would you be interested in trying out NervesCloud? (hosted NervesHub)

BryanLeong commented 1 month ago

Would have been interested a few weeks back when I was still setting up infra, but I think I've got it sorted now.

Appreciate the offer though 😄