Jump to content

Setup 'send server error email'


Remus Avram

Recommended Posts

Hi all,

the ftrack server doesn't send emails if there is something wrong.
When I use Mail server tests -> "send server error email" I got 'A server error occured. Please try again or contact support.'
When I use Mail server tests -> "send test email to current user" it sent the email!
The ftrack.ini file looks like this:

[DEFAULT]
...........................................

#server error messages
ftrack.error_email = <email_address>
ftrack.smtp_server = <smtp_dns_server>
ftrack.from_address = <email_address>

#turbomail
mail.on = true
mail.transport = smtp
mail.smtp.server = <smtp_dns_server>
mail.encoding = utf-8
mail.smtp.debug = true
mail.message.author = <email_address>
.................................

Logs:
ftrack.log

[pid: 10614|app: 0|req: 3/23] <ip> () {52 vars in 977 bytes} [Tue Sep 27 18:42:42 2016] POST /tests/errormail => generated 33 bytes in 51 msecs (HTTP/1.1 500) 2 headers in 98 bytes (1 switches on core 5)

ftrack_nginx.log

<ip> - - [27/Sep/2016:18:44:04 +0200] "POST /tests/errormail HTTP/1.1" 500 33 "http://ftrack.server/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"

Sentry report:

Exception: TestErrorMail

Exception: TestErrorMail
  File "raven/middleware.py", line 35, in __call__
    iterable = self.application(environ, start_response)
  File "beaker/middleware.py", line 73, in __call__
    return self.app(environ, start_response)
  File "beaker/middleware.py", line 155, in __call__
    return self.wrap_app(environ, session_start_response)
  File "routes/middleware.py", line 130, in __call__
    response = self.app(environ, start_response)
  File "pylons/wsgiapp.py", line 125, in __call__
    response = self.dispatch(controller, environ, start_response)
  File "pylons/wsgiapp.py", line 324, in dispatch
    return controller(environ, start_response)
  File "ftserver/api/controller.py", line 337, in __call__
  File "pylons/controllers/core.py", line 221, in __call__
    response = self._dispatch_call()
  File "pylons/controllers/core.py", line 172, in _dispatch_call
    response = self._inspect_call(func)
  File "pylons/controllers/core.py", line 107, in _inspect_call
    result = self._perform_call(func, args)
  File "ftserver/controllers/tests.py", line 165, in errormail

 

How we can debug it deeper?
How can we configure it correctly?

 

Cheers!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...