Error while dialing dial tcp 0.0.0.0:8001: connect: connection refused


#1

Hi Brocaar,

I’m updating lora-gateway-bridge,loraserver & lora-app-server to the latest one version 2. I’m using docker installation. After updating i cannot activate device again, if i switch to old version it activated without problem. The device is Class C with MAC version 1.0.2. Below are logs in activating process.

  • LoRa Server Logs
    time=“2018-10-04T12:08:54Z” level=info msg=“packet(s) collected” dev_eui=110203040506070c gw_count=1 gw_ids=7276ff000b031b61 mtype=JoinRequest
    ** time=“2018-10-04T12:08:54Z” level=info msg=“device-queue flushed” dev_eui=110203040506070c**
    ** time=“2018-10-04T12:08:54Z” level=info msg=“device-session saved” dev_addr=02f79c6c dev_eui=110203040506070c**
    ** time=“2018-10-04T12:08:54Z” level=info msg=“device-activation created” dev_eui=110203040506070c id=32**
    ** time=“2018-10-04T12:08:54Z” level=info msg=“backend/gateway: publishing downlink frame” qos=0 topic=gateway/7276ff000b031b61/tx**
    ** time=“2018-10-04T12:09:00Z” level=info msg=“backend/gateway: uplink frame received”**
    ** time=“2018-10-04T12:09:00Z” level=info msg=“backend/gateway: uplink frame received”**
    ** time=“2018-10-04T12:09:00Z” level=warning msg=“creating insecure application-server client” server=“0.0.0.0:8001”**
    ** time=“2018-10-04T12:09:00Z” level=warning msg=“grpc: addrConn.createTransport failed to connect to {0.0.0.0:8001 0 }. Err :connection error: desc = “transport: Error while dialing dial tcp 0.0.0.0:8001: connect: connection refused”. Reconnecting…”**
    ** time=“2018-10-04T12:09:00Z” level=error msg=“processing uplink frame error” data_base64=QGyc9wKAAAB3IXht error=“get application-server client error: create application-server api client error: dial application-server api error: context deadline exceeded”**
    ** time=“2018-10-04T12:09:00Z” level=warning msg=“Failed to dial 0.0.0.0:8001: context canceled; please retry.”**

  • LoRa App Server
    time=“2018-10-04T12:08:54Z” level=info msg=“js: request received” message_type=JoinReq receiver_id=70b3d57ef00001af sender_id=010101 transaction_id=149818226
    ** time=“2018-10-04T12:08:54Z” level=info msg=“device-keys updated” dev_eui=110203040506070c**
    ** time=“2018-10-04T12:08:54Z” level=info msg=“js: sending response” message_type=JoinAns receiver_id=010101 result_code=Success sender_id=70b3d57ef00001af transaction_id=149818226**

Repeating the process but the result always same. Thanks :slight_smile:

Regards
Jmuhbagir,


#2

See this error. Somewhere you have probably made a mis-configuration.


#3

I make sure twice address 0.0.0.0:8001 did not exists in loraserver configuration. But loraserver kept calling that address. Thanks.


#4

Hi Brocaar,

Thanks the connection issue is solved. I’m able to see Join process in web. I’m confident that Join is accepted, but still lora-app-server not approve the activation. What i’m missing again. Thanks :slight_smile:

  • LoraServer Logs

time=“2018-10-05T06:47:40Z” level=info msg="backend/gateway: uplink frame received"
time=“2018-10-05T06:47:40Z” level=info msg="backend/gateway: uplink frame received"
time=“2018-10-05T06:47:40Z” level=info msg=“rx info sent to network-controller” dev_eui=110203040506070d
time=“2018-10-05T06:47:40Z” level=info msg=“device gateway rx-info meta-data saved” dev_eui=110203040506070d
time=“2018-10-05T06:47:40Z” level=info msg=“device-session saved” dev_addr=02acdffc dev_eui=110203040506070d
time=“2018-10-05T06:47:40Z” level=info msg=“adr request added to mac-command queue” dev_eui=110203040506070d dr=2 nb_trans=1 req_dr=5 req_nb_trans=1 req_tx_power_idx=1 tx_power=0
time=“2018-10-05T06:47:40Z” level=info msg=“pending mac-command block set” cid=LinkADRReq commands=1 dev_eui=110203040506070d
time=“2018-10-05T06:47:40Z” level=info msg=“backend/gateway: publishing downlink frame” qos=0 topic=gateway/7276ff000b031b61/tx
time=“2018-10-05T06:47:40Z” level=info msg=“device-session saved” dev_addr=02acdffc dev_eui=110203040506070d

  • Lora App Server Logs

time=“2018-10-05T06:47:34Z” level=info msg=“js: request received” message_type=JoinReq receiver_id=70b3d57ef00001af sender_id=010101 transaction_id=3062501131
time=“2018-10-05T06:47:34Z” level=info msg=“device-keys updated” dev_eui=110203040506070d
time=“2018-10-05T06:47:34Z” level=info msg=“js: sending response” message_type=JoinAns receiver_id=010101 result_code=Success sender_id=70b3d57ef00001af transaction_id=3062501131


#5

Hello

Can you please suggest how you resolved the connection issue. I am getting same issue when having loraserver and lora-app-server on different instances(machines)

Thanks in advance