Something broke! (Error 500) after adding new Git repository

2009-07-14 Thread wezyde

I just installed reviewboard on a Ubuntu box and things were running
well.  Once I add a new git repository and click on New Review
Request I get the Something Broke! page.

Can anyone help with this?

Thanks.

Traceback (most recent call last):

  File /usr/local/lib/python2.6/dist-packages/Django-1.0.2_final-
py2.6.egg/django/core/handlers/base.py, line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)

  File /usr/local/lib/python2.6/dist-packages/Djblets-0.5-py2.6.egg/
djblets/auth/util.py, line 45, in _checklogin
return view_func(request, *args, **kwargs)

  File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
py2.6.egg/reviewboard/reviews/views.py, line 84, in
new_review_request
fields[repo.id] = repo.get_scmtool().get_fields()

  File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
py2.6.egg/reviewboard/scmtools/models.py, line 40, in get_scmtool
return cls(self)

  File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
py2.6.egg/reviewboard/scmtools/git.py, line 18, in __init__
self.client = GitClient(repository.path)

  File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
py2.6.egg/reviewboard/scmtools/git.py, line 170, in __init__
raise ImportError

ImportError


ModPythonRequest
path:/r/new/,
GET:QueryDict: {},
POST:QueryDict: {},
COOKIES:{'rbsessionid': 'a343a2ba1857c6035cfdd714e3e473c8'},
META:{'AUTH_TYPE': None,
 'CONTENT_LENGTH': 0L,
 'CONTENT_TYPE': None,
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,bzip2,sdch',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'rbsessionid=a343a2ba1857c6035cfdd714e3e473c8',
 'HTTP_HOST': 'review.firmware',
 'HTTP_REFERER': 'http://review.firmware/account/preferences/?next=/
dashboard/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5',
 'PATH_INFO': u'/r/new/',
 'PATH_TRANSLATED': None,
 'QUERY_STRING': None,
 'REMOTE_ADDR': '10.0.0.144',
 'REMOTE_HOST': None,
 'REMOTE_IDENT': None,
 'REMOTE_USER': None,
 'REQUEST_METHOD': 'GET',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'review.firmware',
 'SERVER_PORT': 0,
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'mod_python'}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
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: Something broke! (Error 500) after adding new Git repository

2009-07-14 Thread wezyde

I definitely have Git on the server.  I'm using it for many projects.
Is is possible that there is an issue with permissions for the apache
user?


On Jul 14, 2:41 pm, Christian Hammond chip...@chipx86.com wrote:
 Looks like git isn't installed on that server.

 We're going to put in better error messages for such failure cases in 1.1,
 but for now, make sure git is installed and in the path.

 Christian

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

 On Tue, Jul 14, 2009 at 2:38 PM, wezyde wes.bill...@gmail.com wrote:

  I just installed reviewboard on a Ubuntu box and things were running
  well.  Once I add a new git repository and click on New Review
  Request I get the Something Broke! page.

  Can anyone help with this?

  Thanks.

  Traceback (most recent call last):

   File /usr/local/lib/python2.6/dist-packages/Django-1.0.2_final-
  py2.6.egg/django/core/handlers/base.py, line 86, in get_response
     response = callback(request, *callback_args, **callback_kwargs)

   File /usr/local/lib/python2.6/dist-packages/Djblets-0.5-py2.6.egg/
  djblets/auth/util.py, line 45, in _checklogin
     return view_func(request, *args, **kwargs)

   File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
  py2.6.egg/reviewboard/reviews/views.py, line 84, in
  new_review_request
     fields[repo.id] = repo.get_scmtool().get_fields()

   File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
  py2.6.egg/reviewboard/scmtools/models.py, line 40, in get_scmtool
     return cls(self)

   File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
  py2.6.egg/reviewboard/scmtools/git.py, line 18, in __init__
     self.client = GitClient(repository.path)

   File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
  py2.6.egg/reviewboard/scmtools/git.py, line 170, in __init__
     raise ImportError

  ImportError

  ModPythonRequest
  path:/r/new/,
  GET:QueryDict: {},
  POST:QueryDict: {},
  COOKIES:{'rbsessionid': 'a343a2ba1857c6035cfdd714e3e473c8'},
  META:{'AUTH_TYPE': None,
   'CONTENT_LENGTH': 0L,
   'CONTENT_TYPE': None,
   'GATEWAY_INTERFACE': 'CGI/1.1',
   'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/
  html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
   'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
   'HTTP_ACCEPT_ENCODING': 'gzip,deflate,bzip2,sdch',
   'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
   'HTTP_CONNECTION': 'keep-alive',
   'HTTP_COOKIE': 'rbsessionid=a343a2ba1857c6035cfdd714e3e473c8',
   'HTTP_HOST': 'review.firmware',
   'HTTP_REFERER': 'http://review.firmware/account/preferences/?next=/
  dashboard/http://review.firmware/account/preferences/?next=/%0Adashboard/
  ',
   'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
  AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5',
   'PATH_INFO': u'/r/new/',
   'PATH_TRANSLATED': None,
   'QUERY_STRING': None,
   'REMOTE_ADDR': '10.0.0.144',
   'REMOTE_HOST': None,
   'REMOTE_IDENT': None,
   'REMOTE_USER': None,
   'REQUEST_METHOD': 'GET',
   'SCRIPT_NAME': '',
   'SERVER_NAME': 'review.firmware',
   'SERVER_PORT': 0,
   'SERVER_PROTOCOL': 'HTTP/1.1',
   'SERVER_SOFTWARE': 'mod_python'}


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
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: Something broke! (Error 500) after adding new Git repository

2009-07-14 Thread wezyde

I just ran...
git --git-dir=/var/git/repositories/k2.git config
core.repositoryformatversion

and it responded with...
0

I'm not a python expert, but hopefully that is the command.

In my repository setup I have
/var/git/repositories/k2.git

Thanks.

On Jul 14, 3:03 pm, Christian Hammond chip...@chipx86.com wrote:
 Actually, it looks like it had trouble with the repository it was configured
 with.

 The relevant code is:

     def __init__(self, path):
         self.path = path
         p = subprocess.Popen(
             ['git', '--git-dir=%s' % self.path, 'config',
                  'core.repositoryformatversion'],
             stderr=subprocess.PIPE,
             stdout=subprocess.PIPE,
             close_fds=(os.name != 'nt')
         )
         contents = p.stdout.read()
         errmsg = p.stderr.read()
         failure = p.wait()

         if failure:
             raise ImportError

 So maybe try executing that same command and making sure it works on the
 exact path specified in your repository info.

 Christian

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

 On Tue, Jul 14, 2009 at 3:02 PM, wezyde wes.bill...@gmail.com wrote:

  I definitely have Git on the server.  I'm using it for many projects.
  Is is possible that there is an issue with permissions for the apache
  user?

  On Jul 14, 2:41 pm, Christian Hammond chip...@chipx86.com wrote:
   Looks like git isn't installed on that server.

   We're going to put in better error messages for such failure cases in
  1.1,
   but for now, make sure git is installed and in the path.

   Christian

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

   On Tue, Jul 14, 2009 at 2:38 PM, wezyde wes.bill...@gmail.com wrote:

I just installed reviewboard on a Ubuntu box and things were running
well.  Once I add a new git repository and click on New Review
Request I get the Something Broke! page.

Can anyone help with this?

Thanks.

Traceback (most recent call last):

 File /usr/local/lib/python2.6/dist-packages/Django-1.0.2_final-
py2.6.egg/django/core/handlers/base.py, line 86, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File /usr/local/lib/python2.6/dist-packages/Djblets-0.5-py2.6.egg/
djblets/auth/util.py, line 45, in _checklogin
   return view_func(request, *args, **kwargs)

 File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
py2.6.egg/reviewboard/reviews/views.py, line 84, in
new_review_request
   fields[repo.id] = repo.get_scmtool().get_fields()

 File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
py2.6.egg/reviewboard/scmtools/models.py, line 40, in get_scmtool
   return cls(self)

 File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
py2.6.egg/reviewboard/scmtools/git.py, line 18, in __init__
   self.client = GitClient(repository.path)

 File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-
py2.6.egg/reviewboard/scmtools/git.py, line 170, in __init__
   raise ImportError

ImportError

ModPythonRequest
path:/r/new/,
GET:QueryDict: {},
POST:QueryDict: {},
COOKIES:{'rbsessionid': 'a343a2ba1857c6035cfdd714e3e473c8'},
META:{'AUTH_TYPE': None,
 'CONTENT_LENGTH': 0L,
 'CONTENT_TYPE': None,
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,bzip2,sdch',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'rbsessionid=a343a2ba1857c6035cfdd714e3e473c8',
 'HTTP_HOST': 'review.firmware',
 'HTTP_REFERER': 'http://review.firmware/account/preferences/?next=/
dashboard/
 http://review.firmware/account/preferences/?next=/%0Adashboard/
',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5',
 'PATH_INFO': u'/r/new/',
 'PATH_TRANSLATED': None,
 'QUERY_STRING': None,
 'REMOTE_ADDR': '10.0.0.144',
 'REMOTE_HOST': None,
 'REMOTE_IDENT': None,
 'REMOTE_USER': None,
 'REQUEST_METHOD': 'GET',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'review.firmware',
 'SERVER_PORT': 0,
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'mod_python'}


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http

No module named reviewboard.settings

2009-07-10 Thread wezyde

I'm trying to install reviewboard on a djangostack from Bitnami.
Currently, I'm getting the Review Board is taking a nap page.

I did a rb-site install ... to apache2/htdocs/review.  All the files
are present there now and I have modified httpd.conf to Include apache-
modpython.conf.

Here is my current configuration...

VirtualHost *:8089
ServerName firmwarebackup
DocumentRoot C:/Program Files/BitNami DjangoStack/apache2/htdocs/
review/htdocs

# Error handlers
ErrorDocument 500 /errordocs/500.html

# Serve django pages
Location /
PythonPath ['C:/Program Files/BitNami 
DjangoStack/apache2/htdocs/
review/conf'] + sys.path
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetEnv PYTHON_EGG_CACHE C:/Program Files/BitNami DjangoStack/
apache2/htdocs/review/tmp/egg_cache
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug Off
# Used to run multiple mod_python sites in the same apache
PythonInterpreter reviewboard_review
/Location

# Serve static media without running it through mod_python
# (overrides the above)
Location /media
SetHandler None
/Location
Location /errordocs
SetHandler None
/Location

Directory C:/Program Files/BitNami DjangoStack/apache2/htdocs/
review/htdocs
AllowOverride All
/Directory

# Alias static media requests to filesystem
Alias /media C:/Program Files/BitNami DjangoStack/apache2/htdocs/
review/htdocs/media
Alias /errordocs C:/Program Files/BitNami DjangoStack/apache2/htdocs/
review/htdocs/errordocs
/VirtualHost


And this is my current error.log...

[Fri Jul 10 13:32:26 2009] [notice] Child 7948: Child process is
running
[Fri Jul 10 13:32:26 2009] [notice] Child 7948: Acquired the start
mutex.
[Fri Jul 10 13:32:26 2009] [notice] Child 7948: Starting 250 worker
threads.
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153] mod_python
(pid=7948, interpreter='reviewboard_review', phase='PythonHandler',
handler='django.core.handlers.modpython'): Application error
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153] ServerName:
'firmwarebackup'
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153] DocumentRoot:
'C:/Program Files/BitNami DjangoStack/apache2/htdocs/review/htdocs'
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153] URI: '/'
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153] Location: '/'
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153] Directory: None
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153] Filename: 'C:/
Program Files/BitNami DjangoStack/apache2/htdocs/review/htdocs/'
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153] PathInfo: ''
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153] Traceback (most
recent call last):
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153]   File c:\
\progra~1\\bitnam~2\\python\\lib\\site-packages\\mod_python-3.3.1-
py2.4-win32.egg\\mod_python\\importer.py, line 1537, in
HandlerDispatch\ndefault=default_handler, arg=req,
silent=hlist.silent)
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153]   File c:\
\progra~1\\bitnam~2\\python\\lib\\site-packages\\mod_python-3.3.1-
py2.4-win32.egg\\mod_python\\importer.py, line 1229, in
_process_target\nresult = _execute_target(config, req, object,
arg)
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153]   File c:\
\progra~1\\bitnam~2\\python\\lib\\site-packages\\mod_python-3.3.1-
py2.4-win32.egg\\mod_python\\importer.py, line 1128, in
_execute_target\nresult = object(arg)
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153]   File C:\
\Program Files\\BitNami DjangoStack\\apps\\django\\django\\core\
\handlers\\modpython.py, line 228, in handler\nreturn
ModPythonHandler()(req)
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153]   File C:\
\Program Files\\BitNami DjangoStack\\apps\\django\\django\\core\
\handlers\\modpython.py, line 191, in __call__\n
self.load_middleware()
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153]   File C:\
\Program Files\\BitNami DjangoStack\\apps\\django\\django\\core\
\handlers\\base.py, line 31, in load_middleware\nfor
middleware_path in settings.MIDDLEWARE_CLASSES:
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153]   File C:\
\Program Files\\BitNami DjangoStack\\apps\\django\\django\\conf\
\__init__.py, line 28, in __getattr__\nself._import_settings()
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153]   File C:\
\Program Files\\BitNami DjangoStack\\apps\\django\\django\\conf\
\__init__.py, line 59, in _import_settings\nself._target =
Settings(settings_module)
[Fri Jul 10 13:32:29 2009] [error] [client 10.0.0.153]   File C:\
\Program Files\\BitNami DjangoStack\\apps\\django\\django\\conf\
\__init__.py, line 94, 

Re: No module named reviewboard.settings

2009-07-10 Thread wezyde

Hmm... it looks like the PIL*.exe will not run because Python 2.4 is
not in the registry.  I'm guessing that is because Bitnami does not
add python to the registry during installation.  So the PIL*.exe will
not run.  I see there's a sources version on their site...can I use
that instead of this installer?

Thanks.

On Jul 10, 3:29 pm, Christian Hammond chip...@chipx86.com wrote:
 Okay, for that you'll need to grab the PIL installer exe 
 athttp://www.pythonware.com/products/pil/, and make sure it's installed in
 bitnami's site-packages directory. If installed correctly, that should
 satisfy the requirement.

 PIL is the only required dependency that needs to be compiled, which is
 tougher on Windows out of the box.

 Christian

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

 On Fri, Jul 10, 2009 at 3:11 PM, wezyde wes.bill...@gmail.com wrote:

  Thanks so much.

  I have removed my other Python installation and hopefully only using
  Bitnami's now.

  When I try to do easy_install ReviewBoard or easy_install
  ReviewBoard-1.0.tar.gz

  I always get this error...

  Running PIL-1.1.6\setup.py -q bdist_egg --dist-dir c:
  \docume~1\wes~1.bil\locals~
  1\temp\easy_install--6of_o\PIL-1.1.6\egg-dist-tmp-hyrszh
  error: Setup script exited with error: Python was built with Visual
  Studio 2003;

  extensions must be built with a compiler than can generate compatible
  binaries.
  Visual Studio 2003 was not found on this system. If you have Cygwin
  installed,
  you can try compiling with MingW32, by passing -c mingw32 to
  setup.py.

  On Jul 10, 2:55 pm, Christian Hammond chip...@chipx86.com wrote:
   I've never played with the Bitnami stack, but in theory if you use an
   easy_install that's part of their stack, it should work. I don't know if
   they have one or not, though.

   You'll want to make sure you only have one Python instance on that server
   (and it should be the bitnami one probably) or you'll start to hit
  problems
   like this.

   Christian

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

   On Fri, Jul 10, 2009 at 2:40 PM, wezyde wes.bill...@gmail.com wrote:

Oh maybe that's the problem, did easy_install ReviewBoard before I had
bitnami installed.

Is there a better way?

On Jul 10, 2:20 pm, Christian Hammond chip...@chipx86.com wrote:
 How did you install Review Board itself? It sounds like it didn't end
  up
in
 bitnami's Python path.

 Christian

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

 On Fri, Jul 10, 2009 at 1:40 PM, wezyde wes.bill...@gmail.com
  wrote:

  I'm trying to install reviewboard on a djangostack from Bitnami.
  Currently, I'm getting the Review Board is taking a nap page.

  I did a rb-site install ... to apache2/htdocs/review.  All the
  files
  are present there now and I have modified httpd.conf to Include
  apache-
  modpython.conf.

  Here is my current configuration...

  VirtualHost *:8089
         ServerName firmwarebackup
         DocumentRoot C:/Program Files/BitNami
DjangoStack/apache2/htdocs/
  review/htdocs

         # Error handlers
         ErrorDocument 500 /errordocs/500.html

         # Serve django pages
         Location /
                 PythonPath ['C:/Program Files/BitNami
  DjangoStack/apache2/htdocs/
  review/conf'] + sys.path
                 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
                 SetEnv PYTHON_EGG_CACHE C:/Program Files/BitNami
  DjangoStack/
  apache2/htdocs/review/tmp/egg_cache
                 SetHandler mod_python
                 PythonHandler django.core.handlers.modpython
                 PythonAutoReload Off
                 PythonDebug Off
                 # Used to run multiple mod_python sites in the same
apache
                 PythonInterpreter reviewboard_review
         /Location

         # Serve static media without running it through mod_python
         # (overrides the above)
         Location /media
                 SetHandler None
         /Location
         Location /errordocs
                 SetHandler None
         /Location

         Directory C:/Program Files/BitNami
  DjangoStack/apache2/htdocs/
  review/htdocs
                 AllowOverride All
         /Directory

         # Alias static media requests to filesystem
         Alias /media C:/Program Files/BitNami
DjangoStack/apache2/htdocs/
  review/htdocs/media
         Alias /errordocs C:/Program Files/BitNami
  DjangoStack/apache2/htdocs/
  review/htdocs/errordocs
  /VirtualHost

  And this is my current error.log...

  [Fri Jul 10