2537: ClearCase- The file was not found in the repository

dh9****@gmai***** (Google Code) (Is this you? Claim this profile.)
Aug. 13, 2013
What version are you running?
- RBTools 0.4.1

What's the URL of the page containing the problem?
- NO

What steps will reproduce the problem?
1. I am using the repository as ClearCase. I set the repository 'path' as 'M:\Server_view3\testtestvob' in admin setting UI and this is the vob name on the server. 

2. There is no problem, if I test 'post-review' on 'server'(That is, if the path is the same with repository path). The result is as follows:
==============================================
M:\Server_view3\testtestvob>post-review.exe -o -d --server="http://reviewboard.com" --username="username" --password="password"
>>> RBTools 0.4.1
>>> Home = C:\Users\myID\AppData\Roaming
>>> HTTP GETting api/
>>> HTTP GETting http://reviewboard.com/api/info/
>>> Using the new web API
>>> HTTP GETting http://reviewboard.com/api/repositories/
>>> HTTP GETting http://reviewboard.com/api/repositories/1/
>>> HTTP GETting http://reviewboard.com/api/repositories/1/info/
>>> Attempting to create review request on M:\Server_view3\testtestvob for None
>>> HTTP POSTing to http://reviewboard.com/api/review-requests/: {'repository': u'M:\\Server_view3\\testtestvob'}
>>> Review request created
>>> Uploading diff, size: 871
>>> HTTP POSTing to http://reviewboard.com/api/review-requests/13/diffs/: {'basedir': u'M:\\Server_view3\\testtestvob'}
Review request #13 posted.

http://reviewboard.com/r/13/
==============================================

3. But, If I test post-review.exe on other PC(Client PC), The error happens, so the diff file isn't updated on reviewboard server.
=======================================
M:\Client_view2\testtestvob>post-review.exe -o -d --server="http://reviewboard.com"
>>> RBTools 0.4.1
>>> Home = C:\Users\MyID\AppData\Roaming
>>> HTTP GETting api/
>>> HTTP GETting http://reviewboard.com/api/info/
>>> Using the new web API
>>> HTTP GETting http://reviewboard.com/api/repositories/
>>> HTTP GETting http://reviewboard.com/api/repositories/1/
>>> HTTP GETting http://reviewboard.com/api/repositories/1/info/
>>> Attempting to create review request on M:\Server_view3\testtestvob for None
>>> HTTP POSTing to http://reviewboard.com/api/review-requests/: {'repository': u'M:\\Server_view3\\testtestvob'}
>>> Review request created
>>> Uploading diff, size: 873
>>> HTTP POSTing to http://reviewboard.com/api/review-requests/11/diffs/: {'basedir': u'M:\\Server_view3\\testtestvob'}
>>> Got API Error 207 (HTTP code 400): The file was not found in the repository
>>> Error data: {u'stat': u'fail', u'file': u'M:/Server_view3/testtestvob/test1/GridCtrlLog.cpp@@/main/1', u'err': {u'msg': u'The file was not found in the repository', u'code': 207}, u'revision': u'\\main\\1'}

Error uploading diff

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


What is the expected output? What do you see instead?
- The diff file should be attached normally. but, the diff file is not attached. 

What operating system are you using? What browser?
- Server : Win7,  Client : Win7

Please provide any additional information below.
- Please, let me know, if you have any question. I'll let you know.
david
#2 david
  • +Component-SCMTools
#3 huid*****@gmai***** (Google Code) (Is this you? Claim this profile.)
I met the same problem. It seems apache process has no permission on clearcase files. If you had resolved this problem, could you tell me the detail of the resolution?
#4 Jan.Ko*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Hi,

  It looks like an Apache problem. Id o not know details of Apache default permissions under windows but you can try two things:
- Run whole Apache with appropriate credentials
- Run only Review Board (if you are using mod_wsgi) with appropriate credentials using  http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess

What you should do is to create dedicated user which can read all necessery VOBs and views (read-only user is perfect choice) and spawn Apache or Review Board as this user.
david
#5 david
  • +SetupIssue
#6 hotpag******@gmai***** (Google Code) (Is this you? Claim this profile.)
It should be a problem of Apache.
you should run Apache on windows system with a right account with full access permissions.

"services" --> "logon" --> "use this account"(don't select "local system account").
and make sure that the account you input have full rights to access Clearcase VOB.