Re: Upgrade from working 1.7.25 on Centos 65 fails

2014-08-01 Thread Michael Kovacs

>
> Looks like a lot of the battle is with SELINUX... I now have 2.0.5 running 
> and it seems to be happy in its little world. Now to start tying it into 
> the VisualSVN server again. At this time I have a snapshot of the unit in 
> good condition however do you have an SELINUX exception that allows RB to 
> operate properly? Right now the only solution is either permissive or 
> disabled.
>

The SVN issue is with subversion and the "Key Usage" situation. in the past 
I have tried rebuilding neon with mixed success but think I will look at 
redoing the certificate on the svn server. 

Throughout this issue I was surprised that there isn't a simple walkthrough 
of exactly what needs to be on a system ahead of the install of RB... 
Things like mod_wsgi, MySQL-python and even httpd-devel all came into play. 
It would be great to put together a prereq list that can be applied to a 
fresh server to prep for the install.. If I get a few later on I may try 
it, especially with CentOS 7 now released  Easy_install is nice but 
doesn't handle the dependencies well and is very cryptic in what caused the 
issue. Thanks again!

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-31 Thread Michael Kovacs


On Thursday, July 31, 2014 3:26:08 PM UTC-5, Christian Hammond wrote:
>
> It’s definitely valid syntax.
>
> Make sure the __ is two underscores.
>
> Can you copy/paste that to a text file and attach it, so that the 
> formatting is preserved?
>
> Christian
>
>
>
>
>
> Doing it with notepad as a middleman worked better but it still didn't 
like the single quotes. Corrected that and now have:

 [root@ITT-D-Review logs]# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import whoosh
>>> whoosh.__file__
'/usr/lib/python2.6/site-packages/Whoosh-2.6.0-py2.6.egg/whoosh/__init__.pyc'
>>> import reviewboard
>>> reviewboard.__file__
'/usr/lib/python2.6/site-packages/ReviewBoard-2.0.5-py2.6.egg/reviewboard/__init__.pyc'
>>>
>>> import __main__
>>> __main__.__requires__ = [‘ReviewBoard’]
  File "", line 1
__main__.__requires__ = [‘ReviewBoard’]
 ^
SyntaxError: invalid syntax
>>> __main__.__requires__ = ['ReviewBoard']
>>> import pkg_resources
>>>


-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-31 Thread Christian Hammond
It’s definitely valid syntax.

Make sure the __ is two underscores.

Can you copy/paste that to a text file and attach it, so that the formatting is 
preserved?

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com

On July 31, 2014 at 1:23:44 PM, Michael Kovacs (dromin...@gmail.com) wrote:



On Thursday, July 31, 2014 2:53:44 PM UTC-5, Christian Hammond wrote:
During that run, is selinux still disabled?

Can you run this in a shell:

    $ python
    >>> import whoosh
    >>> whoosh.__file__
    >>> import reviewboard
    >>> reviewboard.__file__

    $ python
    >>> import __main__
    >>> __main__.__requires__ = [‘ReviewBoard’]
    >>> import pkg_resources

Paste the full output from that.

Christian




Just did full reboot to be sure. SELINUX is off at the time of testing. 
IPTABLES & IP6TABLES are stopped as well. Here is yoru outputs:
[root@ITT-D-Review logs]# getenforce
Permissive
[root@ITT-D-Review logs]# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import whoosh
>>> whoosh.__file__
'/usr/lib/python2.6/site-packages/Whoosh-2.6.0-py2.6.egg/whoosh/__init__.pyc'
>>> import reviewboard
>>> reviewboard.__file__
'/usr/lib/python2.6/site-packages/ReviewBoard-2.0.5-py2.6.egg/reviewboard/__init__.pyc'

>>> import __main__
>>> __main__.__requires__ = [‘ReviewBoard’]
  File "", line 1
    __main__.__requires__ = [‘ReviewBoard’]
 ^
SyntaxError: invalid syntax
>>> __main__.__requires__ = [‘ReviewBoard’]
  File "", line 1
    __main__.__requires__ = [‘ReviewBoard’]
 ^
SyntaxError: invalid syntax
>>> import pkg_resources


The above was done several times, this last using C&P directly from your post 
to avoid syntax errors...




 
--
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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.

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-31 Thread Michael Kovacs


On Thursday, July 31, 2014 2:53:44 PM UTC-5, Christian Hammond wrote:
>
> During that run, is selinux still disabled?
>
> Can you run this in a shell:
>
> $ python
> >>> import whoosh
> >>> whoosh.__file__
> >>> import reviewboard
> >>> reviewboard.__file__
>
> $ python
> >>> import __main__
> >>> __main__.__requires__ = [‘ReviewBoard’]
> >>> import pkg_resources
>
> Paste the full output from that.
>
> Christian
>
>
>
>
> Just did full reboot to be sure. SELINUX is off at the time of testing. 
> IPTABLES & IP6TABLES are stopped as well. Here is yoru outputs:
>
[root@ITT-D-Review logs]# getenforce
Permissive
[root@ITT-D-Review logs]# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import whoosh
>>> whoosh.__file__
'/usr/lib/python2.6/site-packages/Whoosh-2.6.0-py2.6.egg/whoosh/__init__.pyc'
>>> import reviewboard
>>> reviewboard.__file__
'/usr/lib/python2.6/site-packages/ReviewBoard-2.0.5-py2.6.egg/reviewboard/__init__.pyc'

>>> import __main__
>>> __main__.__requires__ = [‘ReviewBoard’]
  File "", line 1
__main__.__requires__ = [‘ReviewBoard’]
 ^
SyntaxError: invalid syntax
>>> __main__.__requires__ = [‘ReviewBoard’]
  File "", line 1
__main__.__requires__ = [‘ReviewBoard’]
 ^
SyntaxError: invalid syntax
>>> import pkg_resources


The above was done several times, this last using C&P directly from your 
post to avoid syntax errors...




 

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-31 Thread Christian Hammond
During that run, is selinux still disabled?

Can you run this in a shell:

    $ python
    >>> import whoosh
    >>> whoosh.__file__
    >>> import reviewboard
    >>> reviewboard.__file__

    $ python
    >>> import __main__
    >>> __main__.__requires__ = [‘ReviewBoard’]
    >>> import pkg_resources

Paste the full output from that.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com

On July 31, 2014 at 12:44:00 PM, Michael Kovacs (dromin...@gmail.com) wrote:

OK wow... Went back to square one and reloaded everything to keep it clean. I 
believe the bulk of my problems were actually a combination of selinux & 
iptables; once I temporarily disabled them and tracked out a bunch of deps I 
have the 2.0.5 system up on a clean install (no yum reviewboard related 
modules).




I was able to get to the admin screen login prompt, and when I did that it did 
login but the access and error log still shows some issues These excerpts 
were from empty log files so you are actually seeing the specific items from 
the first login attempt:






==> access_log <==
10.200.33.99 - - [31/Jul/2014:19:25:22 +] "GET / HTTP/1.1" 302 - "-" 
"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:28 +] "GET /r/ HTTP/1.1" 200 2524 "-" 
"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:32 +] "GET /jsi18n/ HTTP/1.1" 200 773 
"http://itt-d-review.abc.local/r/"; "Mozilla/5.0 (Windows NT 6.3; WOW64; 
Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:42 +] "GET /account/login/?next=/r/ 
HTTP/1.1" 200 1962 "http://itt-d-review.abc.local/r/"; "Mozilla/5.0 (Windows NT 
6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:45 +] "GET /jsi18n/ HTTP/1.1" 200 773 
"http://itt-d-review.abc.local/account/login/?next=/r/"; "Mozilla/5.0 (Windows 
NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:57 +] "POST /account/login/ HTTP/1.1" 
302 - "http://itt-d-review.abc.local/account/login/?next=/r/"; "Mozilla/5.0 
(Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:26:10 +] "GET /r/ HTTP/1.1" 200 2755 
"http://itt-d-review.abc.local/account/login/?next=/r/"; "Mozilla/5.0 (Windows 
NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"

==> error_log <==
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] mod_wsgi (pid=1288): 
Target WSGI script '/var/www/itt-d-review.abc.local/htdocs/reviewboard.wsgi' 
cannot be loaded as Python module., referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] mod_wsgi (pid=1288): 
Exception occurred processing WSGI script 
'/var/www/itt-d-review.abc.local/htdocs/reviewboard.wsgi'., referer: 
http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] Traceback (most recent 
call last):, referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] Traceback (most recent 
call last):, referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"/var/www/itt-d-review.abc.local/htdocs/reviewboard.wsgi", line 3, in , 
referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] import 
pkg_resources, referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"build/bdist.linux-x86_64/egg/pkg_resources.py", line 2876, in , 
referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"build/bdist.linux-x86_64/egg/pkg_resources.py", line 449, in _build_master, 
referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"build/bdist.linux-x86_64/egg/pkg_resources.py", line 745, in require, referer: 
http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"build/bdist.linux-x86_64/egg/pkg_resources.py", line 639, in resolve, referer: 
http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] DistributionNotFound: 
Whoosh, referer: http://itt-d-review.abc.local/r/
==> access_log <==
10.200.33.99 - - [31/Jul/2014:14:26:13 -0500] "GET /jsi18n/ HTTP/1.1" 500 1372 
"http://itt-d-review.abc.local/r/"; "Mozilla/5.0 (Windows NT 6.3; WOW64; 
Trident/7.0; rv:11.0) like Gecko"








This is v2.0.5 as stated and the "Whoosh" shows as being installed:




[root@ITT-D-Review logs]# easy_install -U Whoosh
Searching for Whoosh
Reading https://pypi.python.org/simple/Whoosh/
Best match: Whoosh 2.6.0
Processing Whoosh-2.6.0-py2.6.egg
Whoosh 2.6.0 is already the active version in easy-install.pth
Using /usr/lib/python2.6/site-packages/Whoosh-2.6.0-py2.6.egg
Processing dependencies for 

Re: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-31 Thread Michael Kovacs


OK wow... Went back to square one and reloaded everything to keep it clean. 
I believe the bulk of my problems were actually a combination of selinux & 
iptables; once I temporarily disabled them and tracked out a bunch of deps 
I have the 2.0.5 system up on a clean install (no yum reviewboard related 
modules). 



I was able to get to the admin screen login prompt, and when I did that it 
did login but the access and error log still shows some issues These 
excerpts were from empty log files so you are actually seeing the specific 
items from the first login attempt:




==> access_log <==
10.200.33.99 - - [31/Jul/2014:19:25:22 +] "GET / HTTP/1.1" 302 - "-" 
"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:28 +] "GET /r/ HTTP/1.1" 200 2524 
"-" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:32 +] "GET /jsi18n/ HTTP/1.1" 200 
773 "http://itt-d-review.abc.local/r/"; "Mozilla/5.0 (Windows NT 6.3; WOW64; 
Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:42 +] "GET /account/login/?next=/r/ 
HTTP/1.1" 200 1962 "http://itt-d-review.abc.local/r/"; "Mozilla/5.0 (Windows 
NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:45 +] "GET /jsi18n/ HTTP/1.1" 200 
773 "http://itt-d-review.abc.local/account/login/?next=/r/"; "Mozilla/5.0 
(Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:25:57 +] "POST /account/login/ 
HTTP/1.1" 302 - "http://itt-d-review.abc.local/account/login/?next=/r/"; 
"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.200.33.99 - - [31/Jul/2014:19:26:10 +] "GET /r/ HTTP/1.1" 200 2755 "
http://itt-d-review.abc.local/account/login/?next=/r/"; "Mozilla/5.0 
(Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"

==> error_log <==
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] mod_wsgi 
(pid=1288): Target WSGI script 
'/var/www/itt-d-review.abc.local/htdocs/reviewboard.wsgi' cannot be loaded 
as Python module., referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] mod_wsgi 
(pid=1288): Exception occurred processing WSGI script 
'/var/www/itt-d-review.abc.local/htdocs/reviewboard.wsgi'., referer: 
http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] Traceback (most 
recent call last):, referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] Traceback (most 
recent call last):, referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"/var/www/itt-d-review.abc.local/htdocs/reviewboard.wsgi", line 3, in 
, referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] import 
pkg_resources, referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"build/bdist.linux-x86_64/egg/pkg_resources.py", line 2876, in , 
referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"build/bdist.linux-x86_64/egg/pkg_resources.py", line 449, in 
_build_master, referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"build/bdist.linux-x86_64/egg/pkg_resources.py", line 745, in require, 
referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99]   File 
"build/bdist.linux-x86_64/egg/pkg_resources.py", line 639, in resolve, 
referer: http://itt-d-review.abc.local/r/
[Thu Jul 31 14:26:13 2014] [error] [client 10.200.33.99] 
DistributionNotFound: Whoosh, referer: http://itt-d-review.abc.local/r/
==> access_log <==
10.200.33.99 - - [31/Jul/2014:14:26:13 -0500] "GET /jsi18n/ HTTP/1.1" 500 
1372 "http://itt-d-review.abc.local/r/"; "Mozilla/5.0 (Windows NT 6.3; 
WOW64; Trident/7.0; rv:11.0) like Gecko"





This is v2.0.5 as stated and the "Whoosh" shows as being installed:



[root@ITT-D-Review logs]# easy_install -U Whoosh
Searching for Whoosh
Reading https://pypi.python.org/simple/Whoosh/
Best match: Whoosh 2.6.0
Processing Whoosh-2.6.0-py2.6.egg
Whoosh 2.6.0 is already the active version in easy-install.pth
Using /usr/lib/python2.6/site-packages/Whoosh-2.6.0-py2.6.egg
Processing dependencies for Whoosh
Finished processing dependencies for Whoosh



-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-30 Thread Christian Hammond
Hi Michael,

“Whoosh” is a new dependency only in Review Board 2.0.x. The fact that it was 
trying to find Whoosh says that there’s some metadata specifying that Review 
Board is depending on Whoosh. Is there any chance that your first upgrade 
attempt resulted in an “easy_install -U ReviewBoard” that installed 2.0.x, 
which you then attempted to uninstall, or cancel half-way through?

The original post says "Trying to get up to 2.x to work on the SSL certificate 
errors.” This sounded like you were attempting a 2.0.x install. Sorry if that 
was a misunderstanding, but that along with Whoosh led me to believe that was 
the original target.

The target version can be whichever you prefer. 1.7.27 is fine. The main 
packages you’ll need to uninstall include:

* ReviewBoard
* Django
* Djblets
* django-pipeline
* django_evolution

There may be more.

Alternatively, stay on yum, but you’ll need to still nuke all the packages that 
you easy_install’d and re-install with yum. Basically, these packages are in a 
bad state, since there’s differences between what easy_install and yum do, so 
you’ll have to fix those up.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com

On July 30, 2014 at 1:23:02 PM, Michael Kovacs (dromin...@gmail.com) wrote:

Christian:
   Again, just to be clear the machine is snapshot'd at the running 1.7.25 
yum install, which is working. The steps above all related to getting 1.7.25 
upgraded to 1.7.27; the snapshot in question had never been used to attempt a 
2.0.x install.

I will revert, then uninstall the yum versions and attempt a pure install using 
only the easy_install utility. Is there a list of deps that may need to be 
manually installed? Should the target be 1.7.27 or 2.0.5?

 
--
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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.

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-30 Thread Michael Kovacs

>
> Christian:
>
   Again, just to be clear the machine is snapshot'd at the running 
1.7.25 yum install, which is working. The steps above all related to 
getting 1.7.25 upgraded to 1.7.27; the snapshot in question had never been 
used to attempt a 2.0.x install. 

I will revert, then uninstall the yum versions and attempt a pure install 
using only the easy_install utility. Is there a list of deps that may need 
to be manually installed? Should the target be 1.7.27 or 2.0.5?

 

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-30 Thread Christian Hammond
It doesn’t sound like anything but the metadata for Review Board 2.0.x was ever 
installed. No files were ever fetched.

Your mixing and matching of yum packages and easy_install packages is likely 
causing your problems. You also tried to install Review Board 2.0.x previously 
(given that it’s trying to find Whoosh), but now have mixed metadata for 2.0.x 
and 1.7.25 and 1.7.27.

Paramiko missing is another huge red flag. Sounds like your entire install is 
pretty much busted.

To begin fixing this, you will need to uninstall all the yum packages that 
affect Review Board (all the ones I mentioned before, plus Django, and maybe 
others.) Those are just going to cause problems, if you try to mix-and-match 
like this.

You then need to re-do an easy_install of ReviewBoard. Please save the entire 
log and attach it.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com

On July 30, 2014 at 1:09:14 PM, Michael Kovacs (dromin...@gmail.com) wrote:

OK so given the yum install is topped out at RB 1.7.25, Python at 2.6 and 
others accordingly, would the best way to be rpm -e on everything and 
reinstalling from scratch? Again, I have a snapshot of the running base system 
so reverting is not an issue when I get down a dead end..

OK so in the base system I have the following output:
 [root@Itt-D-Review logs]# locate egg | grep -i review
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/PKG-INFO
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/SOURCES.txt
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/dependency_links.txt
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/entry_points.txt
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/not-zip-safe
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/top_level.txt

[root@Itt-D-Review logs]# locate egg | grep -i whoosh
[root@Itt-D-Review logs]#

[root@Itt-D-Review logs]# python -V
Python 2.6.6

[root@Itt-D-Review logs]# rpm -qa | grep -i review
ReviewBoard-1.7.25-1.el6.noarch
[root@Itt-D-Review logs]# rpm -qa | grep -i django
Django14-1.4.13-1.el6.noarch
python-django-evolution-0.6.9-4.el6.noarch
python-django-pipeline-1.2.24-2.el6.noarch


Now execute the easy_install -U on Djblets & django-evolu[root@Itt-D-Review 
logs]# easy_install -U django_evolution
Searching for django-evolution
Reading https://pypi.python.org/simple/django_evolution/
Reading http://code.google.com/p/django-evolution/
Reading http://downloads.reviewboard.org/releases/django-evolution/0.7/
Best match: django-evolution 0.7.3
Downloading 
http://downloads.reviewboard.org/releases/django-evolution/0.7/django_evolution-0.7.3-py2.6.egg
Processing django_evolution-0.7.3-py2.6.egg
removing '/usr/lib/python2.6/site-packages/django_evolution-0.7.3-py2.6.egg' 
(and everything under it)
creating /usr/lib/python2.6/site-packages/django_evolution-0.7.3-py2.6.egg
Extracting django_evolution-0.7.3-py2.6.egg to /usr/lib/python2.6/site-packages
django-evolution 0.7.3 is already the active version in easy-install.pth
Installed /usr/lib/python2.6/site-packages/django_evolution-0.7.3-py2.6.egg
Processing dependencies for django-evolution
Finished processing dependencies for django-evolution
tion:

Site is still available and up and running...

easy_install -U ReviewBoard==1.7.27

The upgrade log is rather lengthy and I will attach it if it will be helpful, 
but once it hit pcrypto we had warnings about definition locations:

Downloading 
https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz#md5=55a61a054aa66812daf5161a0d5d7eda
Processing pycrypto-2.6.1.tar.gz
Writing /tmp/easy_install-tYbbrb/pycrypto-2.6.1/setup.cfg
Running pycrypto-2.6.1/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-tYbbrb/pycrypto-2.6.1/egg-dist-tmp-KXR7DR
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
In file included from /usr/include/python2.6/pyconfig.h:6,
 from /usr/include/python2.6/Python.h:8,
 from src/MD2.c:31:
/usr/include/python2.6/pyconfig-64.h:1034:1: warning: "_POSIX_C_SOURCE" 
redefined
In file included from /usr/include/string.h:27,
 from src/MD2.c:30:
/usr/include/features.h:162:1: warning: this is the location of the previous 
definition
..
/usr/include/python2.6/pyconfig-64.h:1043:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/assert.h:37,
 from src/_counter.c:25:
/usr/include/features.h:164:1: warning: this is the location of the previous 
definition
zip_safe flag not set; analyzing archive contents...
Adding pycrypto 2.6.1 to easy-install.pth file
Installed /usr/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg
Finished processing dependencies for ReviewBoard==1.7.27

rb-site upgrade /var/www/itt-d-re

Re: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-30 Thread Michael Kovacs

>
> OK so given the yum install is topped out at RB 1.7.25, Python at 2.6 and 
> others accordingly, would the best way to be rpm -e on everything and 
> reinstalling from scratch? Again, I have a snapshot of the running base 
> system so reverting is not an issue when I get down a dead end..
>

OK so in the base system I have the following output:
 [root@Itt-D-Review logs]# locate egg | grep -i review
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/PKG-INFO
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/SOURCES.txt
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/dependency_links.txt
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/entry_points.txt
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/not-zip-safe
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.25-py2.6.egg-info/top_level.txt

[root@Itt-D-Review logs]# locate egg | grep -i whoosh
[root@Itt-D-Review logs]#

[root@Itt-D-Review logs]# python -V
Python 2.6.6

[root@Itt-D-Review logs]# rpm -qa | grep -i review
ReviewBoard-1.7.25-1.el6.noarch
[root@Itt-D-Review logs]# rpm -qa | grep -i django
Django14-1.4.13-1.el6.noarch
python-django-evolution-0.6.9-4.el6.noarch
python-django-pipeline-1.2.24-2.el6.noarch


Now execute the easy_install -U on Djblets & django-evolu[root@Itt-D-Review 
logs]# easy_install -U django_evolution
Searching for django-evolution
Reading https://pypi.python.org/simple/django_evolution/
Reading http://code.google.com/p/django-evolution/
Reading http://downloads.reviewboard.org/releases/django-evolution/0.7/
Best match: django-evolution 0.7.3
Downloading 
http://downloads.reviewboard.org/releases/django-evolution/0.7/django_evolution-0.7.3-py2.6.egg
Processing django_evolution-0.7.3-py2.6.egg
removing 
'/usr/lib/python2.6/site-packages/django_evolution-0.7.3-py2.6.egg' (and 
everything under it)
creating /usr/lib/python2.6/site-packages/django_evolution-0.7.3-py2.6.egg
Extracting django_evolution-0.7.3-py2.6.egg to 
/usr/lib/python2.6/site-packages
django-evolution 0.7.3 is already the active version in easy-install.pth
Installed /usr/lib/python2.6/site-packages/django_evolution-0.7.3-py2.6.egg
Processing dependencies for django-evolution
Finished processing dependencies for django-evolution
tion:

Site is still available and up and running...

easy_install -U ReviewBoard==1.7.27

The upgrade log is rather lengthy and I will attach it if it will be 
helpful, but once it hit pcrypto we had warnings about definition locations:

Downloading 
https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz#md5=55a61a054aa66812daf5161a0d5d7eda
Processing pycrypto-2.6.1.tar.gz
Writing /tmp/easy_install-tYbbrb/pycrypto-2.6.1/setup.cfg
Running pycrypto-2.6.1/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-tYbbrb/pycrypto-2.6.1/egg-dist-tmp-KXR7DR
warning: GMP or MPIR library not found; Not building 
Crypto.PublicKey._fastmath.
In file included from /usr/include/python2.6/pyconfig.h:6,
 from /usr/include/python2.6/Python.h:8,
 from src/MD2.c:31:
/usr/include/python2.6/pyconfig-64.h:1034:1: warning: "_POSIX_C_SOURCE" 
redefined
In file included from /usr/include/string.h:27,
 from src/MD2.c:30:
/usr/include/features.h:162:1: warning: this is the location of the 
previous definition
..
/usr/include/python2.6/pyconfig-64.h:1043:1: warning: "_XOPEN_SOURCE" 
redefined
In file included from /usr/include/assert.h:37,
 from src/_counter.c:25:
/usr/include/features.h:164:1: warning: this is the location of the 
previous definition
zip_safe flag not set; analyzing archive contents...
Adding pycrypto 2.6.1 to easy-install.pth file
Installed 
/usr/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg
Finished processing dependencies for ReviewBoard==1.7.27

rb-site upgrade /var/www/itt-d-review.abc.local   was successful

Restarted httpd successful

And we get the taking a nap message..

Running the same locate after an update gives:
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.27-py2.6.egg/EGG-INFO
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.27-py2.6.egg/reviewboard
/usr/lib/python2.6/site-packages/ReviewBoard-1.7.27-py2.6.egg/webtests
... and so on ...

There is still a 1.7.25 directory

But I still don't have a "whoosh" anywhere on the system??

The http error log shows
[Wed Jul 30 15:05:07 2014] [error] [client 10.200.33.99] mod_wsgi 
(pid=2492): Target WSGI script '/var/www/itt-d-review.aaa.local/htdocs/
reviewboard.wsgi' cannot be loaded as Python module.
[Wed Jul 30 15:05:07 2014] [error] [client 10.200.33.99] mod_wsgi 
(pid=2492): Exception occurred processing WSGI script 
'/var/www/itt-d-review.aaa.local/htdocs/reviewboard.wsgi'.
[Wed Jul 30 15:05:07 2014] [error] [client 10.200.33.99] Traceback (most 
recent call last):
[Wed Jul 30 15:05:07 2014] [error] [client 10.200.33.99]   Fil

Re: Upgrade from working 1.7.25 on Centos 65 fails

2014-07-30 Thread Christian Hammond
Hi Michael,

You'll likely run into problems attempting to mix yum-installed and
easy_installed packages for Review Board. You need to use one or the other,
but not both. This applies to ReviewBoard, Djblets, django-evolution,
django-pipeline, and more.

It sounds like the attempts to deal with Python versions may have also
confused things, particularly attempting to symlink things. I'd undo that.

What's likely happening is that you now have two versions of Review Board
installed, but in such a way where the modules aren't all where they're
expected to be.

Can you check the filesystem and find the path to the Whoosh*.egg
directory, and the ReviewBoard*.egg directories, and list them?

Christian


On Wednesday, July 30, 2014, Michael Kovacs  wrote:

> Trying to get up to 2.x to work on the SSL certificate errors. Environment
> is:
>
> Centos 65 updated.
> Python 2.6 (yum installed)
> ReviewBoard 1.7.25 (yum installed)
>
> Setuptools are installed, so easy_install is available.
>
> Attempting to do ANY upgrade (easy_install -U reviewboard or
> reviewboard=1.7.27) seems to succeed. Attempts to access after "rb-site
> upgrade" is run gets a "ReviewBoard is taking a nap" error on the browser
> and the logs show activity only in the access & error logs:
>
> ==> error_log <==
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99] mod_wsgi
> (pid=2720): Target WSGI script
> '/var/www/itt-d-review.aaa.local/htdocs/reviewboard.wsgi' cannot be loaded
> as Python module.
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99] mod_wsgi
> (pid=2720): Exception occurred processing WSGI script
> '/var/www/itt-d-review.aaa.local/htdocs/reviewboard.wsgi'.
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99] Traceback (most
> recent call last):
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99]   File
> "/var/www/itt-d-review.aaa.local/htdocs/reviewboard.wsgi", line 3, in
> 
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99] import
> pkg_resources
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99]   File
> "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2876, in 
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99]   File
> "build/bdist.linux-x86_64/egg/pkg_resources.py", line 449, in _build_master
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99]   File
> "build/bdist.linux-x86_64/egg/pkg_resources.py", line 745, in require
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99]   File
> "build/bdist.linux-x86_64/egg/pkg_resources.py", line 639, in resolve
> [Wed Jul 30 12:16:13 2014] [error] [client 10.200.33.99]
> DistributionNotFound: Whoosh
> ==> access_log <==
> 10.200.33.99 - - [30/Jul/2014:12:16:13 -0500] "GET / HTTP/1.1" 500 1372
> "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
>
>
>
> Obviously domain name has been changed. Again, this is a very basic
> install with no activity yet. I am running hyper-v and have snapshots,
> which make testing various configs easy. I have seen references to
> upgrading the python to 2.7 however when I tried this also it looked like
> several reviewboard modules were looking for files under 2.6, even after
> aliasing python itself. I also tried upgrading python first before
> upgrading the reviewboard but that failed as well.
>
>  I see no difference when I compare the reviewboard.wsgi file to the one
> after upgrade, and in fact the date stamps remain as before. Is there a
> step by step so I can see what I am missing? The best results with the
> fewest errors seem to be easy_install -U django_evolution followed by the
> -U reviewboard, but this simply gives the browser the nap message with the
> above errors in the logs...
>
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://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.
>


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

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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.