Password recovery

2011-06-20 Thread rfs
I'm running ReviewBoard 1.5.5 and recently discovered that the
Recover Password feature is not working.  After entering the email
address and submitting the form, I get Something Broke! (Error
500).  Looking at the apache error log shows:

ERROR:root:Exception thrown for user AnonymousUser at
http://reviewboard.rossvideo.com/account/recover/

(504, 'Need Fully Qualified Address', u'webmaster@localhost')
Traceback (most recent call last):
  File /usr/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/
core/handlers/base.py, line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
  File /usr/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/
utils/decorators.py, line 76, in _wrapped_view
response = view_func(request, *args, **kwargs)
  File /usr/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/
contrib/auth/views.py, line 123, in password_reset
form.save(**opts)
  File /usr/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/
contrib/auth/forms.py, line 143, in save
t.render(Context(c)), None, [user.email])
  File /usr/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/
core/mail/__init__.py, line 61, in send_mail
connection=connection).send()
  File /usr/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/
core/mail/message.py, line 175, in send
return self.get_connection(fail_silently).send_messages([self])
  File /usr/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/
core/mail/backends/smtp.py, line 85, in send_messages
sent = self._send(message)
  File /usr/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/
core/mail/backends/smtp.py, line 101, in _send
email_message.message().as_string())
  File /usr/lib64/python2.6/smtplib.py, line 698, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
SMTPSenderRefused: (504, 'Need Fully Qualified Address',
u'webmaster@localhost')


Reviewboard is able to send mail normally (eg. when reviews are
posted), so it is not the mail server configuration.  It looks like
the webmaster@localhost is the problem.  I tried to solve this,
chasing it back down to DEFAULT_FROM_EMAIL in global_settings.py.

However making changes to that file (and rebuilding the .pyc files)
does not seem to change the error... Reviewboard continues to use
webmaster@localhost

Any suggestions would be appreciated!

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: Password recovery

2011-06-20 Thread rfs
Thanks for the quick response.  I've restored global_settings.py and
have
made the change as you suggested in my site's conf/settings_local.py.
There was no DEFAULT_FROM_EMAIL so I added it there.
Restarted web server and memcached, still getting the same error.
SMTPSenderRefused: (504, 'Need Fully Qualified Address',
u'webmaster@localhost'
Cleared the web browser cache also.

-Ralph

On Jun 20, 6:35 pm, Christian Hammond chip...@chipx86.com wrote:
 That setting needs to be set in your site's conf/settings_local.py, and the
 web server restarted. If you modified global_settings.py, you should
 probably change it back.

 If that still doesn't work, let me know, and we'll dig deeper.

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Website appears to be down

2013-05-13 Thread rfs
I'm getting a 502 error on all pages under www.reviewboard.org, though 
downloads site seems to work:

$ wget http://www.reviewboard.org
--2013-05-13 08:16:11--  http://www.reviewboard.org/
Resolving www.reviewboard.org (www.reviewboard.org)... 54.243.231.149
Connecting to www.reviewboard.org 
(www.reviewboard.org)|54.243.231.149|:80... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2013-05-13 08:16:12 ERROR 502: Bad Gateway.

Cheers,
-Ralph

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Database upgrade from 1.7.27 to 2.5.2

2015-12-08 Thread rfs
On Monday, December 7, 2015 at 10:55:42 PM UTC-5, Stephen Gallagher wrote:
>
> Did you run this with the recent django-evolution 0.7.6 update? That 
> specifically addresses some upgrade issues unique to MySQL.
>

Yes, I am using python-django-evolution-0.7.6-1.el7.noarch with your fix 
from Dec 4th.

Christian has spotted the culprit, mixed MyISAM versus InnoDB database 
tables.

-Ralph

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Database upgrade from 1.7.27 to 2.5.2

2015-12-08 Thread rfs
Hi Christian,

Thanks, that was exactly the problem. After switching to InnoDB, the 
upgrade to 2.5.2 completes, and I have a working install.
The one other change I had to make was the memcached backend name in 
settings_local.py (CacheClass -> MemcacheCache).

I did notice a difference in the "condensediffs" operation, under 2.0.18 it 
reported 21% savings, while under 2.5.2 it reported around 40% -- in both 
cases I started from the same 1.7.27 database. If that is something of 
concern, I can provide more details.

-Ralph

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Database upgrade from 1.7.27 to 2.5.2

2015-12-07 Thread rfs
Some additional information after further experimentation:

* I tried upgrading from the same 1.7.27 database to 2.0.18. This worked 
perfectly fine. I ran compressdiffs afterwards as suggested, that worked 
too.
* I then tried upgrading from 2.0.18 to 2.5.2, but got the same "Can't 
create table 'reviewboard.#'" error.

Next I scripted the upgrade from 1.7.27 to 2.5.2, and tried a few 
variations, including location of the database, etc.
The process is:
1) Create empty database
2) Restore my 1.7.27 database
3) Run rb-site upgrade

That reliably triggers the "Can't create table" error. However, if I add 
one step:
1) Create empty database
1.5) Run rb-site install
2) Restore my 1.7.27 database
3) Run rb-site upgrade

Then the "Can't create table" error is avoided, and it manages to apply 
many django evolutions. Eventually it fails with:
CommandError: Error applying evolution: (1050, "Table 
'reviews_reviewrequest_file_attachment_histories' already exists")
which is not entirely unexpected since I ran rb-site install which likely 
created that table.

I am using mariadb-5.5.44 on CentOS 7.1.

-Ralph

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Database upgrade from 1.7.27 to 2.5.2

2015-12-07 Thread rfs
I'm attempting to migrate an existing ReviewBoard database from 1.7.27 to 
2.5.2, on a CentOS 7.1 system using sgallagher's RPMs.
The error looks like a permission problem, but on same system, I am able to 
create a new site with "rb-site install" and it works nicely.
I then dropped dropped the reviewboard database, created a new one, and 
restored from mysqldump of 1.7.27 data. That's where I run into trouble.
Any suggestions on where to look to debug this? The --debug flag did not 
seem to make any difference, BTW.

# rb-site --debug upgrade rb
Rebuilding directory structure
Updating database. This may take a while.

The log output below, including warnings and errors,
can be ignored unless upgrade fails.

--  --
Creating tables ...
Creating table accounts_trophy

[!] There was an error synchronizing the database. Make sure the
database is created and has the appropriate permissions, and then
continue.
[!] Details: (1005, "Can't create table 'reviewboard.#sql-4db_8'
(errno: 150)")

Press Enter to continue^CTraceback (most recent call last):
  File "/bin/rb-site", line 9, in 
load_entry_point('ReviewBoard==2.5.2', 'console_scripts', 'rb-site')()
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 1922, in main
command.run()
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 1724, in run
site.sync_database()
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 442, in sync_database
force_wait=True)
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 1096, in error
input('Press Enter to continue')
KeyboardInterrupt

Thanks,
-Ralph

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.