Hi Bill, That does look to be the problem. The 2.5.7 version is taking precedence. This indicates it wasn't installed the same way as 2.5.9. Did you install via RPM? Pip?
If via RPM, you'll need to remove that version through rpm/yum first. This is going to affect Djblets as well, so you'll need to take care of both of those packages. Potentially other packages going forward. Christian -- Christian Hammond President/CEO of Beanbag <https://www.beanbaginc.com/> Makers of Review Board <https://www.reviewboard.org/> On Wed, Mar 1, 2017 at 8:42 PM, Bill Hoo <bill...@126.com> wrote: > Christian, > > Here's the contents of /usr/local/lib/python2.7/dist-packages/ directory, > > > celery-4.0.2-py2.7.egg >> cffi >> cffi-1.9.1.dist-info >> _cffi_backend.so >> concurrent >> cpplint-1.3.0-py2.7.egg >> Crypto >> cryptography >> cryptography-1.7.1.dist-info >> dateutil >> django >> Django-1.6.11.dist-info >> django_evolution >> django_evolution-0.7.6.dist-info >> django_haystack-2.4.1.dist-info >> django_multiselectfield-0.1.4.dist-info >> django_pipeline-1.3.27.dist-info >> djblets >> Djblets-0.9.4.dist-info >> Djblets-0.9.6-py2.7.egg >> dns >> dnspython-1.15.0.dist-info >> docutils >> docutils-0.13.1.dist-info >> easy-install.pth >> easy_install.py >> easy_install.pyc >> enum >> enum34-1.1.6.dist-info >> feedparser-5.2.1.dist-info >> feedparser.py >> feedparser.pyc >> futures-3.0.5.dist-info >> haystack >> idna >> idna-2.2.dist-info >> ipaddress-1.0.17.dist-info >> ipaddress.py >> ipaddress.pyc >> markdown >> Markdown-2.4.1.dist-info >> memcache.py >> memcache.pyc >> mimeparse-0.1.3.dist-info >> mimeparse.py >> mimeparse.pyc >> multiselectfield >> MySQLdb >> _mysql_exceptions.py >> _mysql_exceptions.pyc >> MySQL_python-1.2.5.dist-info >> _mysql.so >> paramiko >> paramiko-2.1.1.dist-info >> pep8-1.7.0-py2.7.egg >> PIL >> Pillow-3.4.2.dist-info >> pillowfight-0.2.dist-info >> pip >> pip-9.0.1.dist-info >> pipeline >> pkg_resources >> publicsuffix >> publicsuffix-1.1.0.dist-info >> pyasn1 >> pyasn1-0.1.9.dist-info >> pycparser >> pycparser-2.17.dist-info >> pycrypto-2.6.1.dist-info >> pyflakes-1.4.0-py2.7.egg >> pygments >> Pygments-2.1.3.dist-info >> python_dateutil-1.5.dist-info >> python_memcached-1.58.dist-info >> pytz >> pytz-2016.10.dist-info >> rbtools >> RBTools-0.7.9.dist-info >> recaptcha >> recaptcha_client-1.0.6.dist-info >> recaptcha_client-1.0.6-py2.7-nspkg.pth >> reviewboard >> ReviewBoard-2.5.7.dist-info >> ReviewBoard-2.5.7-py2.7.egg >> ReviewBoard-2.5.9-py2.7.egg >> ReviewBot-0.3a0-py2.7.egg >> setuptools >> setuptools-32.1.3.dist-info >> six-1.10.0.dist-info >> six.py >> six.pyc >> tqdm >> tqdm-4.11.0.dist-info >> wheel >> wheel-0.29.0.dist-info >> whoosh >> Whoosh-2.7.4.dist-info >> >> > I noticed that RB2.5.7 has a file named "ReviewBoard-2.5.7.dist-info", but > 2.5.9 didn't. Is this a problem? > > Thanks, > Bill. > > 在 2017年3月1日星期三 UTC+8下午2:51:31,Christian Hammond写道: >> >> Hi Bill, >> >> Okay, sounds like Python is fine then. It does still sound like it's >> running the older version in Apache, though. >> >> The important part is the part of the message saying "You are running >> 2.5.7 and the site was last upgraded to 2.5.9." The command line rb-site is >> definitely using 2.5.9, but Apache is running against 2.5.7. Not having >> access to the server, I can't really say why, so it'll take some >> investigation on your end, but it does seem like the older version is >> taking precedence. >> >> Was 2.5.7 also installed using easy_install? Can you show me the contents >> of your dist-packages directory? >> >> Christian >> >> -- >> Christian Hammond >> President/CEO of Beanbag <https://www.beanbaginc.com/> >> Makers of Review Board <https://www.reviewboard.org/> >> >> On Tue, Feb 28, 2017 at 5:42 PM, Bill Hoo <bil...@126.com> wrote: >> >>> I've checked the python version in our system, we have py2.7 and py3.5, >>> when I type "python" command in the console, its py2.7, and where I find >>> the "ReviewBoard-2.5.9-py2.7.egg" file is also in the py2.7's dist-packages >>> directory. >>> >>> So I'm wondering its not a python's version mismatch error. Am I do it >>> right? >>> >>> Regards, >>> Bill. >>> >>> 在 2017年2月28日星期二 UTC+8下午7:58:18,Christian Hammond写道: >>>> >>>> When I've seen this before, it was due to Apache running a different >>>> version of Python than what was used to upgrade Review Board. For instance, >>>> mod_wsgi might be using Python 2.6 while easy_install used Python 2.7, or >>>> vice-versa. In this case, the wrong Review Board package is being used. >>>> >>>> The Python version issue can happen if you've done a big system upgrade >>>> or transferred between systems. I'd check for that and make sure your >>>> system is consistent with the versions of Python being used in the command >>>> line and on Apache. >>>> >>>> Christian >>>> >>>> >>>> On Tue, Feb 28, 2017 at 02:50 Bill Hoo <bil...@126.com> wrote: >>>> >>>>> Here's the command we ran: >>>>> >>>>> sudo rb-site upgrade /var/www/crisisgo_reviewboard >>>>> >>>>> And the corresponding output: >>>>> >>>>> >>>>> Rebuilding directory structure >>>>>> Upgrading site settings_local.py >>>>>> Updating database. This may take a while. >>>>>> >>>>>> The log output below, including warnings and errors, >>>>>> can be ignored unless upgrade fails. >>>>>> >>>>>> ------------------ <begin log output> ------------------ >>>>>> Creating tables ... >>>>>> Installing custom SQL ... >>>>>> Installing indexes ... >>>>>> Installed 0 object(s) from 0 fixture(s) >>>>>> No evolution required. >>>>>> ------------------- <end log output> ------------------- >>>>>> >>>>>> Resetting in-database caches. >>>>>> >>>>>> Upgrade complete! >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> After the upgrade, we've checked the version of rb-site by typing >>>>> "rb-site --v" and its already 2.5.9. >>>>> But the web page keeps asking me to upgrade the site: >>>>> >>>>> >>>>> The version of Review Board running does not match the version the >>>>>> site was last upgraded to. You are running *2.5.7* and the site was >>>>>> last upgraded to *2.5.9*. >>>>>> >>>>>> Please upgrade your site to fix this by running: >>>>>> >>>>>> $ rb-site upgrade /var/www/crisisgo_reviewboard >>>>>> >>>>>> >>>>> It seems the ReviewBoard itself are not upgrade correctly not the site. >>>>> >>>>> Thanks, >>>>> Bill. >>>>> >>>>> >>>>> >>>>> 在 2017年2月28日星期二 UTC+8下午6:19:09,Christian Hammond写道: >>>>>> >>>>>> Can you show me the exact rb-site command you ran and the exact >>>>>> output? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Christian >>>>>> >>>>>> >>>>>> On Mon, Feb 27, 2017 at 22:18 Bill Hoo <bil...@126.com> wrote: >>>>>> >>>>>>> Hi Christian, >>>>>>> >>>>>>> We upgrade RB from 2.5.7 to 2.5.9, after we run: >>>>>>> >>>>>>> sudo easy_install -U ReviewBoard >>>>>>> >>>>>>> we get the following output: >>>>>>> >>>>>>> >>>>>>> Searching for ReviewBoard >>>>>>>> Reading https://pypi.python.org/simple/ReviewBoard/ >>>>>>>> Downloading https://pypi.python.org/packag >>>>>>>> es/5a/62/fb2d4f199581aa33c1734595c0a85183b858034a22f8f1e2ff2 >>>>>>>> a945617e5/ReviewBoard-2.5.9-py2.7.egg#md5=33efb523ebd43b35 >>>>>>>> e178e141f713f362 >>>>>>>> Best match: ReviewBoard 2.5.9 >>>>>>>> Processing ReviewBoard-2.5.9-py2.7.egg >>>>>>>> removing >>>>>>>> '/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.9-py2.7.egg' >>>>>>>> (and everything under it) >>>>>>>> creating /usr/local/lib/python2.7/dist- >>>>>>>> packages/ReviewBoard-2.5.9-py2.7.egg >>>>>>>> Extracting ReviewBoard-2.5.9-py2.7.egg to >>>>>>>> /usr/local/lib/python2.7/dist-packages >>>>>>>> ReviewBoard 2.5.9 is already the active version in easy-install.pth >>>>>>>> Installing rbext script to /usr/local/bin >>>>>>>> Installing rbssh script to /usr/local/bin >>>>>>>> Installing rb-site script to /usr/local/bin >>>>>>>> >>>>>>>> Installed /usr/local/lib/python2.7/dist- >>>>>>>> packages/ReviewBoard-2.5.9-py2.7.egg >>>>>>>> Processing dependencies for ReviewBoard >>>>>>>> Finished processing dependencies for ReviewBoard >>>>>>>> >>>>>>>> >>>>>>> it seems successful right? And then we run: >>>>>>> >>>>>>> rb-site upgrade /path/to/site >>>>>>> >>>>>>> >>>>>>> After a while it says upgrade complete! >>>>>>> Things are looking good. After these 2 steps, we restart Apache2 and >>>>>>> memcache. >>>>>>> >>>>>>> But finally when we visit our RB site, we get that error. >>>>>>> >>>>>>> Regards, >>>>>>> Bill. >>>>>>> >>>>>>> 在 2017年2月28日星期二 UTC+8下午1:19:44,Christian Hammond写道: >>>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> What happens when you run that command? What do you see? >>>>>>>> >>>>>>>> Make sure you restart Apache after running it. >>>>>>>> >>>>>>>> Christian >>>>>>>> >>>>>>>> On Mon, Feb 27, 2017 at 21:03 Bill Hoo <bil...@126.com> wrote: >>>>>>>> >>>>>>> Hi there, >>>>>>>>> >>>>>>>>> >>>>>>>>> We're upgrading RB from 2.5.7 to 2.5.9, but failed, we followed >>>>>>>>> the official steps but failed, below are the messages come from our >>>>>>>>> RB web >>>>>>>>> site after restart apache: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> The version of Review Board running does not match the version >>>>>>>>>> the site was last upgraded to. You are running *2.5.7* and the >>>>>>>>>> site was last upgraded to *2.5.9*. >>>>>>>>>> >>>>>>>>>> Please upgrade your site to fix this by running: >>>>>>>>>> >>>>>>>>>> $ rb-site upgrade /var/www/crisisgo_reviewboard >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> What's the problem should it be? How can we fix it? >>>>>>>>> >>>>>>>>> Thanks. >>>>>>>>> Bill. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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...@googlegroups.com. >>>>>>>> >>>>>>>> >>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>> >>>>>>>> -- >>>>>>>> -- >>>>>>>> Christian Hammond >>>>>>>> President/CEO of Beanbag <https://www.beanbaginc.com/> >>>>>>>> Makers of Review Board <https://www.reviewboard.org/> >>>>>>>> >>>>>>> -- >>>>>> -- >>>>>> Christian Hammond >>>>>> President/CEO of Beanbag <https://www.beanbaginc.com/> >>>>>> Makers of Review Board <https://www.reviewboard.org/> >>>>>> >>>>> -- >>>>> 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...@googlegroups.com. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>>> -- >>>> Christian Hammond >>>> President/CEO of Beanbag <https://www.beanbaginc.com/> >>>> Makers of Review Board <https://www.reviewboard.org/> >>>> >>> -- >>> 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...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- 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.