helium/gateway-rs

Attempts to use incorrect port `8084` for router

Closed this issue · 2 comments

Hello,

I've noticed something strange having started to test a sensor node device. An initial join connection looks like this

Sat Jul  9 07:52:04 2022 daemon.info helium_gateway[14147]:  WARN failed to connect state channel: Service(Rpc(Status { code: Unavailable, message: "error trying to connect: tcp connect error: Connection refused (os error 146)", source: Some(tonic::transport::Error(Transport, hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 146, kind: ConnectionRefused, message: "Connection refused" })))) })), oui: 33, uri: http://54.183.75.77:8084/, pubkey: 112rxD21cKjkbL9aix86GR3S5DZ7VqFkqv9HiDxAKSiG9eE8EJw6, module: router

Notice it is trying http://54.183.75.77:8084, however, when the gateway service runs an update, it gets the right port as http://54.183.75.77:8080.

I have to manually restart the gateway service multiple times till it figures this out, here's when it does work

Sat Jul  9 07:53:21 2022 daemon.info helium_gateway[18968]:  INFO new packet forwarder client: AC:1F:xxx0, 127.0.0.1:53385, module: gateway
Sat Jul  9 07:53:31 2022 daemon.info helium_gateway[18968]:  INFO uplink @3107772576 us, 923.20 MHz, Ok(DataRate(SF10, BW125)), snr: 13, rssi: -79, len: 23 from AC:1F:xxx, module: gateway
Sat Jul  9 07:53:31 2022 daemon.info helium_gateway[18968]:  INFO connected state channel, oui: 33, uri: http://54.183.75.77:8080/, pubkey: 112rxD21cKjkbL9aix86GR3S5DZ7VqFkqv9HiDxAKSiG9eE8EJw6, module: router
Sat Jul  9 07:53:31 2022 daemon.info helium_gateway[18968]:  INFO received banner (ignored), sc_id: RSBOUkyWBM44pKKaeZPwaJNVtCJC4Ncursc0NUrxUcs, oui: 33, uri: http://54.183.75.77:8080/, pubkey: 112rxD21cKjkbL9aix86GR3S5DZ7VqFkqv9HiDxAKSiG9eE8EJw6, module: router
Sat Jul  9 07:53:32 2022 daemon.info helium_gateway[18968]:  INFO accepting new state channel, sc_id: RSBOUkyWBM44pKKaeZPwaJNVtCJC4Ncursc0NUrxUcs, oui: 33, uri: http://54.183.75.77:8080/, pubkey: 112rxD21cKjkbL9aix86GR3S5DZ7VqFkqv9HiDxAKSiG9eE8EJw6, module: router
Sat Jul  9 07:53:32 2022 daemon.info helium_gateway[18968]:  INFO connecting to gateway state channel updates, oui: 33, uri: http://54.183.75.77:8080/, pubkey: 112rxD21cKjkbL9aix86GR3S5DZ7VqFkqv9HiDxAKSiG9eE8EJw6, module: router
Sat Jul  9 07:53:33 2022 daemon.info helium_gateway[18968]:  INFO rx1 downlink @3112772576 us, 923.20 MHz, DataRate(SF10, BW125), len: 17 via AC:1F:09:xxx, module: gateway

Thoughts?

There's a pending fix for this in. the validator 1.12 release which is in beta right now. This will fix itself once that deploys

Thanks