I am very sorry to write twice in such a short period of time. I did my best to troubleshoot the issue, but I cannot wrap my head around this. The error message doesn't describe the issue, and I don't know if you can replicate it. If it's too much work to investigate, no problem :)
When I install and start the 0.2.0 plugin, I get the following error in the logs (see full log at the bottom):
unable to start plugin: autotranslate: Must have AWS Access Key ID
I did the following steps to troubleshoot:
Deleted the plugin in the system console
Stopped mattermost
Deleted the settings in config.json related to the plugin
Started Mattermost
Installed the plugin in system console
Put the AWS Keys in the plugin settings
Attempted to start the plugin
Things I looked at:
I checked the config.json file, there is no issue with it. The AWS values are saved correctly.
I tried on a test server (same DB and server specs, but no other plugins and different config.json), same issue.
I looked at the code. Here is the part that seems to check for the AWS key in server/plugin.go:
func (p *Plugin) IsValid() error {
if p.AWSAccessKeyID == "" {
return fmt.Errorf("Must have AWS Access Key ID")
}
if p.AWSSecretAccessKey == "" {
return fmt.Errorf("Must have AWS Secret Access Key")
}
if p.AWSRegion == "" {
return fmt.Errorf("AWS Region")
}
return nil
}
And here is the definition in the plugin.json file:
"settings": [
{
"key": "AWSAccessKeyID",
"display_name": "AWS Access Key ID",
"type": "text",
"help_text": "The access key ID from AWS"
},
In the config.json file, the keys are not capitalized:
Oh sorry about that. It was unintentionally build out of master. I'm looking at it now. I deleted the release version and will update soon. Thank you for the report!
Hello again,
I am very sorry to write twice in such a short period of time. I did my best to troubleshoot the issue, but I cannot wrap my head around this. The error message doesn't describe the issue, and I don't know if you can replicate it. If it's too much work to investigate, no problem :)
When I install and start the 0.2.0 plugin, I get the following error in the logs (see full log at the bottom):
I did the following steps to troubleshoot:
Things I looked at:
I looked at the code. Here is the part that seems to check for the AWS key in server/plugin.go:
And here is the definition in the plugin.json file:
In the config.json file, the keys are not capitalized:
Could this be it? If it is and you don't have the time, I can try making a pull request where I rename all the keys to be lower case in the repo.
I'm running MM 5.12 on a Linode server running Debian Stretch.
If you need me to do anything to help, please ask!
PS: This is the full error log: