Closed Morpheus0x closed 3 years ago
Config Files
Here the Full log of enabling the common packet forwarder on the gateway and then adding the gw to the application server:
I also tried a Kerlink Wirnet iFemtoCell Gateway which results in the same error. At first if there is no GW configured in the Application server, I get this error:
Oct 06 16:27:26 prod-backend-network-01 chirpstack-network-server[109445]: time="2021-10-06T16:27:26.91967144+02:00" level=info msg="gateway/mqtt: gateway stats packet received" gateway_id=7276ff0039040a44 stats_id=a563a113-f2fc-4dd7-98a4-62b1446a7b40
Oct 06 16:27:26 prod-backend-network-01 chirpstack-network-server[109445]: time="2021-10-06T16:27:26.920718386+02:00" level=error msg="gateway: handle gateway stats error" ctx_id=a563a113-f2fc-4dd7-98a4-62b1446a7b40 error="update gateway state error: object does not exist"
That makes sense, because the Network Server doesn't know the GW yet.
As soon as I add the GW the error changes to the initial error:
Oct 06 16:29:26 prod-backend-network-01 chirpstack-network-server[109445]: time="2021-10-06T16:29:26.954490126+02:00" level=info msg="gateway/mqtt: gateway stats packet received" gateway_id=7276ff0039040a44 stats_id=07e538d3-bd0c-4296-90ce-8015d5944b6e
Oct 06 16:29:26 prod-backend-network-01 chirpstack-network-server[109445]: time="2021-10-06T16:29:26.95638435+02:00" level=info msg="storage: gateway state updated" ctx_id=07e538d3-bd0c-4296-90ce-8015d5944b6e gateway_id=7276ff0039040a44
Oct 06 16:29:26 prod-backend-network-01 chirpstack-network-server[109445]: time="2021-10-06T16:29:26.957370436+02:00" level=error msg="finished client unary call" ctx_id=07e538d3-bd0c-4296-90ce-8015d5944b6e error="rpc error: code = Unimplemented desc = unknown service as.ApplicationServerService" grpc.code=Unimplemented grpc.duration="239.935µs" grpc.method=HandleGatewayStats grpc.service=as.ApplicationServerService span.kind=client system=grpc
Oct 06 16:29:26 prod-backend-network-01 chirpstack-network-server[109445]: time="2021-10-06T16:29:26.957405327+02:00" level=error msg="gateway: handle gateway stats error" ctx_id=07e538d3-bd0c-4296-90ce-8015d5944b6e error="handle gateway stats error: rpc error: code = Unimplemented desc = unknown service as.ApplicationServerService"
What happened?
I configured a Cisco LoRaWAN Gateway as described in the docs. It sends data to the Gateway Bridge basic_station running on my server. Gateway is not coming online in application server. Following error occurs on the Network Server:
rpc error: code = Unimplemented desc = unknown service as.ApplicationServerService
All Services are running in separate VMs
Possible related Problem: https://forum.chirpstack.io/t/problem-with-loraserver-and-loraappserver-api/6138 Proposed solution: Incorrect entry in PostgreSQL database table loraserver_ns/routing_profile Content of my chirpstack_ns/routing_profile table:
10.0.23.100 is the IP of the Network Server
What did you expect?
Gateway coming online in Application Server Web UI
Steps to reproduce this issue
Steps:
sudo journalctl -f -n 100 -u chirpstack-network-server.service
for problemsCould you share your log output?
Gateway Bridge:
Network Server:
No related log output on the Application Server.
Your Environment