Hi,
Whenever am sending data from device to gateway am getting the below error in loraserver log
ERRO[4061] processing rx packet error: publish data up to application-server error: rpc error: code = Unimplemented desc = unknown service as.ApplicationServer data_base64=“QL0DACKABAAFmfAYqZe1wKpHCrZo2KMO7DObluh4z8tl/EDBsCt+Gg==”
why this error is coming?
I am not able to subscribe to the topic application/+/node/+/rx
brocaar
December 7, 2017, 9:06am
#2
Please share the versions of LoRa Server and LoRa App Server that you have installed.
lora-app-server- version=0.14.2
lora-server- version=0.22.1
Hi,
Thanks for your reply:grinning:
When am sending data from device to gateway am getting below logs
loraserver:
INFO[0000] starting LoRa Server band=“EU_863_870” docs=“https://docs.loraserver.io/ ” net_id=010203 version=0.22.1
INFO[0000] setup redis connection pool url=“redis://localhost:6379”
INFO[0000] connecting to postgresql
INFO[0000] backend/gateway: connecting to mqtt broker server=“tcp://localhost:1883”
INFO[0000] setup application-server client pool ca_cert= tls_cert= tls_key=
INFO[0000] configuring join-server ca_cert= server=“http://localhost:8003 ” tls_cert= tls_key=
INFO[0000] no network-controller configured
INFO[0000] applying database migrations
INFO[0000] backend/gateway: connected to mqtt server
INFO[0000] backend/gateway: subscribing to rx topic topic=“gateway/+/rx”
INFO[0000] backend/gateway: subscribing to stats topic topic=“gateway/+/stats”
INFO[0000] migrations applied count=0
INFO[0000] starting api server bind=“127.0.0.1:8005” ca-cert= tls-cert= tls-key=
INFO[0000] starting gateway api server bind=“127.0.0.1:8006” ca-cert= tls-cert= tls-key=
INFO[0014] backend/gateway: gateway stats packet received mac=aa555a0000000101
INFO[0014] gateway updated mac=aa555a0000000101
INFO[0044] backend/gateway: gateway stats packet received mac=aa555a0000000101
INFO[0044] gateway updated mac=aa555a0000000101
INFO[0074] backend/gateway: gateway stats packet received mac=aa555a0000000101
INFO[0074] gateway updated mac=aa555a0000000101
INFO[0106] backend/gateway: rx packet received
INFO[0106] packet(s) collected dev_eui=70b3d5078000039b gw_count=1 gw_macs=aa555a0000000101 mtype=UnconfirmedDataUp
INFO[0106] rx info sent to network-controller dev_eui=70b3d5078000039b
ERRO[0106] processing rx packet error: publish data up to application-server error: rpc error: code = Unimplemented desc = unknown service as.ApplicationServer data_base64=“QL0DACKAAQAFLs2Cfp213RXYcFO+Sfr3iEfknNcN/PUNFXZNLNU=”
lora-app-server
INFO[0000] starting LoRa App Server docs=“https://docs.loraserver.io/ ” version=0.14.2
INFO[0000] connecting to postgresql
INFO[0000] setup redis connection pool
INFO[0000] handler/mqtt: connecting to mqtt broker server=“tcp://localhost:1883”
INFO[0000] applying database migrations
INFO[0000] handler/mqtt: connected to mqtt broker
INFO[0000] handler/mqtt: subscribling to tx topic topic=“application/+/node/+/tx”
INFO[0000] migrations applied count=0
INFO[0000] starting application-server api bind=“127.0.0.1:8003” ca-cert= tls-cert= tls-key=
INFO[0000] starting join-server api bind=“0.0.0.0:8007” ca_cert= tls_cert= tls_key=
INFO[0000] starting client api server bind=“127.0.0.1:8082” tls-cert="/etc/lora-app-server/certs/http.pem" tls-key="/etc/lora-app-server/certs/http-key.pem"
INFO[0000] registering rest api handler and documentation endpoint path="/api"
I am not able to subscribe to the topic application/+/node/+/rx . It is giving me nothing.
Please give me the solution.
brocaar
December 7, 2017, 1:26pm
#5
It seems like you’ve changed a lot of port configurations and somewhere made a misconfiguration. Make sure that in the LoRa App Server config:
--as-public-server value ip:port of the application-server api (used by LoRa Server to connect back to LoRa App Server) (default: "localhost:8001")
Is configured at the same port as --bind
.
After updating and restarting. Go in the web-interfaces to network-servers. Click on the network-server record and click the save button. That will update the routing-profile record stored in LoRa Server.
Hi,
Thanks for your reply.
Please tell me in web UI while creating network server what i have to give for network-server server . ?
brocaar
December 7, 2017, 2:36pm
#7
The hostname:ip to the LoRa Server API (same port as LoRa Server --bind
config). But probably the value is already correct. First try to just save it again after updating the --as-public-server
setting (and restarting LoRa App Server).
Hi,
Thanks for your help and support. Now am getting the decrypted data in mqtt topic.
After u suggested me i made -server api and –bind value same and then i got the result.
Thank you soo much once again:grinning:
1 Like