Chirpstack-network-server:8000-->context deadline exceeded (code: 2)

I installed chirpstack by docker and when registering a network server by the web interface is having this problem.

Does anyone know how to solve this problem? I’ve tried to put ip:8000, localhost:8000, 127.0.0.1:8000 and do not work

The error log:

chirpstack-application-server_1 | time=“2020-06-06T05:05:19Z” level=warning msg=“ccResolverWrapper: reporting error to cc: dns: A record lookup error: lookup chirpstack-network-server on 127.0.0.11:53: dial udp 127.0.0.11:53: operation was canceled”
chirpstack-application-server_1 | time=“2020-06-06T05:05:19Z” level=error msg=“finished unary call with code Unknown” ctx_id=da9c6aef-b1aa-449f-b4cb-62dd3d367fa8 error=“rpc error: code = Unknown desc = context deadline exceeded” grpc.code=Unknown grpc.method=Create grpc.service=api.NetworkServerService grpc.start_time=“2020-06-06T05:05:14Z” grpc.time_ms=5008.91 peer.address=“127.0.0.1:43694” span.kind=server system=grpc
chirpstack-application-server_1 | time=“2020-06-06T05:06:29Z” level=warning msg=“creating insecure network-server client” server=“chirpstack-network-server:8000”
chirpstack-application-server_1 | time=“2020-06-06T05:06:34Z” level=warning msg=“ccResolverWrapper: reporting error to cc: dns: A record lookup error: lookup chirpstack-network-server on 127.0.0.11:53: dial udp 127.0.0.11:53: operation was canceled”
chirpstack-application-server_1 | time=“2020-06-06T05:06:34Z” level=error msg=“finished unary call with code Unknown” ctx_id=8215f673-4e7b-43bd-946b-14322dadd115 error=“rpc error: code = Unknown desc = context deadline exceeded” grpc.code=Unknown grpc.method=Create grpc.service=api.NetworkServerService grpc.start_time=“2020-06-06T05:06:29Z” grpc.time_ms=5008.457 peer.address=“127.0.0.1:43694” span.kind=server system=grpc

read here: https://forum.chirpstack.io/t/error-context-deadline-exceeded/628

1 Like

I resolved to add no code in the docker-compose.yml

dns:

  • 8.8.8.8

Hi, i try to fix adding dns and it work in a network internet. But if i try it into a private network it not works. Can anyone suggest any workaround ?

hello filirnd,

I have not tested it on a private network. Tried to put in place of the DNS IP of google put the IP of your gateway for example?

Hello, here is a new way to resolve this problem:
I had the same issue in a local test context. I’ve installed a Docker architecture of Chirpstack. When you create your Network Server on the web interface of the application server, make sure to put the right server name (the Docker one) instead of localhost:8000
To get this name, type the following command in your CLI : sudo docker ps | grep network-server
Copy the container DNS name (last column) and paste it in the field. (Do not forget the port)

2 Likes