-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v6.4.0: Cannot connect to local Greengrass broker (moquette) #57
Comments
I think there is not much about greengrass configuration, I am using mostly default settings. Please let me know if I can provide more info or can try it out on some test build of a docker image. |
Thanks for the information. Are you able to connect using MQTT Explorer from inside a Docker container? I'm wondering if that might be causing an issue. Have you installed the certificate in the Docker container? I'm not an expert on certificates but I get similar errors if I don't have the client certificate installed when running on Windows. |
Thanks for quick replys. Thats an interesting tought. I am also not an expert on certificates. Here is what I tried after that (with same setup as in description):
That connected sucessfully and greengrass logs are:
Running |
I just created a new release (v6.2.0) that may fix some of the issues you were having. I made a number of changes to configuring TLS for both HTTP and MQTT. Note that the configuration file format for setting certificate paths has changed to the below: - mqtt-relay:
server: localhost
port: 8883
clientId: mtconnect-test # Set the ClientId to the AWS Thing ID
tls:
pem:
certificateAuthority: certs/AmazonRootCA1.pem
certificatePath: certs/2316549874654321654984984158961634984794-certificate.pem.crt
privateKeyPath: certs/2316549874654321654984984158961634984794-private.pem.key
documentFormat: json-cppagent
currentInterval: 5000
sampleInterval: 500 There may be some work left to do so let me know if you are still having issues with it. |
Sorry for taking it so long to re-test. Unfortunately the issue still remains for me.
I could help with reproducing the issue by putting Greengrass gateway into public and giving you temporary certificates to connect with. Let me know if that would help. Our instance of Greegrass gateway is nothing special, it runs default Moquette broker and does not do any magic with root certs (using default AWS root certs). Would be great to have this fixed as that will allow us to use MTConnect.NET agent in emulators (linux/docker based) simplifying MTConnect integration. I think issue only present on non-windows platforms. |
#73 works for my needs so far, I'll close this. |
Here is an agent config:
Starting agent with
docker compose up
compose config:Output on console:
Logs from greengrass:
I am guessing it's something about MQTT library configuration, as I can connect to same broker with same certificates using
MQTT Explorer
:In which case, Greengrass logs look like:
The text was updated successfully, but these errors were encountered: