- 最新
- 投票最多
- 评论最多
The error "failed to read credential" means that Greengrass was not able to find the password for the component's runWith user. This does not only apply to EMQX, but to any component which runs an external process. This happens when Greengrass is not running as the user which our instructions would have you run it, or if you did not create and store a user's password following: https://docs.aws.amazon.com/greengrass/v2/developerguide/quick-installation.html
If Greengrass is running as a Windows system service, which is what our instructions will have you do, then the user's password must be stored in the LOCAL_SYSTEM account's credential store. Our instructions have you store the password using the PsExec utility, so see that portion of the instructions to make sure that you've followed that.
If you aren't running Greengrass as a system service, then you should stop Greengrass and instead run it as a system service.

Hi, the log which you have posted doesn't contain any errors. Can you provide the EMQX component log file?
I may also recommend opening a support case through the AWS Console for better private support.
One reason why it may fail on startup is if you have an existing program using the same port (8883). Similarly, the Windows firewall (if enabled) may stop things from functioning properly. You can use the following command as an administrator to enable inbound MQTT connections to port 8883.
New-NetFirewallRule -DisplayName "Allow MQTT" -Direction Inbound -Protocol TCP -LocalPort 8883 -Action AllowI have updated the original post to include the EMQX log (apologies, I thought it was captured in the greengrass.log). Thanks for your help, happy to open a private support ticket if needed