brocaar / chirpstack-application-server

ChirpStack Application Server is an open-source LoRaWAN application-server.
https://www.chirpstack.io
MIT License
502 stars 325 forks source link

LoRa App Server: unknown method MigrateChannelConfigurationToGatewayProfile #243

Closed UnrealEngineer closed 6 years ago

UnrealEngineer commented 6 years ago

Is this a bug or a feature request?

Bug

What did you expect?

What happened?

No Connection to LoRa App Server Web Interface, no data from devices.

What version are your using?

0.21.1

How can your issue be reproduced?

I don't know.

Could you share your log output?

Jun 26 15:47:59 DietPi lora-app-server[8002]: time="2018-06-26T15:47:59+03:00" level=error msg="finished client unary call" error="rpc error: code = Unimplemented desc = unknown method MigrateChannelConfigurationToGatewayProfile" grpc.cod
e=Unimplemented grpc.method=MigrateChannelConfigurationToGatewayProfile grpc.service=ns.NetworkServer grpc.time_ms=1.903 span.kind=client system=grpc
Jun 26 15:47:59 DietPi lora-app-server[8002]: time="2018-06-26T15:47:59+03:00" level=error msg="gateway-profile migration failed" error="migrate gateway-profiles for network-server error: migrate channel-configuration to gateway-profile e
rror: rpc error: code = Unimplemented desc = unknown method MigrateChannelConfigurationToGatewayProfile"

root@DietPi:~# systemctl status lora-app-server.service
● lora-app-server.service - LoRa App Server
   Loaded: loaded (/lib/systemd/system/lora-app-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2018-06-26 15:47:58 EEST; 31min ago
     Docs: https://docs.loraserver.io
 Main PID: 8002 (lora-app-server)
   CGroup: /system.slice/lora-app-server.service
           └─8002 /usr/bin/lora-app-server

Jun 26 16:19:49 DietPi lora-app-server[8002]: time="2018-06-26T16:19:49+03:00" level=warning msg="finished client unary call" error="rpc error: code = Unavailable desc = all SubConns are in TransientFailure" grpc.code=Unavailable grpc.met
hod=MigrateChannelConfigurationToGatewayProfile grpc.service=ns.NetworkServer grpc.time_ms=0.063 span.kind=client system=grpc
Jun 26 16:19:49 DietPi lora-app-server[8002]: time="2018-06-26T16:19:49+03:00" level=error msg="gateway-profile migration failed" error="migrate gateway-profiles for network-server error: migrate channel-configuration to gateway-profile e
rror: rpc error: code = Unavailable desc = all SubConns are in TransientFailure"
Jun 26 16:19:51 DietPi lora-app-server[8002]: time="2018-06-26T16:19:51+03:00" level=warning msg="finished client unary call" error="rpc error: code = Unavailable desc = all SubConns are in TransientFailure" grpc.code=Unavailable grpc.met
hod=MigrateChannelConfigurationToGatewayProfile grpc.service=ns.NetworkServer grpc.time_ms=0.08 span.kind=client system=grpc
Jun 26 16:19:51 DietPi lora-app-server[8002]: time="2018-06-26T16:19:51+03:00" level=error msg="gateway-profile migration failed" error="migrate gateway-profiles for network-server error: migrate channel-configuration to gateway-profile e
rror: rpc error: code = Unavailable desc = all SubConns are in TransientFailure"
Jun 26 16:19:53 DietPi lora-app-server[8002]: time="2018-06-26T16:19:53+03:00" level=warning msg="finished client unary call" error="rpc error: code = Unavailable desc = all SubConns are in TransientFailure" grpc.code=Unavailable grpc.met
hod=MigrateChannelConfigurationToGatewayProfile grpc.service=ns.NetworkServer grpc.time_ms=0.076 span.kind=client system=grpc
Jun 26 16:19:53 DietPi lora-app-server[8002]: time="2018-06-26T16:19:53+03:00" level=error msg="gateway-profile migration failed" error="migrate gateway-profiles for network-server error: migrate channel-configuration to gateway-profile e
rror: rpc error: code = Unavailable desc = all SubConns are in TransientFailure"
Jun 26 16:19:55 DietPi lora-app-server[8002]: time="2018-06-26T16:19:55+03:00" level=warning msg="finished client unary call" error="rpc error: code = Unavailable desc = all SubConns are in TransientFailure" grpc.code=Unavailable grpc.met
hod=MigrateChannelConfigurationToGatewayProfile grpc.service=ns.NetworkServer grpc.time_ms=0.112 span.kind=client system=grpc
Jun 26 16:19:55 DietPi lora-app-server[8002]: time="2018-06-26T16:19:55+03:00" level=error msg="gateway-profile migration failed" error="migrate gateway-profiles for network-server error: migrate channel-configuration to gateway-profile e
rror: rpc error: code = Unavailable desc = all SubConns are in TransientFailure"
Jun 26 16:19:57 DietPi lora-app-server[8002]: time="2018-06-26T16:19:57+03:00" level=warning msg="finished client unary call" error="rpc error: code = Unavailable desc = all SubConns are in TransientFailure" grpc.code=Unavailable grpc.met
hod=MigrateChannelConfigurationToGatewayProfile grpc.service=ns.NetworkServer grpc.time_ms=0.061 span.kind=client system=grpc
Jun 26 16:19:57 DietPi lora-app-server[8002]: time="2018-06-26T16:19:57+03:00" level=error msg="gateway-profile migration failed" error="migrate gateway-profiles for network-server error: migrate channel-configuration to gateway-profile e
rror: rpc error: code = Unavailable desc = all SubConns are in TransientFailure"
brocaar commented 6 years ago

You're running two versions that are incompatible or the configuration is pointing to the wrong server / port (so that the receiver does not know how to handle the API call).

To be better with component compatibility, The 1.x version was released. See also: https://forum.loraserver.io/t/release-lora-server-v1-0-lora-app-server-v1-0/1397

This could also be helpful: https://forum.loraserver.io/search?q=unimplemented%20desc%20%3D%20unknown%20method