I’m encountering a problem when trying to start ChirpStack. The error message I receive is:
level=fatal msg="setup backend error: new backend error: read ca cert error: open /etc/chirpstack-gateway-bridge/certs/ca.pem: no such file or directory"
From what I understand, the “no such file or directory” error could be due to incorrect permissions or ownership of the certificate files. To check the permissions, I used the following command:
If the issue is related to the ownership or permissions of my certificate files, could you please advise on the appropriate settings? Or could there be another underlying problem?
You didn’t show the Chirpstack service in the shared docker-compose.yml but assuming you didn’t change anything the problem is probably that the certificate folder is not mounted to your container. Here’s my chirpstack service from docker-compose.yml:
My certificate folder ‘cscerts’ is in the same directory as the docker-compose.yml file, then when the container is created it mounts it to /etc/chirpstack/certs
Then in my Chirpstack.toml I reference them like this:
EDIT: Sorry I clearly wasn’t paying enough attention to notice that your issue was with the gateway bridge and not chirpstack itself, I have my gateway bridge installed on the gateway so I am not super familiar.
One way to verify whether this a mounting or permissions issue is by running the docker-compose with sudo docker-compose up -d and then entering the gateway bridge container using docker exec -it <mycontainer> sh, where the container name is displayed when first running the docker-compose. You may have to edit your gateway-bridge.toml and comment out the references to the certificates for now so the container doesn’t exit.
Then check if the certificates are there under /etc/chirsptack-gateway-bridge/certs.
If they are there it’s a permission issue, if they are not it’s a mounting issue.
./configuration/chirpstack refers to the path on the host.
/etc/chirpstack refers to the path inside the containers, indicating where the host directory will be visible within the container.
Consequently, I should have placed the certs/ca.pem file in ./configuration/chirpstack on my host, which I initialy did incorrectly (the same applies to chirpstack-gateway-bridge certificates).
This experience has clarified my understanding and shown me that I need to learn more about the technology I work with)