Hello, I’m trying to add my NS, but everytime I try to add it, I get this error:
context deadline exceeded (code: 2)
In docker console it looks like this:
chirpstack-application-server_1 | time="2022-07-08T06:35:43.941920744Z" level=warning msg="creating insecure network-server client" server="localhost:9191"
chirpstack-application-server_1 | time="2022-07-08T06:35:43.942937327Z" level=warning msg="[core] grpc: addrConn.createTransport failed to connect to {localhost:9191 localhost:9191 <nil> 0 <nil>}. Err: connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:9191: connect: connection refused\". Reconnecting..."
chirpstack-application-server_1 | time="2022-07-08T06:35:44.443273866Z" level=error msg="finished unary call with code Unknown" ctx_id=9b4eca8c-ced8-4e36-8a3a-6bc6399d9eb2 error="rpc error: code = Unknown desc = context deadline exceeded" grpc.code=Unknown grpc.method=Create grpc.service=api.NetworkServerService grpc.start_time="2022-07-08T06:35:43Z" grpc.time_ms=505.026 peer.address="127.0.0.1:36264" span.kind=server system=grpc
My NS config:
# See https://www.chirpstack.io/network-server/install/config/ for a full
# configuration example and documentation.
#
# This file is for the EU868 band. See the examples/ folder for more
# configuration examples.
[postgresql]
dsn="postgres://chirpstack_ns:chirpstack_ns@postgresql/chirpstack_ns?sslmode=disable"
[redis]
url="redis://redis:6379"
[network_server]
net_id="000000"
[network_server.band]
name="EU433"
[network_server.network_settings]
frequency=433000000
min_dr=0
max_dr=5
[[network_server.network_settings.extra_channels]]
frequency=433175000
min_dr=0
max_dr=5
[network_server.api]
# ip:port to bind the api server
bind="0.0.0.0:9191"
[network_server.gateway.backend.mqtt]
server="tcp://mosquitto:1883"
[join_server.default]
server="http://chirpstack-application-server:8003"
My AS config:
# See https://www.chirpstack.io/application-server/install/config/ for a full
# configuration example and documentation.
[postgresql]
dsn="postgres://chirpstack_as:chirpstack_as@postgresql/chirpstack_as?sslmode=disable"
[redis]
url="redis://redis:6379"
[application_server.integration.mqtt]
server="tcp://mosquitto:1883"
[application_server.api]
public_host="chirpstack-application-server:8001"
public_host="myServerIp:9090"
[application_server.external_api]
bind="0.0.0.0:9090"
jwt_secret="verysecret"
This is what I put into add fields:
This happens even If I use default NS config, only thing I have changed is the AS config where I use different port, because I use port 8080 for other website
What am I doing wrong?