Failed to start ChirpStack Gateway Bridge

Hello,

I installed chripstack gateway bridge on raspberry pi and got the following error when I ran it.

raspberrypi chirpstack-gateway-bridge: level=fatal msg=“unmarshal config error” error=“3 error(s) decoding:\n\n* ‘integration.mqtt.auth.generic.ca_cert’ expected type ‘string’, got unconvertible type ‘[]interface {}’, value: ‘[/etc/chirpstack-gateway-bridge/ca.pem]’\n* ‘integration.mqtt.auth.generic.tls_cert’ expected type ‘string’, got unconvertible type ‘[]interface {}’, value: ‘[/etc/chirpstack-gateway-bridge/cert.pem]’\n* ‘integration.mqtt.auth.generic.tls_key’ expected type ‘string’, got unconvertible type ‘[]interface {}’, value: ‘[/etc/chirpstack-gateway-bridge/key.pem]’”
raspberrypi systemd[1]: chirpstack-gateway-bridge.service: Main process exited, code=exited, status=1/FAILURE
raspberrypi systemd[1]: chirpstack-gateway-bridge.service: Failed with result ‘exit-code’.
raspberrypi systemd[1]: chirpstack-gateway-bridge.service: Scheduled restart job, restart counter is at 5.
raspberrypi systemd[1]: Stopped ChirpStack Gateway Bridge.
raspberrypi systemd[1]: chirpstack-gateway-bridge.service: Start request repeated too quickly.
raspberrypi systemd[1]: chirpstack-gateway-bridge.service: Failed with result ‘exit-code’.
raspberrypi systemd[1]: Failed to start ChirpStack Gateway Bridge.

I doubly checked ca.pem/cert.pem/key.pem files and found no issues. They were copied and pasted from Semtech network server.

What is the issue?

Thanks,

Hi,

Do you mean Chirpstack NS?

Can you show the mqtt section of your toml config file?

Integration configuration.

[integration]

Payload marshaler.

This defines how the MQTT payloads are encoded. Valid options are:

* protobuf: Protobuf encoding

* json: JSON encoding (easier for debugging, but less compact than ‘protobuf’)

marshaler=“protobuf”

MQTT integration configuration.

[integration.mqtt]

Event topic template.

event_topic_template=“gateway/{{ .GatewayID }}/event/{{ .EventType }}”

Command topic template.

command_topic_template=“gateway/{{ .GatewayID }}/command/#”

MQTT authentication.

[integration.mqtt.auth]

Type defines the MQTT authentication type to use.

Set this to the name of one of the sections below.

type=“generic”

# Generic MQTT authentication.
[integration.mqtt.auth.generic]
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
#server="tcp://127.0.0.1:1883"
server="ssl://eu868.mqtt.loracloud.com:8883"
# Connect with the given username (optional)
username=""

# Connect with the given password (optional)
password=""

ca_cert="/etc/chirpstack-gateway-bridge/ca.pem"

tls_cert="/etc/chirpstack-gateway-bridge/cert.pem"

tls_key="/etc/chirpstack-gateway-bridge/key.pem"

Here are MQTT section of toml config file. Please let me know if anything wrong.

Thansk,

Sounds ok…
Did you check the access right of the pem files?
Maybe trying to chmod 777 as a test…