SMTPRecipientsRefused
Python 2.3.5: /usr/bin/python2.3
Fri May 9 19:03:10 2008

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/rockhoward/lib/python2.3/site-packages/fcgi.py in run(self=<fcgi.Request object>)
  580         """Runs the handler, flushes the streams, and ends the request."""
  581         try:
  582             protocolStatus, appStatus = self.server.handler(self)
  583         except:
  584             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <fcgi.Request object>, self.server = <fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object>>

 /home/rockhoward/lib/python2.3/site-packages/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>)
 1257             self._app_lock.acquire()
 1258         try:
 1259             result = self.application(environ, start_response)
 1260             try:
 1261                 for data in result:
result = None, self = <fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler instance>, environ = {'DOCUMENT_ROOT': '/home/rockhoward/rockhoward.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'rockhoward.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response>

 /home/rockhoward/django_src/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler instance>, environ={'DOCUMENT_ROOT': '/home/rockhoward/rockhoward.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'rockhoward.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>)
  157         try:
  158             request = WSGIRequest(environ)
  159             response = self.get_response(request.path, request)
  160         finally:
  161             db.db.close()
response undefined, self = <django.core.handlers.wsgi.WSGIHandler instance>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler instance>>, request = <DjangoRequest GET:<MultiValueDict: {}>, POST:<M...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, request.path = '/home/'

 /home/rockhoward/django_src/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler instance>, path='/home/', request=<DjangoRequest GET:<MultiValueDict: {}>, POST:<M...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>)
  101                 subject = 'Database error (%s IP): %s' % ((request.META.get('REMOTE_ADDR') in INTERNAL_IPS and 'internal' or 'EXTERNAL'), getattr(request, 'path', ''))
  102                 message = "%s\n\n%s" % (self._get_traceback(), request)
  103                 mail_admins(subject, message, fail_silently=True)
  104                 return self.get_friendly_error_response(request, resolver)
  105         except exceptions.PermissionDenied:
mail_admins = <function mail_admins>, subject = 'Database error (EXTERNAL IP): /home/', message = 'Traceback (most recent call last):\n\n File "/hom...gi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 0)}>', fail_silently undefined, builtin True = True

 /home/rockhoward/django_src/django/core/mail.py in mail_admins(subject='Database error (EXTERNAL IP): /home/', message='Traceback (most recent call last):\n\n File "/hom...gi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 0)}>', fail_silently=True)
   52     "Sends a message to the admins, as defined by the ADMINS constant in settings.py."
   53     from django.conf.settings import ADMINS, SERVER_EMAIL
   54     send_mail(EMAIL_SUBJECT_PREFIX + subject, message, SERVER_EMAIL, [a[1] for a in ADMINS], fail_silently)
   55 
   56 def mail_managers(subject, message, fail_silently=False):
global send_mail = <function send_mail>, global EMAIL_SUBJECT_PREFIX = '[Django] ', subject = 'Database error (EXTERNAL IP): /home/', message = 'Traceback (most recent call last):\n\n File "/hom...gi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 0)}>', SERVER_EMAIL = 'root@localhost', a = ('rockmh', 'rock@rockhoward.org'), ADMINS = (('rockmh', 'rock@rockhoward.org'),), fail_silently = True

 /home/rockhoward/django_src/django/core/mail.py in send_mail(subject='[Django] Database error (EXTERNAL IP): /home/', message='Traceback (most recent call last):\n\n File "/hom...gi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 0)}>', from_email='root@localhost', recipient_list=['rock@rockhoward.org'], fail_silently=True)
   20     of the recipient list will see the other recipients in the 'To' field.
   21     """
   22     return send_mass_mail([[subject, message, from_email, recipient_list]], fail_silently)
   23 
   24 def send_mass_mail(datatuple, fail_silently=False):
global send_mass_mail = <function send_mass_mail>, subject = '[Django] Database error (EXTERNAL IP): /home/', message = 'Traceback (most recent call last):\n\n File "/hom...gi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 0)}>', from_email = 'root@localhost', recipient_list = ['rock@rockhoward.org'], fail_silently = True

 /home/rockhoward/django_src/django/core/mail.py in send_mass_mail(datatuple=[['[Django] Database error (EXTERNAL IP): /home/', 'Traceback (most recent call last):\n\n File "/hom...gi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 0)}>', 'root@localhost', ['rock@rockhoward.org']]], fail_silently=True)
   44         msg['From'] = from_email
   45         msg['To'] = ', '.join(recipient_list)
   46         server.sendmail(from_email, recipient_list, msg.as_string())
   47         num_sent += 1
   48     server.quit()
server = <smtplib.SMTP instance>, server.sendmail = <bound method SMTP.sendmail of <smtplib.SMTP instance>>, from_email = 'root@localhost', recipient_list = ['rock@rockhoward.org'], msg = <django.core.mail.SafeMIMEText instance>, msg.as_string = <bound method SafeMIMEText.as_string of <django.core.mail.SafeMIMEText instance>>

 /usr/lib/python2.3/smtplib.py in sendmail(self=<smtplib.SMTP instance>, from_addr='root@localhost', to_addrs=['rock@rockhoward.org'], msg='Content-Type: text/plain; charset="us-ascii"\nMIM...gi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 0)}>', mail_options=[], rcpt_options=[])
  685             # the server refused all our recipients
  686             self.rset()
  687             raise SMTPRecipientsRefused(senderrs)
  688         (code,resp) = self.data(msg)
  689         if code != 250:
global SMTPRecipientsRefused = <class smtplib.SMTPRecipientsRefused>, senderrs = {'rock@rockhoward.org': (504, '<root@localhost>: Sender address rejected: need fully-qualified address')}

SMTPRecipientsRefused: {'rock@rockhoward.org': (504, ': Sender address rejected: need fully-qualified address')}
      args = ({'rock@rockhoward.org': (504, '<root@localhost>: Sender address rejected: need fully-qualified address')},)
      recipients = {'rock@rockhoward.org': (504, '<root@localhost>: Sender address rejected: need fully-qualified address')}