3332: RBTools upload diff 500 server error

kan***@gmai***** (Google Code) (Is this you? Claim this profile.)
May 9, 2014
What version are you running?
rb1.7.25
rbtools 0.6

What's the URL of the page containing the problem?
cmd page


What steps will reproduce the problem?
1.rbt post


What is the expected output? What do you see instead?
>>> Checking for a ClearCase repository...
>>> Running: cleartool pwv -short
>>> Running: diff --version
>>> Running: cleartool lsview -full -properties -cview
>>> Running: cleartool describe -short vob:.
>>> Running: cleartool pwv -root
>>> repository info: Path: M:\zucm_yg_dev1.0.0_3\zucm, Base path: M:\zucm_yg_dev1.0.0_3\zucm, Supports changesets: False
>>> Making HTTP GET request to http://cnsz021775/reviews/api/
>>> Making HTTP GET request to http://cnsz021775/reviews/api/info/
>>> Running: cleartool lscheckout -all -cview -me -fmt %En\t%PVn\t%Vn\n
>>> Running: diff -uN M:\zucm_yg_dev1.0.0_3\zucm\dml\100k\yg.txt@@\main\zucm_yg_dev1.0.0\2 M:\zucm_yg_dev1.0.0_3\zucm\dml\100k\
>>> Command exited with rc 1: ['diff', '-uN', 'M:\\zucm_yg_dev1.0.0_3\\zucm\\dml\\100k\\yg.txt@@\\main\\zucm_yg_dev1.0.0\\2', '
--- M:\zucm_yg_dev1.0.0_3\zucm\dml\100k\yg.txt@@\main\zucm_yg_dev1.0.0\2        2009-11-07 16:20:45.000000000 +0800
+++ M:\zucm_yg_dev1.0.0_3\zucm\dml\100k\yg.txt  2014-05-09 15:33:20.000000000 +0800
@@ -5,4 +5,6 @@
 胡大姐,你是我的妻落霍。
 、
 刘大哥,你是我的夫落霍、
-胡大姐,你是我的妻落霍。
\ No newline at end of file
+胡大姐,你是我的妻落霍。
+
+wode ges
\ No newline at end of file
---
>>> Running: cleartool describe -fmt %On M:\zucm_yg_dev1.0.0_3\zucm\dml\100k\yg.txt@@\main\zucm_yg_dev1.0.0\2
>>> Running: cleartool describe -fmt %On M:\zucm_yg_dev1.0.0_3\zucm\dml\100k\yg.txt
>>> Making HTTP GET request to http://cnsz021775/reviews/api/review-requests/
>>> Making HTTP POST request to http://cnsz021775/reviews/api/review-requests/
>>> Making HTTP GET request to http://cnsz021775/reviews/api/review-requests/62/diffs/
>>> Making HTTP POST request to http://cnsz021775/reviews/api/review-requests/62/diffs/
>>> Got HTTP error: 500: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>500 - Internal Server Error | Review Board</title>
 </head>
 <body>
  <h1>Something broke! (Error 500)</h1>
  <p>
   It appears something broke when you tried to go to here. This is either
   a bug in Review Board or a server configuration error. Please report
   this to your administrator.
  </p>
 </body>
</title>

Traceback (most recent call last):
  File "C:\Python27\Scripts\rbt-script.py", line 8, in <module>
    load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
  File "C:\Python27\lib\site-packages\rbtools-0.6-py2.7.egg\rbtools\commands\main.py", line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "C:\Python27\lib\site-packages\rbtools-0.6-py2.7.egg\rbtools\commands\__init__.py", line 422, in run_from_argv
    exit_code = self.main(*args) or 0
  File "C:\Python27\lib\site-packages\rbtools-0.6-py2.7.egg\rbtools\commands\post.py", line 769, in main
    submit_as=self.options.submit_as)
  File "C:\Python27\lib\site-packages\rbtools-0.6-py2.7.egg\rbtools\commands\post.py", line 545, in post_request
    raise CommandError('\n'.join(error_msg))
rbtools.commands.CommandError: Error uploading diff


HTTP 500

Your review request still exists, but the diff is not attached.



------------------------
this the server log said:
None - fuwei007 - /reviews/api/review-requests/62/diffs/ - Internal Server Error: /reviews/api/review-requests/62/diffs/
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django-1.4.12-py2.7.egg\django\core\handlers\base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "C:\Python27\lib\site-packages\django-1.4.12-py2.7.egg\django\views\decorators\cache.py", line 89, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\django-1.4.12-py2.7.egg\django\views\decorators\vary.py", line 19, in inner_func
    response = func(*args, **kwargs)
  File "C:\Python27\lib\site-packages\djblets-0.7.29-py2.7.egg\djblets\webapi\resources.py", line 482, in __call__
    result = view(request, api_format=api_format, *args, **kwargs)
  File "C:\Python27\lib\site-packages\djblets-0.7.29-py2.7.egg\djblets\webapi\resources.py", line 692, in post
    return self.create(*args, **kwargs)
  File "C:\Python27\lib\site-packages\djblets-0.7.29-py2.7.egg\djblets\webapi\decorators.py", line 113, in _call
    return view_func(*args, **kwargs)
  File "C:\Python27\lib\site-packages\djblets-0.7.29-py2.7.egg\djblets\webapi\decorators.py", line 134, in _checklogin
    return view_func(*args, **kwargs)
  File "C:\Python27\lib\site-packages\reviewboard-1.7.25-py2.7.egg\reviewboard\webapi\decorators.py", line 127, in _check
    return view_func(*args, **kwargs)
  File "C:\Python27\lib\site-packages\djblets-0.7.29-py2.7.egg\djblets\webapi\decorators.py", line 113, in _call
    return view_func(*args, **kwargs)
  File "C:\Python27\lib\site-packages\djblets-0.7.29-py2.7.egg\djblets\webapi\decorators.py", line 113, in _call
    return view_func(*args, **kwargs)
  File "C:\Python27\lib\site-packages\djblets-0.7.29-py2.7.egg\djblets\webapi\decorators.py", line 283, in _validate
    return view_func(*args, **new_kwargs)
  File "C:\Python27\lib\site-packages\reviewboard-1.7.25-py2.7.egg\reviewboard\webapi\resources.py", line 2107, in create
    request=request)
  File "C:\Python27\lib\site-packages\reviewboard-1.7.25-py2.7.egg\reviewboard\reviews\forms.py", line 288, in __init__
    data, *args, **kwargs)
  File "C:\Python27\lib\site-packages\reviewboard-1.7.25-py2.7.egg\reviewboard\diffviewer\forms.py", line 39, in __init__
    if self.repository.get_scmtool().get_diffs_use_absolute_paths():
  File "C:\Python27\lib\site-packages\reviewboard-1.7.25-py2.7.egg\reviewboard\scmtools\models.py", line 143, in get_scmtool
    return cls(self)
  File "C:\Python27\lib\site-packages\reviewboard-1.7.25-py2.7.egg\reviewboard\scmtools\clearcase.py", line 62, in __init__
    self.viewtype = self._get_view_type(self.repopath)
  File "C:\Python27\lib\site-packages\reviewboard-1.7.25-py2.7.egg\reviewboard\scmtools\clearcase.py", line 165, in _get_view_type
    raise SCMError(error)
SCMError: Internal error: Data integrity check failed on "C:\Program Files\IBM\RationalSDLC\ClearCase\var\cache\CCshmemV3".
cleartool: Error: Cannot get view info for current view: not a ClearCase object.


What operating system are you using? What browser?
chrome
client windows7
server windows 2003&ubuntu1204


Please provide any additional information below.
david
#1 david
It looks like this is more likely a misconfiguration of the repository on the server side. Has this ever worked?

Note also that we do not support running the server on Windows.
  • +SetupIssue