Hi!
From time to time I get an empty device list from the LoraAppServer web UI.
I can’t see any error in LoraAppServer logs:
time="2019-10-08T19:54:04Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=ListIntegrations grpc.service=api.ApplicationService grpc.start_time="2019-10-08T19:54:04Z" grpc.time_ms=6.695 peer.address="127.0.0.1:46382" span.kind=server system=grpc
time="2019-10-08T19:54:05Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=ListIntegrations grpc.service=api.ApplicationService grpc.start_time="2019-10-08T19:54:05Z" grpc.time_ms=12.034 peer.address="127.0.0.1:46382" span.kind=server system=grpc
time="2019-10-08T19:54:06Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.ApplicationService grpc.start_time="2019-10-08T19:54:06Z" grpc.time_ms=5.56 peer.address="127.0.0.1:46382" span.kind=server system=grpc
time="2019-10-08T19:54:06Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=GetHTTPIntegration grpc.service=api.ApplicationService grpc.start_time="2019-10-08T19:54:06Z" grpc.time_ms=5.109 peer.address="127.0.0.1:46382" span.kind=server system=grpc
time="2019-10-08T19:54:07Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.ApplicationService grpc.start_time="2019-10-08T19:54:07Z" grpc.time_ms=7.211 peer.address="127.0.0.1:46382" span.kind=server system=grpc
It’s running in a Kubernetes environment, I still didn’t find a way to make it work but if I wait some time it starts working again.
This is a production server and it’s running very light.
Am I missing something?
Here is the deployment YAML just in case:
apiVersion: apps/v1
kind: Deployment
metadata:
name: lora-app-server-deployment
spec:
selector:
matchLabels:
app: lora-app-server
replicas: 1
template:
metadata:
labels:
app: lora-app-server
spec:
volumes:
- name: lora-app-server-config
configMap:
name: lora-app-server-config
containers:
- name: lora-app-server
image: loraserver/lora-app-server:3
ports:
- containerPort: 8080
name: ui
- containerPort: 8003
name: grpc
- containerPort: 8001
name: api
- containerPort: 8032
name: metrics
volumeMounts:
- name: lora-app-server-config
mountPath: /etc/lora-app-server/lora-app-server.toml
subPath: lora-app-server.toml
Thanks in advance!
PD: There should be 2 devices in that list