The device OTAA not activated.


#1

Hello!

I tried to connect a device on my loraserver (after creating a network server, service profile, device profile, gateway, etc…) and I can’t get the created device to activate.

The only component I couldn’t build was geolocation. The certificates are placed, and it doesn’t seem that in the log there is any error related to this.

LoraServer log:

time=“2018-10-16T07:22:18Z” level=info msg=“starting LoRa Server” band=EU_863_870 docs=“https://docs.loraserver.io/” net_id=123456 version=2.3.0
time=“2018-10-16T07:22:18Z” level=info msg=“setup redis connection pool” url=“redis://redis:6379”
time=“2018-10-16T07:22:18Z” level=info msg=“connecting to postgresql”
time=“2018-10-16T07:22:19Z” level=error msg=“ping database error, will retry in 2s: pq: the database system is starting up”
time=“2018-10-16T07:22:21Z” level=info msg=“gateway/mqtt: connecting to mqtt broker” server=“tcp://mosquitto:1883”
time=“2018-10-16T07:22:21Z” level=error msg=“gateway/mqtt: connecting to mqtt broker failed, will retry in 2s: Network Error : dial tcp 172.19.0.4:1883: connect: connection refused”
time=“2018-10-16T07:22:23Z” level=info msg=“no geolocation-server configured”
time=“2018-10-16T07:22:23Z” level=info msg=“backend/gateway: connected to mqtt server”
time=“2018-10-16T07:22:23Z” level=info msg=“gateway/mqtt: subscribing to rx topic” qos=0 topic=gateway/+/rx
time=“2018-10-16T07:22:23Z” level=info msg=“configuring join-server client” ca_cert= server=“http://appserver:8003” tls_cert= tls_key=
time=“2018-10-16T07:22:23Z” level=info msg=“no network-controller configured”
time=“2018-10-16T07:22:23Z” level=info msg=“applying database migrations”
time=“2018-10-16T07:22:23Z” level=info msg=“gateway/mqtt: subscribing to stats topic” qos=0 topic=gateway/+/stats
time=“2018-10-16T07:22:23Z” level=info msg=“backend/gateway: subscribing to ack topic” qos=0 topic=gateway/+/ack
time=“2018-10-16T07:22:23Z” level=info msg=“migrations applied” count=0
time=“2018-10-16T07:22:23Z” level=info msg=“starting api server” bind=“0.0.0.0:8000” ca-cert=/certs/ca/ca.pem tls-cert=/certs/loraserver/api/server/loraserver-api-server.pem tls-key=/certs/loraserver/api/server/loraserver-api-server-key.pem
time=“2018-10-16T07:22:23Z” level=info msg=“starting downlink device-queue scheduler”
time=“2018-10-16T07:22:23Z” level=info msg=“starting multicast scheduler”
time=“2018-10-16T07:22:48Z” level=info msg=“gateway/mqtt: gateway stats packet received” gateway_id=88c255fffe6c8bf3
time=“2018-10-16T07:22:48Z” level=info msg=“gateway updated” gateway_id=88c255fffe6c8bf3
time=“2018-10-16T07:23:18Z” level=info msg=“gateway/mqtt: gateway stats packet received” gateway_id=88c255fffe6c8bf3
time=“2018-10-16T07:23:18Z” level=info msg=“gateway updated” gateway_id=88c255fffe6c8bf3
time=“2018-10-16T07:23:48Z” level=info msg=“gateway/mqtt: gateway stats packet received” gateway_id=88c255fffe6c8bf3
time=“2018-10-16T07:23:48Z” level=info msg=“gateway updated” gateway_id=88c255fffe6c8bf3
time=“2018-10-16T07:23:59Z” level=info msg=“gateway/mqtt: uplink frame received”
time=“2018-10-16T07:23:59Z” level=error msg=“processing uplink frame error” data_base64=“QPQqASaAEQABNPZdGTumEx9aV8g=” error=“get device-session error: device-session does not exist or invalid fcnt or mic”
time=“2018-10-16T07:24:18Z” level=info msg=“gateway/mqtt: gateway stats packet received” gateway_id=88c255fffe6c8bf3
time=“2018-10-16T07:24:18Z” level=info msg=“gateway updated” gateway_id=88c255fffe6c8bf3
time=“2018-10-16T07:24:48Z” level=info msg=“gateway/mqtt: gateway stats packet received” gateway_id=88c255fffe6c8bf3
time=“2018-10-16T07:24:48Z” level=info msg=“gateway updated” gateway_id=88c255fffe6c8bf3

LoraAppServer log:

time=“2018-10-16T07:22:20Z” level=info msg=“starting LoRa App Server” docs=“https://www.loraserver.io/” version=2.3.0
time=“2018-10-16T07:22:20Z” level=info msg=“connecting to postgresql”
time=“2018-10-16T07:22:20Z” level=info msg=“setup redis connection pool”
time=“2018-10-16T07:22:20Z” level=info msg=“handler/mqtt: TLS config is empty”
time=“2018-10-16T07:22:20Z” level=info msg=“handler/mqtt: connecting to mqtt broker” server=“tcp://mosquitto:1883”
time=“2018-10-16T07:22:21Z” level=info msg=“applying database migrations”
time=“2018-10-16T07:22:21Z” level=info msg=“handler/mqtt: connected to mqtt broker”
time=“2018-10-16T07:22:21Z” level=info msg=“handler/mqtt: subscribing to tx topic” qos=0 topic=application/+/device/+/tx
time=“2018-10-16T07:22:21Z” level=info msg=“migrations applied” count=0
time=“2018-10-16T07:22:21Z” level=info msg=“starting application-server api” bind=“0.0.0.0:8001” ca-cert=/certs/ca/ca.pem tls-cert=/certs/lora-app-server/api/server/lora-app-server-api-server.pem tls-key=/certs/lora-app-server/api/server/lora-app-server-api-server-key.pem
time=“2018-10-16T07:22:21Z” level=info msg=“starting join-server api” bind=“0.0.0.0:8003” ca_cert= tls_cert= tls_key=
time=“2018-10-16T07:22:21Z” level=info msg=“starting client api server” bind=“0.0.0.0:8080” tls-cert=/etc/lora-app-server/certs/http.pem tls-key=/etc/lora-app-server/certs/http-key.pem
time=“2018-10-16T07:22:21Z” level=info msg=“registering rest api handler and documentation endpoint” path=/api

LoraGatewayBridge log:

time=“2018-10-16T07:22:20Z” level=info msg=“starting LoRa Gateway Bridge” docs=“https://www.loraserver.io/lora-gateway-bridge/” version=2.6.0
time=“2018-10-16T07:22:20Z” level=info msg=“backend: set max reconnect interval: 10m0s”
time=“2018-10-16T07:22:20Z” level=info msg=“backend: TLS config is empty”
time=“2018-10-16T07:22:20Z” level=info msg=“backend: connecting to mqtt broker” server=“tcp://mosquitto:1883”
time=“2018-10-16T07:22:21Z” level=info msg=“gateway: starting gateway udp listener” addr=“0.0.0.0:1700”
time=“2018-10-16T07:22:21Z” level=info msg=“backend: connected to mqtt broker”
time=“2018-10-16T07:22:21Z” level=info msg=“backend: subscribing to topic” qos=0 topic=gateway/88c255fffe6c8bf3/tx
time=“2018-10-16T07:22:21Z” level=info msg=“backend: subscribing to topic” qos=0 topic=gateway/88c255fffe6c8bf3/config
time=“2018-10-16T07:22:48Z” level=info msg=“gateway: stat packet received” addr=“172.19.0.1:48442” mac=88c255fffe6c8bf3
time=“2018-10-16T07:22:48Z” level=info msg=“backend: publishing packet” qos=0 topic=gateway/88c255fffe6c8bf3/stats


#2

Please see OTAA failed / Debugging device activation OTAA issues.


#3