ChirpStack Gateway Bridge Config Problem [AWS Ubuntu - RAK7258]

Good day,
I have a problem where my gateway-bridge** where there are errors initially then it connects to the the UDP and MQTT in an unstable way** as seen below:

Here is the actual terminal results:

ubuntu@ip-172-31-41-91 : ~ $ journalctl -u chirpstack-gateway-bridge -f -n 50

– Logs begin at Wed 2020-11-18 23:22:05 UTC. –

Nov 19 00:12:04 ip-172-31-41-91 chirpstack-gateway-bridge[2868]: time=“2020-11-19T00:12:04Z” level=error msg=“integration/mqtt: connection error” error=“Network Error : dial tcp 127.0.0.1:1883: connect: connection refused”

Nov 19 00:12:06 ip-172-31-41-91 chirpstack-gateway-bridge[2868]: time=“2020-11-19T00:12:06Z” level=error msg=“integration/mqtt: connection error” error=“Network Error : dial tcp 127.0.0.1:1883: connect: connection refused”

Nov 19 00:12:08 ip-172-31-41-91 chirpstack-gateway-bridge[2868]: time=“2020-11-19T00:12:08Z” level=error msg=“integration/mqtt: connection error” error=“Network Error : dial tcp 127.0.0.1:1883: connect: connection refused”

Nov 19 00:12:10 ip-172-31-41-91 chirpstack-gateway-bridge[2868]: time=“2020-11-19T00:12:10Z” level=error msg=“integration/mqtt: connection error” error=“Network Error : dial tcp 127.0.0.1:1883: connect: connection refused”

Nov 19 00:13:10 ip-172-31-41-91 chirpstack-gateway-bridge[2868]: time=“2020-11-19T00:13:10Z” level=info msg=“integration/mqtt: connected to mqtt broker”

Nov 19 00:14:03 ip-172-31-41-91 systemd[1]: Stopping ChirpStack Gateway Bridge…

Nov 19 00:14:03 ip-172-31-41-91 chirpstack-gateway-bridge[2868]: time=“2020-11-19T00:14:03Z” level=info msg=“signal received” signal=terminated

Nov 19 00:14:03 ip-172-31-41-91 chirpstack-gateway-bridge[2868]: time=“2020-11-19T00:14:03Z” level=warning msg=“shutting down server”

Nov 19 00:14:03 ip-172-31-41-91 systemd[1]: Stopped ChirpStack Gateway Bridge.

Nov 19 00:14:03 ip-172-31-41-91 systemd[1]: Started ChirpStack Gateway Bridge.

Nov 19 00:14:04 ip-172-31-41-91 chirpstack-gateway-bridge[17796]: time=“2020-11-19T00:14:04Z” level=info msg=“starting ChirpStack Gateway Bridge” docs=“https://www.chirpstack.io/gateway-bridge/” version=3.9.2

Nov 19 00:14:04 ip-172-31-41-91 chirpstack-gateway-bridge[17796]: time=“2020-11-19T00:14:04Z” level=info msg=“backend/semtechudp: starting gateway udp listener” addr=“0.0.0.0:1700”

Nov 19 00:14:04 ip-172-31-41-91 chirpstack-gateway-bridge[17796]: time=“2020-11-19T00:14:04Z” level=info msg=“integration/mqtt: connected to mqtt broker”

> Nov 20 00:30:48 ip-172-31-41-91 systemd[1]: Stopping ChirpStack Gateway Bridge…

Nov 20 00:30:48 ip-172-31-41-91 chirpstack-gateway-bridge[17796]: time=“2020-11-20T00:30:48Z” level=info msg=“signal received” signal=terminated

Nov 20 00:30:48 ip-172-31-41-91 chirpstack-gateway-bridge[17796]: time=“2020-11-20T00:30:48Z” level=warning msg=“shutting down server”

Nov 20 00:30:48 ip-172-31-41-91 systemd[1]: Stopped ChirpStack Gateway Bridge.

Nov 20 00:30:48 ip-172-31-41-91 systemd[1]: Started ChirpStack Gateway Bridge.

Nov 20 00:30:48 ip-172-31-41-91 chirpstack-gateway-bridge[15781]: time=“2020-11-20T00:30:48Z” level=info msg=“starting ChirpStack Gateway Bridge” docs=“https://www.chirpstack.io/gateway-bridge/” version=3.9.2

Nov 20 00:30:48 ip-172-31-41-91 chirpstack-gateway-bridge[15781]: time=“2020-11-20T00:30:48Z” level=info msg=“backend/semtechudp: starting gateway udp listener” addr=“0.0.0.0:1700”

Nov 20 00:30:48 ip-172-31-41-91 chirpstack-gateway-bridge[15781]: time=“2020-11-20T00:30:48Z” level=info msg=“integration/mqtt: connected to mqtt broker”

My main problem could be I have the wrong config file (.toml), do you think that is the problem?

Notes: I followed the tutorial here

ANY AND ALL HELP IS APPRECIATED

Possible you have the termination on connection error set to true?

  # Terminate on connect error.
  #
  # When set to true, instead of re-trying to connect, the ChirpStack Gateway Bridge
  # process will be terminated on a connection error.
  terminate_on_connect_error=true

Is the mqtt broker on localhost? Odd that it would have an issue connecting if so.