No global integrations?

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!

Hi there. Do you have this section:

[application_server.integration]

in your lora-app-server.toml file?

It seems to me that you have configured (or maybe its the default configuration) to integrate to an MQTT broker. If you don’t know about the integrations of lora-app-server you can check them in this link:
https://www.loraserver.io/lora-app-server/install/config/

Hope it helps :slight_smile:

Hi!
The TOML file is in the first post. I intentionally removed the [application_server.integration] because I don’t want a global integration.
I followed the configuration guides and it’s seems that it shouldn’t be mandatory.
I guess I will need to add MQTT integration in order to make it work.

Thanks!

It does not, only the MQTT integration is the default (for backwards compatibility reasons). Just include the section where you enable the global integrations and configure it to an empty list.

1 Like