On Thu, Jun 10, 2010 at 11:22 AM, adrian <[email protected]> wrote:

>
> I have seen this error now on 3 projects and two OS (Mac & Linux), but
> only with the dev server.
> The view will begin the response and then hang for a long time (30+
> seconds), then this error is generated and it
> continues normally.   Usually it occurs on a page that either parses
> or uploads files.   None of these pages send any mail.   Anyone know
> why smtp is trying to connect and how to fix it?
>
> Traceback (most recent call last):
>  File "/Users/adriannye/ups_mobile/trunk/libs/django/core/servers/
> basehttp.py", line 279, in run
>    self.result = application(self.environ, self.start_response)
>  File "/Users/adriannye/ups_mobile/trunk/libs/django/core/servers/
> basehttp.py", line 651, in __call__
>    return self.application(environ, start_response)
>  File "/Users/adriannye/ups_mobile/trunk/libs/django/core/handlers/
> wsgi.py", line 245, in __call__
>    response = middleware_method(request, response)
>  File "/Users/adriannye/ups_mobile/trunk/libs/django/middleware/
> common.py", line 96, in process_response
>    % (referer, request.get_full_path(), ua, ip))
>

The next line down in the stack trace is in the code that actually is trying
to send the mail, so the line above indicates the code that has decided it
needs to send mail. Checking the source, that is in here:

http://code.djangoproject.com/browser/django/tags/releases/1.2.1/django/middleware/common.py#L82

So, server is returning a 404, settings is configured with
SEND_BROKEN_LINK_EMAILS,
the referring page appears to be internal, etc. Fix any of those (or
configure a reachable email provider in settings) and it should go away.

 File "/Users/adriannye/ups_mobile/trunk/libs/django/core/mail.py",
> line 426, in mail_managers
>    ).send(fail_silently=fail_silently)
>  File "/Users/adriannye/ups_mobile/trunk/libs/django/core/mail.py",
> line 266, in send
>    return self.get_connection(fail_silently).send_messages([self])
>  File "/Users/adriannye/ups_mobile/trunk/libs/django/core/mail.py",
> line 166, in send_messages
>    new_conn_created = self.open()
>  File "/Users/adriannye/ups_mobile/trunk/libs/django/core/mail.py",
> line 131, in open
>    local_hostname=DNS_NAME.get_fqdn())
>  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/smtplib.py", line 244, in __init__
>    (code, msg) = self.connect(host, port)
>  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/smtplib.py", line 310, in connect
>    raise socket.error, msg
> error: (60, 'Operation timed out')
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to