I feel totally stupid but I turn around with the Mosquitto authentication step.
I read lot of topic on this forum I had to spend next but I did not find the solution!
That’s what I understood, if I didn’t enable TLS/SSL certification so user and password are enough to enable the connection with the broker.
First question where can I enable TLS/SSL certification: postgres://loraserver_ns:dbpassword@localhost/loraserver_ns?sslmode=disable ???
Second question what is the difference between comment and uncomment “cafile /etc/mosquitto/certs/ca.crt”
“certfile /etc/mosquitto/certs/hostname.crt” “keyfile /etc/mosquitto/certs/hostname.key” if I didn’t enable TLS/SSL certification ???
Then the Log of my issue is clear TLS config is empty what does it mean ?
Ok so it doesn’t appear that Mosquitto is actually running or at least not the way it’s intended to. Could you try and stop Mosquitto from running by something like this code
sudo systemctl stop mosquitto
and then attempt to start it again by using the following line of code.
sudo mosquitto -c /etc/mosquitto/mosquitto.conf
It is just to check to see if everything is fine with the mosquitto.conf file. If you don’t see anything pop up after you run that second line open up another terminal window and run
netstat -plnt
again and you should see mosquitto attached to a port now. If errors do pop up they should point you in the direction of what might be the issue. Also feel free to post the errors if they don’t make sense.
First question where can I enable TLS/SSL certification: postgres://loraserver_ns:dbpassword@localhost/loraserver_ns?sslmode=disable ???
Second question what is the difference between comment and uncomment “cafile /etc/mosquitto/certs/ca.crt”
“certfile /etc/mosquitto/certs/hostname.crt” “keyfile /etc/mosquitto/certs/hostname.key” if I didn’t enable TLS/SSL certification ???
but what is next because with sudo mosquitto -c /etc/mosquitto/mosquitto.conf in background I can see mosquitto broker listen in port 1883 ok right but I get a failed with the loraserver:
Good to know, I had just uncommented those lines myself from the beginning as I did not setup those files at the time that I did my installation. Didn’t realize yours were still uncommented, that is my bad, should have asked at the beginning to clarify that.
Ok I begin to understand how to fill loraserver.toml it’s my luck
I wrote the result of openssl rand -base64 32 command in network_server.gateway.api.jwt_secret ok I’m glad then when I start loraserver and that I check it ( sudo systemctl start loraserver & journalctl -u loraserver)
Don’t know if I can be of any help with that error, I haven’t encountered it myself and I’m not entirely sure what it could be about. Though you did mention in another post that you were updating your postgresql I believe so maybe there was an issue with the install. Also from your earlier nestat -plnt print out, it does appear that much like the post you found relating to your error, that you have more then one instance of postgres running. You’ll need to remove the older one.