Edgewall Software

Ticket #1873 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Notification Error

Reported by: sekhargs@… Owned by: jonas
Priority: normal Milestone:
Component: ticket system Version: 0.8.4
Severity: minor Keywords: notification email
Cc: sekhargs@…

Description (last modified by cmlenz) (diff)

When I enable Notify option, I am getting the below error.

Python traceback
Traceback (most recent call last):
  File "C:\PYTHON23\Lib\site-packages\trac\core.py", line 531, in cgi_start
    real_cgi_start()
  File "C:\PYTHON23\Lib\site-packages\trac\core.py", line 526, in real_cgi_start
    dispatch_request(path_info, args, req, env)
  File "C:\PYTHON23\Lib\site-packages\trac\core.py", line 441, in dispatch_request
    module.run()
  File "C:\PYTHON23\Lib\site-packages\trac\Module.py", line 44, in run
    self.render()
  File "C:\PYTHON23\Lib\site-packages\trac\Ticket.py", line 450, in render
    self.save_changes (id)
  File "C:\PYTHON23\Lib\site-packages\trac\Ticket.py", line 379, in save_changes
    tn.notify(ticket, newticket=0, modtime=now)
  File "C:\PYTHON23\Lib\site-packages\trac\Notify.py", line 228, in notify
    NotifyEmail.notify(self, ticket['id'], subject)
  File "C:\PYTHON23\Lib\site-packages\trac\Notify.py", line 131, in notify
    Notify.notify(self, resid)
  File "C:\PYTHON23\Lib\site-packages\trac\Notify.py", line 79, in notify
    self.begin_send()
  File "C:\PYTHON23\Lib\site-packages\trac\Notify.py", line 139, in begin_send
    self.server = smtplib.SMTP(self.smtp_server)
  File "C:\Python23\lib\smtplib.py", line 240, in __init__
    (code, msg) = self.connect(host, port)
  File "C:\Python23\lib\smtplib.py", line 288, in connect
    for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
gaierror: (7, 'getaddrinfo failed')

The trac.ini Settings are as follows:

[notification]
smtp_enabled = TRUE
smtp_replyto = sekhargs@medicomsoft.com
smtp_always_cc = 
smtp_server = medicomsoft.com
smtp_from = ravi@medicomsoft.com
always_notify_reporter = FALSE

Attachments

Change History

Changed 3 years ago by cmlenz

  • description modified (diff)
  • milestone 0.8.3 deleted

Improved readability of description

Changed 3 years ago by Matthijs Kooijman <m.kooijman@…>

It seems the smtp host used is perfectly resolvable, I'm not sure what is causing this error.

You do seem to be using medicomsoft.com as the smtp host, while you should be using smtp.medicomsoft.com instead. Maybe that will help?

Changed 3 years ago by eblot

  • keywords notification email added; Notify removed

Changed 3 years ago by eblot

  • priority changed from high to normal
  • status changed from new to closed
  • resolution set to invalid

medicomsoft.com is a domain.

  • The default name resolution leads to 204.174.223.150, which does not serve SMTP requests.
  • The STMP service for this domain seems to be available on smtp.medicomsoft.com (204.174.223.198):
    nslookup
    > set query=MX
    > medicomsoft.com
    medicomsoft.com mail exchanger = 10 smtp.medicomsoft.com.
    
    MX means "Mail Exchanger" for the DNS request

However, the trace log seems to show that there is an additional error, as the expected error message with a invalid SMTP server would be something like "Connection refused". You may experience a name resolution error as well.
You can use "nslookup" - available on any platform (Windows, Unix, Mac, ...) - to double check that your system is able to resolve 'smtp.medicomsoft.com' into a valid IP address.

Feel free to reopen this ticket if you still experience a problem with a valid SMTP server.

Add/Change #1873 (Notification Error)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.