Skip to content
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

ghost doctor fails to recognize alternate SES settings #467

Closed
alikuru opened this issue Aug 29, 2017 · 3 comments
Closed

ghost doctor fails to recognize alternate SES settings #467

alikuru opened this issue Aug 29, 2017 · 3 comments
Assignees

Comments

@alikuru
Copy link

alikuru commented Aug 29, 2017

Transferring issue here from #8952.

I noticed this error when I wanted to test my config after I upgrading to 1.8.0.

✖ Validating config
A ConfigError occurred.

Error detected in the production configuration.

Message: Invalid mail transport
Configuration Key(s): mail.transport
Current Value(s): SES

Help: Run `ghost config <key> <new value>` for each key to fix the issue.


Debug Information:
    Node Version: v6.9.2
    Ghost-CLI Version: 1.1.1
    Environment: production
    Command: 'ghost doctor startup'

My SES config is as follows;

"mail": {
  "from": "'John Doe' <john@doe.com>",
  "transport": "SES",
  "options": {
    "AWSAccessKeyID": "AWSACCESSKEY",
    "AWSSecretKey": "/AWS/SECRET"
  }
}

I'm using pm2 to run Ghost and everything, including emails, seem to work. So, I assume this must be an issue with the doctor.

@adriaan-pelzer
Copy link

Is there any way ghost can be started without running ghost doctor?
I want to use SES, and it works, but I can't start ghost because of this issue.

@luizkowalski
Copy link

same issue here:

A ConfigError occurred.

Error detected in the production configuration.

Message: Invalid mail transport
Configuration Key(s): mail.transport
Current Value(s): SES

Help: Run `ghost config <key> <new value>` for each key to fix the issue.


Debug Information:
    Node Version: v6.11.2
    Ghost-CLI Version: 1.1.2
    Environment: production
    Command: 'ghost start'

@adriaan-pelzer
Copy link

I've had to fix it as follows:
In lib/commands/config/advanced.js: find the array: ['smtp', 'sendmail', 'direct'] and add 'ses', to make it ['smtp', 'sendmail', 'direct', 'ses']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants