Re: error at /r/30/publish/

2008-10-23 Thread Tim

Ok I think I figured this out.  Looks like there was an issue where
the settings_local.py had the correct settings, but when I logged into
the admin screen the mail server was set to localhost instead of the
correct external SMTP server.  I removed the entry in
settings_local.py and updated it via the admin screen.

It seems if you have a setting in settings_local.py and try to update
via the admin screen the updates don't take as it changes the values
back when you save.  Is this correct?  Either way my problem seems to
be solved as e-mails are now working.

Thanks!

On Oct 20, 4:38 pm, "Christian Hammond" <[EMAIL PROTECTED]> wrote:
> This looks like your Review Board server is unable to talk to your mail
> server. Check to make sure all the settings are correct and that your mail
> server is reachable from there.
>
> Christian
>
> --
> Christian Hammond - [EMAIL PROTECTED]
> VMware, Inc.
>
> On Mon, Oct 20, 2008 at 11:45 AM, Tim <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am doing a proof of concept with reviewboard and everything is now
> > working properly except when I go to publish a review from a CVS patch
> > file.  The review is created however I receive the following error
> > stack:
>
> > error at /r/30/publish/
>
> > (111, 'Connection refused')
>
> > Request Method:         GET
> > Request URL:    http://something.com/r/30/publish/
> > Exception Type:         error
> > Exception Value:
>
> > (111, 'Connection refused')
>
> > Exception Location:     /usr/lib/python2.4/smtplib.py in connect, line
> > 306
> > Python Executable:      /usr/bin/python
> > Python Version:         2.4.3
> > Python Path:    ['/opt', '/opt/reviewboard', '/usr/lib/python2.4/site-
> > packages/setuptools-0.6c5-py2.4.egg', '/usr/lib/python2.4/site-
> > packages/MySQL_python-1.2.2-py2.4-linux-i686.egg', '/usr/lib/python2.4/
> > site-packages/Pygments-0.11.1-py2.4.egg', '/usr/lib/python2.4/site-
> > packages/Trac-0.11-py2.4.egg', '/usr/lib/python2.4/site-packages/
> > Genshi-0.5.1-py2.4-linux-i686.egg', '/usr/lib/python2.4/site-packages/
> > FreemindMacro-0.1-py2.4.egg', '/usr/lib/python24.zip', '/usr/lib/
> > python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-
> > tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-
> > packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/
> > python2.4/site-packages/PIL', '/usr/lib/python2.4/site-packages/
> > gtk-2.0']
> > Server time:    Mon, 20 Oct 2008 11:33:41 -0700
>
> > Here is the traceback:
>
> > Environment:
>
> > Request Method: GET
> > Request URL:http://something.com/r/30/publish/
> > Django Version: 1.0-final-SVN-unknown
> > Python Version: 2.4.3
> > Installed Applications:
> > ['django.contrib.admin',
> >  'django.contrib.auth',
> >  'django.contrib.contenttypes',
> >  'django.contrib.markup',
> >  'django.contrib.sites',
> >  'django.contrib.sessions',
> >  'djblets.datagrid',
> >  'djblets.feedview',
> >  'djblets.siteconfig',
> >  'djblets.util',
> >  'djblets.webapi',
> >  'reviewboard.accounts',
> >  'reviewboard.admin',
> >  'reviewboard.changedescs',
> >  'reviewboard.diffviewer',
> >  'reviewboard.iphone',
> >  'reviewboard.reports',
> >  'reviewboard.reviews',
> >  'reviewboard.scmtools',
> >  'reviewboard.webapi',
> >  'django_evolution']
> > Installed Middleware:
> > ('django.middleware.common.CommonMiddleware',
> >  'django.middleware.doc.XViewMiddleware',
> >  'django.middleware.locale.LocaleMiddleware',
> >  'django.contrib.sessions.middleware.SessionMiddleware',
> >  'django.contrib.auth.middleware.AuthenticationMiddleware',
> >  'djblets.log.middleware.LoggingMiddleware',
> >  'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware')
>
> > Traceback:
> > File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py"
> > in get_response
> >  86.                 response = callback(request, *callback_args,
> > **callback_kwargs)
> > File "/opt/reviewboard/djblets/auth/util.py" in _checklogin
> >  45.             return view_func(request, *args, **kwargs)
> > File "/opt/reviewboard/reviews/views.py" in publish
> >  457.         review_request.publish(request.user)
> > File "/opt/reviewboard/reviews/models.py" in publish
> >  369.                 mail_review_request(user, self)
> > File "/opt/reviewboard/reviews/email.py" in mail_review_request
> >  184.                          extra_context)
> > File "/opt/reviewboard/reviews/email.py" in send_review_mail
> >  114.     message.send()
> > File "/usr/lib/python2.4/site-packages/django/core/mail.py" in send
> >  265.         return
> > self.get_connection(fail_silently).send_messages([self])
> > File "/usr/lib/python2.4/site-packages/django/core/mail.py" in
> > send_messages
> >  166.         new_conn_created = self.open()
> > File "/usr/lib/python2.4/site-packages/django/core/mail.py" in open
> >  131.
> > local_hostname=DNS_NAME.get_fqdn())
> > File "/usr/lib/python2.4/smtplib.py" in __init__
> >  244.             (code, msg) = self.connect(host, port)
> > F

Re: error at /r/30/publish/

2008-10-20 Thread Tim

Christian,

Thanks for the prompt reply.  I can send e-mail with the same host
from the command line as root and this works properly.  What can I do
to produce good debug or to run a good test case?  Could it be an
issue with the user apache?

import smtplib
s=smtplib.SMTP("localhost")
tolist=["[EMAIL PROTECTED]"]
msg = '''
From: [EMAIL PROTECTED]
Subject: testin'
This is a test '''
s.sendmail("[EMAIL PROTECTED]",tolist,msg)
{}
s.quit()


On Oct 20, 4:38 pm, "Christian Hammond" <[EMAIL PROTECTED]> wrote:
> This looks like your Review Board server is unable to talk to your mail
> server. Check to make sure all the settings are correct and that your mail
> server is reachable from there.
>
> Christian
>
> --
> Christian Hammond - [EMAIL PROTECTED]
> VMware, Inc.
>
> On Mon, Oct 20, 2008 at 11:45 AM, Tim <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am doing a proof of concept with reviewboard and everything is now
> > working properly except when I go to publish a review from a CVS patch
> > file.  The review is created however I receive the following error
> > stack:
>
> > error at /r/30/publish/
>
> > (111, 'Connection refused')
>
> > Request Method:         GET
> > Request URL:    http://something.com/r/30/publish/
> > Exception Type:         error
> > Exception Value:
>
> > (111, 'Connection refused')
>
> > Exception Location:     /usr/lib/python2.4/smtplib.py in connect, line
> > 306
> > Python Executable:      /usr/bin/python
> > Python Version:         2.4.3
> > Python Path:    ['/opt', '/opt/reviewboard', '/usr/lib/python2.4/site-
> > packages/setuptools-0.6c5-py2.4.egg', '/usr/lib/python2.4/site-
> > packages/MySQL_python-1.2.2-py2.4-linux-i686.egg', '/usr/lib/python2.4/
> > site-packages/Pygments-0.11.1-py2.4.egg', '/usr/lib/python2.4/site-
> > packages/Trac-0.11-py2.4.egg', '/usr/lib/python2.4/site-packages/
> > Genshi-0.5.1-py2.4-linux-i686.egg', '/usr/lib/python2.4/site-packages/
> > FreemindMacro-0.1-py2.4.egg', '/usr/lib/python24.zip', '/usr/lib/
> > python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-
> > tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-
> > packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/
> > python2.4/site-packages/PIL', '/usr/lib/python2.4/site-packages/
> > gtk-2.0']
> > Server time:    Mon, 20 Oct 2008 11:33:41 -0700
>
> > Here is the traceback:
>
> > Environment:
>
> > Request Method: GET
> > Request URL:http://something.com/r/30/publish/
> > Django Version: 1.0-final-SVN-unknown
> > Python Version: 2.4.3
> > Installed Applications:
> > ['django.contrib.admin',
> >  'django.contrib.auth',
> >  'django.contrib.contenttypes',
> >  'django.contrib.markup',
> >  'django.contrib.sites',
> >  'django.contrib.sessions',
> >  'djblets.datagrid',
> >  'djblets.feedview',
> >  'djblets.siteconfig',
> >  'djblets.util',
> >  'djblets.webapi',
> >  'reviewboard.accounts',
> >  'reviewboard.admin',
> >  'reviewboard.changedescs',
> >  'reviewboard.diffviewer',
> >  'reviewboard.iphone',
> >  'reviewboard.reports',
> >  'reviewboard.reviews',
> >  'reviewboard.scmtools',
> >  'reviewboard.webapi',
> >  'django_evolution']
> > Installed Middleware:
> > ('django.middleware.common.CommonMiddleware',
> >  'django.middleware.doc.XViewMiddleware',
> >  'django.middleware.locale.LocaleMiddleware',
> >  'django.contrib.sessions.middleware.SessionMiddleware',
> >  'django.contrib.auth.middleware.AuthenticationMiddleware',
> >  'djblets.log.middleware.LoggingMiddleware',
> >  'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware')
>
> > Traceback:
> > File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py"
> > in get_response
> >  86.                 response = callback(request, *callback_args,
> > **callback_kwargs)
> > File "/opt/reviewboard/djblets/auth/util.py" in _checklogin
> >  45.             return view_func(request, *args, **kwargs)
> > File "/opt/reviewboard/reviews/views.py" in publish
> >  457.         review_request.publish(request.user)
> > File "/opt/reviewboard/reviews/models.py" in publish
> >  369.                 mail_review_request(user, self)
> > File "/opt/reviewboard/reviews/email.py" in mail_review_request
> >  184.                          extra_context)
> > File "/opt/reviewboard/reviews/email.py" in send_review_mail
> >  114.     message.send()
> > File "/usr/lib/python2.4/site-packages/django/core/mail.py" in send
> >  265.         return
> > self.get_connection(fail_silently).send_messages([self])
> > File "/usr/lib/python2.4/site-packages/django/core/mail.py" in
> > send_messages
> >  166.         new_conn_created = self.open()
> > File "/usr/lib/python2.4/site-packages/django/core/mail.py" in open
> >  131.
> > local_hostname=DNS_NAME.get_fqdn())
> > File "/usr/lib/python2.4/smtplib.py" in __init__
> >  244.             (code, msg) = self.connect(host, port)
> > File "/usr/lib/python2.4/smtplib.py" in connect
> >  306.             raise socket.error, msg
>
> > Exception Type: error at /r/30/pu

Re: error at /r/30/publish/

2008-10-20 Thread Christian Hammond
This looks like your Review Board server is unable to talk to your mail
server. Check to make sure all the settings are correct and that your mail
server is reachable from there.

Christian

-- 
Christian Hammond - [EMAIL PROTECTED]
VMware, Inc.


On Mon, Oct 20, 2008 at 11:45 AM, Tim <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I am doing a proof of concept with reviewboard and everything is now
> working properly except when I go to publish a review from a CVS patch
> file.  The review is created however I receive the following error
> stack:
>
> error at /r/30/publish/
>
> (111, 'Connection refused')
>
> Request Method: GET
> Request URL:http://something.com/r/30/publish/
> Exception Type: error
> Exception Value:
>
> (111, 'Connection refused')
>
> Exception Location: /usr/lib/python2.4/smtplib.py in connect, line
> 306
> Python Executable:  /usr/bin/python
> Python Version: 2.4.3
> Python Path:['/opt', '/opt/reviewboard', '/usr/lib/python2.4/site-
> packages/setuptools-0.6c5-py2.4.egg', '/usr/lib/python2.4/site-
> packages/MySQL_python-1.2.2-py2.4-linux-i686.egg', '/usr/lib/python2.4/
> site-packages/Pygments-0.11.1-py2.4.egg', '/usr/lib/python2.4/site-
> packages/Trac-0.11-py2.4.egg', '/usr/lib/python2.4/site-packages/
> Genshi-0.5.1-py2.4-linux-i686.egg', '/usr/lib/python2.4/site-packages/
> FreemindMacro-0.1-py2.4.egg', '/usr/lib/python24.zip', '/usr/lib/
> python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-
> tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-
> packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/
> python2.4/site-packages/PIL', '/usr/lib/python2.4/site-packages/
> gtk-2.0']
> Server time:Mon, 20 Oct 2008 11:33:41 -0700
>
> Here is the traceback:
>
> Environment:
>
> Request Method: GET
> Request URL: http://something.com/r/30/publish/
> Django Version: 1.0-final-SVN-unknown
> Python Version: 2.4.3
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.markup',
>  'django.contrib.sites',
>  'django.contrib.sessions',
>  'djblets.datagrid',
>  'djblets.feedview',
>  'djblets.siteconfig',
>  'djblets.util',
>  'djblets.webapi',
>  'reviewboard.accounts',
>  'reviewboard.admin',
>  'reviewboard.changedescs',
>  'reviewboard.diffviewer',
>  'reviewboard.iphone',
>  'reviewboard.reports',
>  'reviewboard.reviews',
>  'reviewboard.scmtools',
>  'reviewboard.webapi',
>  'django_evolution']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
>  'django.middleware.doc.XViewMiddleware',
>  'django.middleware.locale.LocaleMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'djblets.log.middleware.LoggingMiddleware',
>  'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware')
>
>
> Traceback:
> File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py"
> in get_response
>  86. response = callback(request, *callback_args,
> **callback_kwargs)
> File "/opt/reviewboard/djblets/auth/util.py" in _checklogin
>  45. return view_func(request, *args, **kwargs)
> File "/opt/reviewboard/reviews/views.py" in publish
>  457. review_request.publish(request.user)
> File "/opt/reviewboard/reviews/models.py" in publish
>  369. mail_review_request(user, self)
> File "/opt/reviewboard/reviews/email.py" in mail_review_request
>  184.  extra_context)
> File "/opt/reviewboard/reviews/email.py" in send_review_mail
>  114. message.send()
> File "/usr/lib/python2.4/site-packages/django/core/mail.py" in send
>  265. return
> self.get_connection(fail_silently).send_messages([self])
> File "/usr/lib/python2.4/site-packages/django/core/mail.py" in
> send_messages
>  166. new_conn_created = self.open()
> File "/usr/lib/python2.4/site-packages/django/core/mail.py" in open
>  131.
> local_hostname=DNS_NAME.get_fqdn())
> File "/usr/lib/python2.4/smtplib.py" in __init__
>  244. (code, msg) = self.connect(host, port)
> File "/usr/lib/python2.4/smtplib.py" in connect
>  306. raise socket.error, msg
>
> Exception Type: error at /r/30/publish/
> Exception Value: (111, 'Connection refused')
>
> Any help is appreciated.  Thanks!
>
>
> >
>

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