Gateway nor added automatically

I have two gateways (a Lorank8 and a homemade RPI3/iC880A) connected to a cloud based loraserver. The gateway bridges run on the gateways. The Lorank8 is shown on the loraserver WEB GUI but the RPI3/iC880A is not, even if I disconnect the Lorank8. If I have the Lorank8 disconnected (switched off) and the RPI3/iC880A functioning, the system works, data is processed, everything fine, except the homemade RPI3/iC880A gateway is not shown under gateways.

I think gateway stats are received and processed, as shown in the (truncated) output from the loraserver log:


Dec 27 19:12:27 LoRaServer loraserver[25565]: time=“2017-12-27T19:12:27+01:00” level=info msg=“backend/gateway: gateway stats packet received” mac=b827ebfffe3e86d6
Dec 27 19:12:27 LoRaServer loraserver[25565]: time=“2017-12-27T19:12:27+01:00” level=info msg=“gateway updated” mac=b827ebfffe3e86d6
Dec 27 19:12:57 LoRaServer loraserver[25565]: time=“2017-12-27T19:12:57+01:00” level=info msg=“backend/gateway: gateway stats packet received” mac=b827ebfffe3e86d6
Dec 27 19:12:57 LoRaServer loraserver[25565]: time=“2017-12-27T19:12:57+01:00” level=info msg=“gateway updated” mac=b827ebfffe3e86d6

In /etc/default/loraserver I have:


# create non-existing gateways on receiving of stats
GW_CREATE_ON_STATS=true

# aggregation intervals to use for aggregating the gateway stats (valid options: second, minute, hour, day, week, m$
GW_STATS_AGGREGATION_INTERVALS=minute,hour,day

loraserver version is 0.23.0,
lora-app-server version is 0.16.0

Any ideas what have I missed?

GW_CREATE_ON_STATS=true

This will create the gateway in LoRa Server and stores the stats. You still need to add the gateway to LoRa App Server under an organization yourself :slight_smile:

Thanks, I misinterpreted the meaning of “GW_CREATE_ON_STATS=true”. But what happens if I set this variable to false and I add the gateway manually?

Then the gateway is not created in the loraserver_ns database and it won’t store any stats until you create it through LoRa App Server.

Ok, now I understand the logic. Thanks again!