[ckan-dev] ckan errors by email?!?

simuli alice alice.j.simuli at gmail.com
Tue Sep 26 15:14:50 UTC 2017

I have been struggling with this error for long. I get it whenI run the
curl command as shown. I am new to ckan. Kindly assist.

(default) ds at ds-SATELLITE-C50-A:~$ curl -X GET "

    <title>Server Error</title>

    <h1>Server Error</h1>
    An internal server error occurred

    </html>(default) ds at ds-SATELLITE-C50-A:~$

On Mon, Sep 25, 2017 at 11:17 AM, Serban Teodorescu <
teodorescu.serban at gmail.com> wrote:

> Hi guys,
> Apparently this is completely undocumented and akward. Maybe nobody
> actually used it in a more serious setup.
> The documentation is talking about the ckan notifications. These are
> actually only the notifications about password reset, new user etc. The “
> other” notifications that can be generated and sent through email when
> ckan errors out (for responses with a 500 status code) are following a
> completely different path.
> I managed to follow the code with a colleague and I thought maybe someone
> will find it useful at some point.
> TLDR: to configure ckan to send you the errors and traces by email, you
> need to add to prod.ini, *in the [DEFAULT] section (NOT** in
> [server:main] or [app:main])* the following (in case you are using an
> external email server where you need a user and password and also
> encryption):
> smtp_server = your.email.server
> smtp_username = your.email.username
> smtp_password = your.email.password
> smtp_use_tls = True
> For setups where an email server is running internally and you dont need
> encryption and login, you can just skip the last three lines (user and
> password defaults to ‘’ and the use_tols is Flase by default).
> Cheers,
> --
> Serban Teodorescu
> SysEngineer / DevOps
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170926/48f884d5/attachment-0003.html>

More information about the ckan-dev mailing list