Hi there!
I’m deploying LoraAppServer in a Kubernetes cluster. I’m uploading the TOML file as a ConfigMap and the content is as follows:
[general]
log_level=4
password_hash_iterations=100000
[postgresql]
dsn="postgres://[REDACTED]:5432/loraserver_as?sslmode=disable"
automigrate=true
[redis]
url="redis://redis-master:6379"
[application_server]
id="4cb30e09-ab8d-43d9-9c35-fc41a3c1b632"
[application_server.api]
bind="0.0.0.0:8001"
public_host="lora-app-server-api:8001"
[application_server.external_api]
bind="0.0.0.0:8080"
jwt_secret="[REDACTED]"
[application_server.remote_multicast_setup]
sync_interval="1s"
sync_retries=3
sync_batch_size=100
[application_server.fragmentation_session]
sync_interval="1s"
sync_retries=3
sync_batch_size=100
[metrics]
[metrics.prometheus]
endpoint_enabled=true
bind="0.0.0.0:8032"
api_timing_histogram=true
There’s no global integration defined here… but the pod logs shows the following:
time="2019-09-12T17:45:17Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=3.3.0
time="2019-09-12T17:45:17Z" level=info msg="storage: setting up storage package"
time="2019-09-12T17:45:17Z" level=info msg="storage: setting up Redis pool"
time="2019-09-12T17:45:17Z" level=info msg="storage: connecting to PostgreSQL database"
time="2019-09-12T17:45:17Z" level=info msg="storage: applying PostgreSQL data migrations"
time="2019-09-12T17:45:17Z" level=info msg="storage: PostgreSQL data migrations applied" count=0
time="2019-09-12T17:45:17Z" level=info msg="integration/mqtt: TLS config is empty"
time="2019-09-12T17:45:17Z" level=info msg="integration/mqtt: connecting to mqtt broker" server="tcp://localhost:1883"
time="2019-09-12T17:45:17Z" level=error msg="integration/mqtt: connecting to broker error, will retry in 2s: Network Error : dial tcp 127.0.0.1:1883: connect: connection refused"
time="2019-09-12T17:45:19Z" level=error msg="integration/mqtt: connecting to broker error, will retry in 2s: Network Error : dial tcp 127.0.0.1:1883: connect: connection refused"
The AppServer is trying to connect to a MQTT broker in port 1883.
Any ideas on what am I missing?
Thanks in advance!