Migrate data from local vm to AWS


#1

Hi,

i’m trying to migrate lora-app-server and loraserver from local vm to AWS. I installed loraappserver and loraserver on EC2 instance, i create rds db and redis cluster with elasticache. I backup all data present in vm and i try to restore them in new environment. All data was restored successfully but when i start lora-app-server i got this error

May 10 09:47:10 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:10Z" level=error msg="send gateway ping error: get gateway for ping error: select error: missing destination name gateway_profile_id in *storage.Gateway"
May 10 09:47:10 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:10Z" level=info msg="registering rest api handler and documentation endpoint" path=/api
May 10 09:47:11 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:11Z" level=error msg="send gateway ping error: get gateway for ping error: select error: missing destination name gateway_profile_id in *storage.Gateway"
May 10 09:47:12 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:12Z" level=error msg="send gateway ping error: get gateway for ping error: select error: missing destination name gateway_profile_id in *storage.Gateway"
May 10 09:47:13 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:13Z" level=error msg="send gateway ping error: get gateway for ping error: select error: missing destination name gateway_profile_id in *storage.Gateway"
May 10 09:47:14 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:14Z" level=error msg="send gateway ping error: get gateway for ping error: select error: missing destination name gateway_profile_id in *storage.Gateway"
May 10 09:47:15 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:15Z" level=error msg="send gateway ping error: get gateway for ping error: select error: missing destination name gateway_profile_id in *storage.Gateway"
May 10 09:47:16 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:16Z" level=error msg="send gateway ping error: get gateway for ping error: select error: missing destination name gateway_profile_id in *storage.Gateway"
May 10 09:47:17 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:17Z" level=error msg="send gateway ping error: get gateway for ping error: select error: missing destination name gateway_profile_id in *storage.Gateway"
May 10 09:47:18 ip-192-168-1-209 lora-app-server[26533]: time="2018-05-10T09:47:18Z" level=error msg="send gateway ping error: get gateway for ping error: select error: missing destination name gateway_profile_id in *storage.Gateway"

ALso l orasever give me this error

May 10 09:47:18 ip-192-168-1-209 loraserver[26521]: time="2018-05-10T09:47:18Z" level=error msg="class-c scheduler error" error="get deveuis with class-c device-queue items error: select error: missing destination name skip_fcnt_check in *[]storage.Device"
May 10 09:47:19 ip-192-168-1-209 loraserver[26521]: time="2018-05-10T09:47:19Z" level=error msg="class-c scheduler error" error="get deveuis with class-c device-queue items error: select error: missing destination name skip_fcnt_check in *[]storage.Device"
May 10 09:47:20 ip-192-168-1-209 loraserver[26521]: time="2018-05-10T09:47:20Z" level=error msg="class-c scheduler error" error="get deveuis with class-c device-queue items error: select error: missing destination name skip_fcnt_check in *[]storage.Device"
May 10 09:47:21 ip-192-168-1-209 loraserver[26521]: time="2018-05-10T09:47:21Z" level=error msg="class-c scheduler error" error="get deveuis with class-c device-queue items error: select error: missing destination name skip_fcnt_check in *[]storage.Device"
May 10 09:47:22 ip-192-168-1-209 loraserver[26521]: time="2018-05-10T09:47:22Z" level=error msg="class-c scheduler error" error="get deveuis with class-c device-queue items error: select error: missing destination name skip_fcnt_check in *[]storage.Device"
May 10 09:47:23 ip-192-168-1-209 loraserver[26521]: time="2018-05-10T09:47:23Z" level=error msg="class-c scheduler error" error="get deveuis with class-c device-queue items error: select error: missing destination name skip_fcnt_check in *[]storage.Device"

This error give me problems on add gateway in the webpage.

Thanks


#2

That looks like a mismatch between the expected and actual database schema. Make sure that all database migrations are applied. See also:

https://forum.loraserver.io/search?q=missing%20destination


#3

Hi Orne,

I stick to this thread since we have the same issue after upgrading both the loraserver, the lora-app-server and the lora-gateway-bridge to the latest versions.

I solved the database issue by deleting everything and recreate the tables.

The problem is that, for some reason, the message downlink seems broken and works only for the first downlink message, sometimes two, after the devices are powered on and reactivated. The uplink works correctly.
Since I experienced a similar issue in the near past after upgrading the servers and I was only able to solve it by reactivating all the ABP devices on the server, I tried the same approach, but this time nothing changed.
The devices worked correctly right before the upgrade.

I tracked the logs and assured the downlink messages are not discarded somewhere, including the gateway which transmits them over the air.

I think there must be something wrong with the downlink frame counter, since the uplink messages arrive. I think the devices refuse them due to a frame counter mismatch, but I cannot be sure since their radio modules only forward the accepted messages to the host without giving any indication about refused messages for any reason.
The strange thing is the downlink frame counter is not fixes when the devices are reactivated after reset.

Moreover, I saw in the logs that sometimes the server complains about non-existing sessions, while the devices actually exist on the server and are activated.

I attach here part of the logs collected from the lorawan server and the lorawan app server, including the log from the gateway.

Hope you have a better idea on what’s happening here.

Thanks.

Gateway:
[
{
“uplinkMetaData”: {
“rxInfo”: [
{
“mac”: “aa555a0000000119”,
“time”: “”,
“timeSinceGPSEpoch”: “”,
“timestamp”: 1856271507,
“rssi”: -60,
“loRaSNR”: 10.5,
“board”: 0,
“antenna”: 0
}
],
“txInfo”: {
“frequency”: 868100000,
“dataRate”: {
“modulation”: “LORA”,
“bandwidth”: 125,
“spreadFactor”: 7,
“bitrate”: 0
},
“codeRate”: “4/5”
}
},
“phyPayload”: {
“mhdr”: {
“mType”: “UnconfirmedDataUp”,
“major”: “LoRaWANR1”
},
“macPayload”: {
“fhdr”: {
“devAddr”: “0647138b”,
“fCtrl”: {
“adr”: true,
“adrAckReq”: false,
“ack”: false,
“fPending”: false,
“classB”: false
},
“fCnt”: 63,
“fOpts”: null
},
“fPort”: 2,
“frmPayload”: [
{
“bytes”: “R3chFJjMoluy+tK4Cj9Cu68aVIR+yLHS+3SgleD3xzbE+A==”
}
]
},
“mic”: “726d0237”
}
},
{
“downlinkMetaData”: {
“txInfo”: {
“mac”: “aa555a0000000119”,
“immediately”: true,
“timeSinceGPSEpoch”: “”,
“timestamp”: 0,
“frequency”: 869525000,
“power”: 14,
“dataRate”: {
“modulation”: “LORA”,
“bandwidth”: 125,
“spreadFactor”: 12,
“bitrate”: 0
},
“codeRate”: “4/5”,
“iPol”: true,
“board”: 0,
“antenna”: 0
}
},
“phyPayload”: {
“mhdr”: {
“mType”: “UnconfirmedDataDown”,
“major”: “LoRaWANR1”
},
“macPayload”: {
“fhdr”: {
“devAddr”: “06883c57”,
“fCtrl”: {
“adr”: true,
“adrAckReq”: false,
“ack”: false,
“fPending”: false,
“classB”: false
},
“fCnt”: 156,
“fOpts”: [
{
“cid”: “LinkADRReq”,
“payload”: {
“dataRate”: 5,
“txPower”: 5,
“chMask”: [
true,
true,
true,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
“redundancy”: {
“chMaskCntl”: 0,
“nbRep”: 1
}
}
}
]
},
“fPort”: null,
“frmPayload”: null
},
“mic”: “f9df38a9”
}
},
{
“downlinkMetaData”: {
“txInfo”: {
“mac”: “aa555a0000000119”,
“immediately”: true,
“timeSinceGPSEpoch”: “”,
“timestamp”: 0,
“frequency”: 869525000,
“power”: 14,
“dataRate”: {
“modulation”: “LORA”,
“bandwidth”: 125,
“spreadFactor”: 12,
“bitrate”: 0
},
“codeRate”: “4/5”,
“iPol”: true,
“board”: 0,
“antenna”: 0
}
},
“phyPayload”: {
“mhdr”: {
“mType”: “ConfirmedDataDown”,
“major”: “LoRaWANR1”
},
“macPayload”: {
“fhdr”: {
“devAddr”: “07598a22”,
“fCtrl”: {
“adr”: true,
“adrAckReq”: false,
“ack”: false,
“fPending”: false,
“classB”: false
},
“fCnt”: 86,
“fOpts”: null
},
“fPort”: 2,
“frmPayload”: [
{
“bytes”: “QyCTiJtajgnv6jUWuko7”
}
]
},
“mic”: “f1e1a640”
}
},
{
“downlinkMetaData”: {
“txInfo”: {
“mac”: “aa555a0000000119”,
“immediately”: true,
“timeSinceGPSEpoch”: “”,
“timestamp”: 0,
“frequency”: 869525000,
“power”: 14,
“dataRate”: {
“modulation”: “LORA”,
“bandwidth”: 125,
“spreadFactor”: 12,
“bitrate”: 0
},
“codeRate”: “4/5”,
“iPol”: true,
“board”: 0,
“antenna”: 0
}
},
“phyPayload”: {
“mhdr”: {
“mType”: “ConfirmedDataDown”,
“major”: “LoRaWANR1”
},
“macPayload”: {
“fhdr”: {
“devAddr”: “06883c57”,
“fCtrl”: {
“adr”: true,
“adrAckReq”: false,
“ack”: false,
“fPending”: false,
“classB”: false
},
“fCnt”: 155,
“fOpts”: [
{
“cid”: “LinkADRReq”,
“payload”: {
“dataRate”: 5,
“txPower”: 5,
“chMask”: [
true,
true,
true,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
“redundancy”: {
“chMaskCntl”: 0,
“nbRep”: 1
}
}
}
]
},
“fPort”: 2,
“frmPayload”: [
{
“bytes”: “t8yOVFepSyPxQE6r7hXC”
}
]
},
“mic”: “73635e1b”
}
}
]

Lora-app-server
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“handler/mqtt: data-down payload received” topic=application/1/node/70b3d58ff0036350/tx
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“handler/mqtt: data-down payload received” topic=application/1/node/70b3d58ff0036012/tx
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.time_ms=2.392 span.kind=client system=grpc
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.time_ms=3.577 span.kind=client system=grpc
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=GetNextDownlinkFCntForDevEUI grpc.service=ns.NetworkServer grpc.time_ms=3.42 span.kind=client system=grpc
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=GetNextDownlinkFCntForDevEUI grpc.service=ns.NetworkServer grpc.time_ms=3.686 span.kind=client system=grpc
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“device-queue mapping created” dev_eui=70b3d58ff0036012 f_cnt=155 id=131 reference=76098fb1-54fc-11e8-8544-8722e180657c
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“device-queue mapping created” dev_eui=70b3d58ff0036350 f_cnt=86 id=132 reference=76098fb0-54fc-11e8-8544-8722e180657c
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=CreateDeviceQueueItem grpc.service=ns.NetworkServer grpc.time_ms=7.207 span.kind=client system=grpc
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“downlink device-queue item handled” confirmed=true dev_eui=70b3d58ff0036012 f_cnt=155 reference=76098fb1-54fc-11e8-8544-8722e180657c
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=CreateDeviceQueueItem grpc.service=ns.NetworkServer grpc.time_ms=7.684 span.kind=client system=grpc
May 11 09:19:52 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:52Z” level=info msg=“downlink device-queue item handled” confirmed=true dev_eui=70b3d58ff0036350 f_cnt=86 reference=76098fb0-54fc-11e8-8544-8722e180657c
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.time_ms=2.585 span.kind=client system=grpc
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“device-queue mapping deleted” id=131
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“downlink device-queue item acknowledged” dev_eui=70b3d58ff0036012
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“handler/mqtt: publishing message” qos=0 topic=application/1/node/70b3d58ff0036012/ack
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“finished unary call with code OK” grpc.code=OK grpc.method=HandleDownlinkACK grpc.service=as.ApplicationServer grpc.start_time=“2018-05-11T09:19:54Z” grpc.time_ms=16.097 peer.address="[::1]:60048" span.kind=server system=grpc
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.time_ms=2.19 span.kind=client system=grpc
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“device-queue mapping deleted” id=132
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“downlink device-queue item acknowledged” dev_eui=70b3d58ff0036350
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“handler/mqtt: publishing message” qos=0 topic=application/1/node/70b3d58ff0036350/ack
May 11 09:19:54 loraserver lora-app-server[10185]: time=“2018-05-11T09:19:54Z” level=info msg=“finished unary call with code OK” grpc.code=OK grpc.method=HandleDownlinkACK grpc.service=as.ApplicationServer grpc.start_time=“2018-05-11T09:19:54Z” grpc.time_ms=14.654 peer.address="[::1]:60048" span.kind=server system=grpc

Loraserver

May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.start_time="2018-05-11T09:19:52Z" grpc.time_ms=1.844 peer.address="[::1]:60832" span.kind=server system=grpc
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.start_time="2018-05-11T09:19:52Z" grpc.time_ms=2.973 peer.address="[::1]:60832" span.kind=server system=grpc
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=GetNextDownlinkFCntForDevEUI grpc.service=ns.NetworkServer grpc.start_time="2018-05-11T09:19:52Z" grpc.time_ms=2.823 peer.address="[::1]:60832" span.kind=server system=grpc
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=GetNextDownlinkFCntForDevEUI grpc.service=ns.NetworkServer grpc.start_time="2018-05-11T09:19:52Z" grpc.time_ms=3.213 peer.address="[::1]:60832" span.kind=server system=grpc
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="device-queue item created" dev_eui=70b3d58ff0036012 f_cnt=155
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=CreateDeviceQueueItem grpc.service=ns.NetworkServer grpc.start_time="2018-05-11T09:19:52Z" grpc.time_ms=6.469 peer.address="[::1]:60832" span.kind=server system=grpc
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="device-queue item created" dev_eui=70b3d58ff0036350 f_cnt=86
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=CreateDeviceQueueItem grpc.service=ns.NetworkServer grpc.start_time="2018-05-11T09:19:52Z" grpc.time_ms=6.995 peer.address="[::1]:60832" span.kind=server system=grpc
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="device-queue item updated" dev_eui=70b3d58ff0036012 emit_at_time_since_gps_epoch="<nil>" f_cnt=155 is_pending=true timeout_after="2018-05-11 09:19:52.645787844 +0000 UTC m=+61830.876300949"
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="adr request added to mac-command queue" dev_eui=70b3d58ff0036012 dr=5 nb_trans=1 req_dr=5 req_nb_trans=1 req_tx_power_idx=5 tx_power=3
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="pending mac-command block set" cid=LinkADRReq commands=1 dev_eui=70b3d58ff0036012
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="backend/gateway: publishing tx packet" qos=0 topic=gateway/aa555a0000000119/tx
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="device-session saved" dev_addr=06883c57 dev_eui=70b3d58ff0036012
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="device-queue item updated" dev_eui=70b3d58ff0036350 emit_at_time_since_gps_epoch="<nil>" f_cnt=86 is_pending=true timeout_after="2018-05-11 09:19:52.661693781 +0000 UTC m=+61830.892206915"
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="backend/gateway: publishing tx packet" qos=0 topic=gateway/aa555a0000000119/tx
May 11 09:19:52 loraserver loraserver[10202]: time="2018-05-11T09:19:52Z" level=info msg="device-session saved" dev_addr=07598a22 dev_eui=70b3d58ff0036350
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="device-queue deleted" id=131
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=warning msg="device-queue item discarded due to timeout" dev_eui=70b3d58ff0036012 device_queue_item_fcnt=155
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.start_time="2018-05-11T09:19:54Z" grpc.time_ms=1.875 peer.address="[::1]:60832" span.kind=server system=grpc
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="finished client unary call" grpc.code=OK grpc.method=HandleDownlinkACK grpc.service=as.ApplicationServer grpc.time_ms=16.728 span.kind=client system=grpc
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="adr request added to mac-command queue" dev_eui=70b3d58ff0036012 dr=5 nb_trans=1 req_dr=5 req_nb_trans=1 req_tx_power_idx=5 tx_power=3
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="pending mac-command block set" cid=LinkADRReq commands=1 dev_eui=70b3d58ff0036012
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="backend/gateway: publishing tx packet" qos=0 topic=gateway/aa555a0000000119/tx
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="device-session saved" dev_addr=06883c57 dev_eui=70b3d58ff0036012
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="device-queue deleted" id=132
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=warning msg="device-queue item discarded due to timeout" dev_eui=70b3d58ff0036350 device_queue_item_fcnt=86
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.start_time="2018-05-11T09:19:54Z" grpc.time_ms=1.676 peer.address="[::1]:60832" span.kind=server system=grpc
May 11 09:19:54 loraserver loraserver[10202]: time="2018-05-11T09:19:54Z" level=info msg="finished client unary call" grpc.code=OK grpc.method=HandleDownlinkACK grpc.service=as.ApplicationServer grpc.time_ms=15.172 span.kind=client system=grpc
May 11 09:19:56 loraserver loraserver[10202]: time="2018-05-11T09:19:56Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:19:56 loraserver loraserver[10202]: time="2018-05-11T09:19:56Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:20:26 loraserver loraserver[10202]: time="2018-05-11T09:20:26Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:20:26 loraserver loraserver[10202]: time="2018-05-11T09:20:26Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:20:56 loraserver loraserver[10202]: time="2018-05-11T09:20:56Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:20:56 loraserver loraserver[10202]: time="2018-05-11T09:20:56Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:21:26 loraserver loraserver[10202]: time="2018-05-11T09:21:26Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:21:26 loraserver loraserver[10202]: time="2018-05-11T09:21:26Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:21:56 loraserver loraserver[10202]: time="2018-05-11T09:21:56Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:21:56 loraserver loraserver[10202]: time="2018-05-11T09:21:56Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:22:26 loraserver loraserver[10202]: time="2018-05-11T09:22:26Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:22:26 loraserver loraserver[10202]: time="2018-05-11T09:22:26Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:22:56 loraserver loraserver[10202]: time="2018-05-11T09:22:56Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:22:56 loraserver loraserver[10202]: time="2018-05-11T09:22:56Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:23:26 loraserver loraserver[10202]: time="2018-05-11T09:23:26Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:23:26 loraserver loraserver[10202]: time="2018-05-11T09:23:26Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:23:53 loraserver loraserver[10202]: time="2018-05-11T09:23:53Z" level=info msg="backend/gateway: rx packet received"
May 11 09:23:54 loraserver loraserver[10202]: time="2018-05-11T09:23:54Z" level=error msg="processing rx packet error: get device-session error: device-session does not exist or invalid fcnt or mic" data_base64="QIsTRwaAPwACR3chFJjMoluy+tK4Cj9Cu68aVIR+yLHS+3SgleD3xzbE+HJtAjc="
May 11 09:23:56 loraserver loraserver[10202]: time="2018-05-11T09:23:56Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:23:56 loraserver loraserver[10202]: time="2018-05-11T09:23:56Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:24:26 loraserver loraserver[10202]: time="2018-05-11T09:24:26Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:24:26 loraserver loraserver[10202]: time="2018-05-11T09:24:26Z" level=info msg="gateway updated" mac=aa555a0000000119
May 11 09:24:56 loraserver loraserver[10202]: time="2018-05-11T09:24:56Z" level=info msg="backend/gateway: gateway stats packet received" mac=aa555a0000000119
May 11 09:24:56 loraserver loraserver[10202]: time="2018-05-11T09:24:56Z" level=info msg="gateway updated" mac=aa555a0000000119

#4

Hi @brocaar , sorry for the delay. I try to restore the postgre db multiple times to see problems, but i cannot find one. I read all the old topics about this error but everything seems fine. Maybe can be an error due to migration from local redis to elasticache?

Thanks