upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Wesly Chen
# easy_install -U ReviewBoard run successfully. when upgrade the site, I got the error. My Linux system is CentOS 6.5 64-bit # rb-site upgrade /var/www/reviews.adara.com Rebuilding directory structure Updating database. This may take a while. The log output below, including warnings and errors

Re: upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Christian Hammond
Hi Wesly, Did you take a backup of your database prior to upgrade, or is this on a staging server? Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Sat, Nov 14, 2015 at 1:47 PM, Wesly Chen wrote:

Re: upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Wesly Chen
This is the staging server which just took an image from production one (VM). It cannot be recovered or the db need to be restored? Christian Hammond於 2015年11月14日星期六 UTC-8下午2時06分27秒寫道: > > Hi Wesly, > > Did you take a backup of your database prior to upgrade, or is this on a > staging server? >

Re: upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Christian Hammond
Glad it's not the production one. Can you tell me what type of database you're using, and can you get me both a dump of the database schema (no content, just the schema), and a second dump containing just the django_evolution and django_project_version table contents? With those, I can try reprodu

Re: upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Wesly Chen
Previously, I upgraded from 1.7.27 to 2.0.20 without problem. Wesly Chen於 2015年11月14日星期六 UTC-8下午2時30分40秒寫道: > > I used MySQL > mysql-server-5.1.73-5.el6_6.x86_64 > > rb-mysql-schema.sql is the reviewboard schema > ($ mysqldump -uroot -p --databases reviewboard --no-data --quick > --single-trans

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
Here is some python package information # ls -1 /usr/lib/python2.6/site-packages/ argparse-1.2.1-py2.6.egg-info argparse.py argparse.pyc argparse.pyo asciidocapi.py asciidocapi.pyc asciidocapi.pyo dateutil dbus dbus_bindings.py dbus_bindings.pyc dbus_bindings.pyo distribute-0.6.10-py2.6.egg-info

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
Can you check if there's anything in the logs? Do you have a file you can send that reproduces the problem? Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Sat, Nov 14, 2015 at 3:28 PM, Wesly Che

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
All the diff upload by "rbt post" doesn't show syntax highlight in Diff Viewer. However, "syntax highlighting" with attached file (java), just not in Diff Viewer. Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道: > > Can you check if there's anything in the logs? > > Do you have a file you c

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
I'll need that information to be able to diagnose the issue. As it is, I have no insight into what could be going wrong, and would have to run tests here. Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.c

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
Which python modules or libraries are used for syntax highlighting? I would like to check those modules or libraries to see if some configuration run or file corruption. Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道: > > Can you check if there's anything in the logs? > > Do you have a fil

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
We use Pygments for syntax highlighting. We changed how we do syntax highlighting in 2.5, and it may have an issue with your files. Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Sat, Nov 14, 20

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
I uploaded portion of the java file as the screenshot show. We use CVS as repository. Christian Hammond於 2015年11月14日星期六 UTC-8下午10時50分48秒寫道: > > I'll need that information to be able to diagnose the issue. As it is, I > have no insight into what could be going wrong, and would have to run tests

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
Thanks, though unfortunately, the middle of a file won't be sufficient to reproduce this. I'm actually going to need the first 50 lines or so of a file, at least. Ideally, an entire file. You could try creating a dummy file to add to a review request, see if it's still failing, and then you could s

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
Here is the python modules on the system. Which file I should check for the configuration? I'm not familiar with python. # ls -lg /usr/lib/python2.6/site-packages/*ygment* /usr/lib/python2.6/site-packages/pygments: total 1080 -rw-r--r-- 1 root 13055 Sep 15 2009 cmdline.py -rw-r--r-- 2 root 104

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
There's no file or configuration to check. This stuff is built to work in Review Board. The only option I can offer right now is to check a file that's having problems on our end to see if it's a regression in Review Board. Christian -- Christian Hammond - christ...@beanbaginc.com Review Board -

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
For some reason I had thought you were using Review Board 2.5, I think because of the other support e-mails. So it's not a regression after all. Can you check the Review Board log file, see if there are any errors when viewing a review request? Christian -- Christian Hammond - christ...@beanbag

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
Could you point out which python files under /usr/lib/python2.6/site-packages/ReviewBoard-2.0.20-py2.6.egg/reviewboard/ is showing the syntax highlighting in Diff Viewer? Thanks, Wesly Christian Hammond於 2015年11月14日星期六 UTC-8下午11時09分49秒寫道: > > There's no file or configuration to check. This st

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
It's in reviewboard/diffviewer/diffutils.py. Look for apply_pygments. Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Sat, Nov 14, 2015 at 11:35 PM, Wesly Chen wrote: > Could you point out which

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
I tried to upgrade to 2.5.11 and failed (at another thread), Here is my log (reviewboard.log), no error. 2015-11-15 07:22:07,902 - DEBUG - None - wchen - /reviews/r/114/diff/3/fragment/1876/ - Begin: Fetching file '/home/cvs/OPS/nagios/libexec/check_mysql_rows.pl,v' r1.1 from CVS-prod 2015-11-1

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
On my review board system, it is in /usr/lib/python2.6/site-packages/ReviewBoard-2.0.20-py2.6.egg/reviewboard/diffviewer/chunk_generator.py (not in diffutils.py) --- (started with line 219) if self._get_enable_syntax_highlighting(old, new, a, b): repository = self.file