I am getting this error today too when trying to publish a code review. 

>>> Got API Error 224 (HTTP code 400): fatal: Not a git repository: 'None'

>>> Error data: {u'stat': u'fail', u'err': {u'msg': u"fatal: Not a git 
repository: 'None'\n", u'code': 224}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==1.0.1', 'console_scripts', 'rbt')()
  File 
"/Library/Python/2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/commands/main.py",
 
line 120, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File 
"/Library/Python/2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/commands/__init__.py",
 
line 719, in run_from_argv
    exit_code = self.main(*args) or 0
  File 
"/Library/Python/2.7/site-packages/RBTools-1.0.1-py2.7.egg/rbtools/commands/post.py",
 
line 875, in main
    (msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

fatal: Not a git repository: 'None'
 (HTTP 400, API Error 224)


Nothing has changed in our environment. Could there be an outage? I can't 
click on the admin dashboard page for the repository either, it ends up 
with a "504 Gateway Timeout" or "500 Internal Server Error" error. In the 
server logs, I see:


2019-07-08 17:48:19,206 - ERROR - None - XXXXX - 
/admin/db/scmtools/repository/14/ - djblets.log.middleware - Exception 
thrown for user XXXXX at 
https://cr.impact.georgianpartners.com/admin/db/scmtools/repository/14/

'NoneType' object has no attribute 'plans'
Traceback (most recent call last):
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/core/handlers/base.py",
 
line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/contrib/admin/options.py",
 
line 465, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/utils/decorators.py",
 
line 99, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/views/decorators/cache.py",
 
line 52, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/contrib/admin/sites.py",
 
line 198, in inner
    return view(request, *args, **kwargs)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/utils/decorators.py",
 
line 29, in _wrapper
    return bound_func(*args, **kwargs)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/utils/decorators.py",
 
line 99, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/utils/decorators.py",
 
line 25, in bound_func
    return func(self, *args2, **kwargs2)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/db/transaction.py",
 
line 371, in inner
    return func(*args, **kwargs)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/django/contrib/admin/options.py",
 
line 1270, in change_view
    form = ModelForm(instance=obj)
  File 
"/opt/bitnami/apps/reviewboard/htdocs/reviewboard/scmtools/forms.py", line 
435, in __init__
    self._populate_hosting_service_fields()
  File 
"/opt/bitnami/apps/reviewboard/htdocs/reviewboard/scmtools/forms.py", line 
547, in _populate_hosting_service_fields
    if service.plans:
AttributeError: 'NoneType' object has no attribute 'plans'

Thanks,

Diego


On Thursday, May 24, 2018 at 4:10:19 AM UTC-4, [email protected] wrote:
>
> When I first run command"rbt post --username=JiangLiqun 
> --target-people=admin -d", and input password correct, but I received log 
> like this:
>
> Please log in to the Review Board server at 192.168.1.100:8088.
> Password: 
> ERROR: Unexpected API Error: The username or password was not correct 
> (HTTP 401, API Error 104)
> WangYuntideMacBook-Pro:rbtest wang$ rbt post --username=JiangLiqun 
> --target-people=admin -d
> >>> RBTools 0.7.11
> >>> Python 2.7.10 (default, Oct  6 2017, 22:29:07) 
> [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]
> >>> Running on Darwin-17.5.0-x86_64-i386-64bit
> >>> Home = /Users/wang
> >>> Current directory = /Users/wang/RZSJ/project/rbtest
> >>> Command line: rbt post --username=JiangLiqun --target-people=admin -d
> >>> Running: tf vc help
> >>> Checking for a Git repository...
> >>> Running: git rev-parse --git-dir
> >>> Running: git config core.bare
> >>> Running: git rev-parse --show-toplevel
> >>> Running: git symbolic-ref -q HEAD
> >>> Running: git config --get branch.master.merge
> >>> Running: git config --get branch.master.remote
> >>> Running: git config --get remote.origin.url
> >>> repository info: Path: http://47.93.44.77:3000/WangYunti/rbtest.git, 
> Base path: , Supports changesets: False
> >>> Making HTTP GET request to http://192.168.1.100:8088/api/
>
> Please log in to the Review Board server at 192.168.1.100:8088.
> Password: 
> >>> Running: git rev-parse refs/heads/master
> >>> Running: git merge-base 8baa5f0a627d6178f0b0c8fc59e8a6223acb4cc2 
> origin/master
> >>> Running: git rev-parse dce7de49360ca16c12e84f7c3670c033f731a14d
> >>> Running: git status --porcelain --untracked-files=no 
> --ignore-submodules=dirty
> >>> Running: git rev-parse --git-dir
> >>> Running: git version
> >>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
> --no-color --full-index --ignore-submodules -M --no-ext-diff 
> dce7de49360ca16c12e84f7c3670c033f731a14d..8baa5f0a627d6178f0b0c8fc59e8a6223acb4cc2
> >>> Generated diff size: 1286 bytes
> >>> Making HTTP GET request to 
> http://192.168.1.100:8088/api/validation/diffs/
> >>> Cached response for HTTP GET 
> http://192.168.1.100:8088/api/validation/diffs/ expired and was modified
> >>> Making HTTP POST request to 
> http://192.168.1.100:8088/api/validation/diffs/
> >>> Got API Error 224 (HTTP code 400): fatal: Not a git repository: 'None'
>
> >>> Error data: {u'stat': u'fail', u'err': {u'msg': u"fatal: Not a git 
> repository: 'None'\n", u'code': 224}}
> Traceback (most recent call last):
>   File "/usr/local/bin/rbt", line 9, in <module>
>     load_entry_point('RBTools==0.7.11', 'console_scripts', 'rbt')()
>   File 
> "/Library/Python/2.7/site-packages/RBTools-0.7.11-py2.7.egg/rbtools/commands/main.py",
>  
> line 133, in main
>     command.run_from_argv([RB_MAIN, command_name] + args)
>   File 
> "/Library/Python/2.7/site-packages/RBTools-0.7.11-py2.7.egg/rbtools/commands/__init__.py",
>  
> line 665, in run_from_argv
>     exit_code = self.main(*args) or 0
>   File 
> "/Library/Python/2.7/site-packages/RBTools-0.7.11-py2.7.egg/rbtools/commands/post.py",
>  
> line 821, in main
>     (msg_prefix, e))
> rbtools.commands.CommandError: Error validating diff
>
> fatal: Not a git repository: 'None'
>  (HTTP 400, API Error 224)
>
>
> This is a screenshot of the warehouse configuration:
>
>
> <https://lh3.googleusercontent.com/-XiQ7q3SKzbE/WwZsNzopBWI/AAAAAAAAAsQ/XQDKigzmQRIt--9RWBhXZIOsVR-sPtPwACLcBGAs/s1600/3DA19783-D44C-4EC6-9332-879244FC0C02.png>
>
>
> how to solve this problem.
>
>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/3458860d-6559-4d7f-86d0-9610dad13b5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to