Something broke! (Error 500)

2017-09-23 Thread Praveen
Hi,

I am trying to migrate review board (1v+ to 1.7v) from one host to another 
(EL6 x86_64).
I was able to install and get running a fresh review board site.

To migrate the content from old instance, followed below steps:
1) Installed a new reviewboard site (rb-site install /var/www/reviews)
2) Took mysql dump of reivewboard database from source instance
3) Dropped the database created newly for #1
4) Created databsae. Imported the mysql dump and granted permissions to 
database user.
5) Restored SECRET_KEY from old instance into 
/var/www/reviews/conf/settings_local.py
6) Ran upgrade (rb-site upgrade /var/www/reviews) and restarted apache.

For a brief time, the server was listing the old review requests *although 
I was not able to create a new review request* (uploading patch was not 
taking me to the review page, instead it stayed on same "New review 
request" page itself).

Now I am noticing "Something broke! (Error 500)" when try to reach the 
server. I have enabled Debug=True in 
/var/www/reviews/conf/settings_local.py but does not help.

Apache logs from /etc/httpd/logs/error_log:

[Sat Sep 23 18:16:22 2017] [warn] module wsgi_module is already loaded, 
skipping
[Sat Sep 23 18:16:22 2017] [notice] Digest: generating secret for digest 
authentication ...
[Sat Sep 23 18:16:22 2017] [notice] Digest: done
[Sat Sep 23 18:16:22 2017] [notice] Apache/2.2.15 (Unix) DAV/2 
mod_wsgi/4.5.18 Python/2.6 configured -- resuming normal operations
[Sat Sep 23 18:19:17 2017] [error] [client 10.191.196.61] 
/usr/lib/python2.6/site-packages/django/views/generic/list_detail.py:10: 
DeprecationWarning: Function-based generic views have been deprecated; use 
class-based views instead.
[Sat Sep 23 18:19:17 2017] [error] [client 10.191.196.61]   
DeprecationWarning
[Sat Sep 23 19:10:34 2017] [error] [client 10.191.196.61] 
*/usr/lib/python2.6/site-packages/django/views/generic/list_detail.py:10: 
DeprecationWarning: Function-based generic views have been deprecated; use 
class-based views instead.*
I don't see any other exception or errors. Where will be reviewboard log?

Kindly shed some light what could be the issue and how to debug this. 

Thanks,
Praveen

-- 
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.


rbssh with support to send command along with client.connect

2011-02-21 Thread praveen kumar
Hi Christian,

I am unable to add CVS repository.
I had raised a forum question on the same topic before.

I am now using RB 1.5.4 on RHEL with apache.

My CVS server has restriction that the command needs to be sent along
with the connect statement.
i.e., ssh does not give shell when we try to connect.
The command to be executed should be part of the ssh command line
itself.

Can you tell me how i can modify rbssh.py to do the above.

Thanks
Praveen

-- 
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: Cannot add repository with cvs ext in 1.5.2 on RHEL5

2011-01-31 Thread praveen kumar
Hi Christian,

I think i know what the issue is.

The CVS server does not accept ssh connection without the command
option.
It does not allow to login into the shell.

The way to get the CVS data would be to invoke the SSH connection
along with the cvs command.

From the code, i see that you login into the server and then execute
the command.

Any way we can workaround this issue?
I am sure I cannot get the CVS server to allow login into shell.

Thanks for the help
Praveen

-- 
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: Cannot add repository with cvs ext in 1.5.2 on RHEL5

2011-01-28 Thread praveen kumar
Hi Christian,

I have made the changes you suggested.
Also changed the below:
client.connect(hostname, username)

After these changes, i am getting the error:

2011-01-28 06:21:20,929 - DEBUG - start Popen
2011-01-28 06:21:22,971 - DEBUG -
2011-01-28 06:21:22,978 - DEBUG - CVSROOT/modules
2011-01-28 06:21:22,978 - DEBUG - HEAD
2011-01-28 06:21:22,979 - DEBUG - /usr/lib/python2.4/site-packages/
pycrypto-2.3-py2.4-linux-x86_64.egg/Crypto/Util/randpool.py:40:
RandomPool_DeprecationWarning: This application uses RandomPool, which
is BROKEN in older releases.  See http://www.pycrypto.org/randpool-broken
Traceback (most recent call last):
  File /usr/bin/rbssh, line 7, in ?
sys.exit(
  File /usr/lib/python2.4/site-packages/ReviewBoard-1.5.2-py2.4.egg/
reviewboard/cmdline/rbssh.py, line 212, in main
client.connect(hostname, username)
  File /usr/lib/python2.4/site-packages/paramiko-1.7.6-py2.4.egg/
paramiko/client.py, line 278, in connect
socket.gaierror: (-8, 'Servname not supported for ai_socktype')
cvs [checkout aborted]: end of file from server (consult above
messages if any)

2011-01-28 06:21:22,979 - DEBUG - end Popen
2011-01-28 06:21:22,979 - DEBUG - .cvspass not found

i looked up google. ssh for port 22 was already present.
Then i tried adding rbssh, paramiko and openssh to the /etc/services
file.
Still same issue. What service/program is RB/paramiko using?

these are the values passed to the connect. I do NOT think they are
updated correctly. Of-course i could be wrong.
hostname - root:cvs-bn
username - root:my id
command - root:['cvs server']

when i tried to hardcode them as below, they did not take the values i
gave. They retained their original values
213 hostname = 'cvs-bn'
214 username = 'my id'
215 logging.error(hostname)
216 logging.error(username)

ERROR:root:cvs-bn
ERROR:root:my id

I ran out of what else to try here. Help Please

Thanks
Praveen

-- 
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: Cannot add repository with cvs ext in 1.5.2 on RHEL5

2011-01-27 Thread praveen kumar
Hi Christian,

After adding multiple debug statements as you have shown above, found
this in the errmsg of _cat_specific_file function.

2011-01-27 12:29:20,837 - DEBUG - /usr/lib/python2.4/site-packages/
pycrypto-2.3-py2.4-linux-x86_64.egg/Crypto/Util/randpool.py:40:
RandomPool_DeprecationWarning: This application uses RandomPool, which
is BROKEN in older releases.  See http://www.pycrypto.org/randpool-broken
usage: rbssh [options] [user@]hostname command

rbssh: error: no such option: -l
cvs [checkout aborted]: end of file from server (consult above
messages if any)


[root@vm-jc-test1 system-test]# rbssh -h
/usr/lib/python2.4/site-packages/pycrypto-2.3-py2.4-linux-x86_64.egg/
Crypto/Util/randpool.py:40: RandomPool_DeprecationWarning: This
application uses RandomPool, which is BROKEN in older releases.  See
http://www.pycrypto.org/randpool-broken
usage: rbssh [options] [user@]hostname command

options:
  --version show program's version number and exit
  -h, --helpshow this help message and exit
  -p PORT, --port=PORT  the port to connect to
  -q, --quiet   suppress any unnecessary output

Just to reiterate, cvs command from CLI is working fine.
Please let me know how we can debug this issue further.

Thanks
Praveen

-- 
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: Cannot add repository with cvs ext in 1.5.2 on RHEL5

2011-01-26 Thread praveen kumar
Hi Christian,
I am using version 1.5.2 of reviewboard.
I do not have any experience with python.
However, that shouldn't be a problem. i will look up the internet and
learn whatever is required.

Please let me know the steps needed to enable more logging in CVS from
reviewboard side.

Thanks
Praveen

-- 
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: Cannot add repository with cvs ext in 1.5.2 on RHEL5

2011-01-25 Thread praveen kumar
The command worked fine from the cli.
Attached below is the output.

cvs -f -d repo path checkout -r HEAD -p CVSROOT/modules
===
Checking out CVSROOT/modules
RCS:  removed/CVSROOT/modules,v
VERS: 1.306
***
#
# The CVS Modules File
#
#ident  @(#)cvs/examples:$Name: HEAD $:$Id: modules,v 1.306
2004/12/14 04:55:52 dbergstr Exp $

-- 
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: Cannot add repository with cvs ext in 1.5.2 on RHEL5

2011-01-24 Thread praveen kumar
I am still seeing this issue.
has anybody been able to resolve it?

Can I add the local file system as a repository.
i have a local bugzilla installation.
i have checked out the cvs reposiroty onto the machine and am using it
for bugzilla.
can i do the same thing for reviewboard as well?

Any help is welcome.

-- 
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


Cannot add repository with cvs ext in 1.5.2 on RHEL5

2011-01-19 Thread praveen kumar
Hi All,

i am trying to add a cvs repository with ssh (ext).
I have tried with ssh keys and just plain password.
With both options it is authenticating successfully.

However, the Add Repository page gives the error A repository was not
found at the specified path.

I have looked at most of the articles in the group and could not find
a solution for this issue.
if i try the cvs -f -d  ... command from the shell, it is working
fine.

This is the log file output without using ssh keys

2011-01-19 06:28:15,566 - DEBUG - Ciphers agreed: local=aes128-ctr,
remote=aes128-ctr
2011-01-19 06:28:15,567 - DEBUG - using kex diffie-hellman-group1-
sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-
ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none,
remote none
2011-01-19 06:28:16,233 - DEBUG - Switch to new keys ...
2011-01-19 06:28:16,935 - DEBUG - userauth is OK
2011-01-19 06:28:17,329 - INFO - Authentication (password) successful!
2011-01-19 06:28:17,430 - DEBUG - EOF in transport thread
2011-01-19 06:28:19,070 - DEBUG - EOF in transport thread

Any help would be greatly 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