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

Error in notification emails #1659

Closed
nelsonribeiro opened this issue Sep 3, 2018 · 3 comments
Closed

Error in notification emails #1659

nelsonribeiro opened this issue Sep 3, 2018 · 3 comments

Comments

@nelsonribeiro
Copy link

Hi.
I give this error when i am tryng to send notifications:

~$ lemur notify expirations
Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertCISSourcePlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
Starting to notify subscribers about expiring certificates!
Finished notifying subscribers about expiring certificates! Sent: 0 Failed: 2

Can you help me to understand what is mean? Where can I see the detail of failed emails?
Thanks

@castrapel
Copy link
Contributor

It's a bit difficult without the context of your environment. If you have Sentry enabled, you should be able to receive a stack trace of the problem. I'll try to get logging added for this.

I recommend you first check your configuration to ensure it is set correctly. We support ses and smtp. Here's an example configuration:

LEMUR_EMAIL_SENDER = 'smtp'
LEMUR_EMAIL = "[email protected]"
MAIL_SERVER = "smtp.yourcompany.com"

@nelsonribeiro
Copy link
Author

nelsonribeiro commented Sep 6, 2018

Hi. What is Sentry? Where can I see the logs? Currently I do not know where to consult, this is my big problem.
Here is an example of my configuration:

Mail Server

LEMUR_EMAIL_SENDER='SMTP'
LEMUR_EMAIL = '[email protected]'
LEMUR_SECURITY_TEAM_EMAIL = ['[email protected]']
LEMUR_DEFAULT_EXPIRATION_NOTIFICATION_INTERVALS = [30, 15, 2]
LEMUR_SECURITY_TEAM_EMAIL_INTERVALS = [15, 2]

MAIL_SERVER : 'relayinter.moc.sgps'
MAIL_PORT : 25
MAIL_USE_TLS : False
MAIL_USE_SSL : False
MAIL_DEBUG : 'app.debug'
MAIL_USERNAME : None
MAIL_PASSWORD : None
MAIL_DEFAULT_SENDER : None
MAIL_MAX_EMAILS : None
MAIL_SUPPRESS_SEND : 'app.testing'
MAIL_ASCII_ATTACHMENTS : False

@castrapel
Copy link
Contributor

castrapel commented Sep 10, 2018

Hi, I pushed this change which adds some logging to the messaging plugin: #1690. Please pull the latest code down and give it a shot. I'll close this for now but please re-open if it doesn't help you diagnose your issue.

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

2 participants