I've never seen anything like this before. Can you tell us what 'rbt'
command-line you're running, and additionally add --debug to that and
include the output?

-David


On Fri, Apr 11, 2014 at 1:26 PM, Jamie Penman-Smithson <
jpenman.smith...@gmail.com> wrote:

> Hi all,
>
> I'm having problems using rbt post against ReviewBoard 1.7.24, RBTools 0.6
> with Perforce 2013.3.
>
> ReviewBoard and RBTools have been installed from RPMs on a RHEL 6 box.
>
> $ rbt --version
> RBTools 0.6
>
> When posting a review (whether it's shelved or committed) I get a 500 HTTP
> error and in the Apache error log I'm getting:
>
> [Fri Apr 11 20:12:15 2014] [error] ERROR:root:Exception thrown for user
> jamie.penman at http://reviews/api/review-requests/
> [Fri Apr 11 20:12:15 2014] [error]
> [Fri Apr 11 20:12:15 2014] [error] '1' object is unsubscriptable
> [Fri Apr 11 20:12:15 2014] [error] Traceback (most recent call last):
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111,
> in get_response
> [Fri Apr 11 20:12:15 2014] [error]     response = callback(request,
> *callback_args, **callback_kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/django/views/decorators/cache.py", line
> 89, in _wrapped_view_func
> [Fri Apr 11 20:12:15 2014] [error]     response = view_func(request,
> *args, **kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/django/views/decorators/vary.py", line
> 19, in inner_func
> [Fri Apr 11 20:12:15 2014] [error]     response = func(*args, **kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/djblets/webapi/resources.py", line 482,
> in __call__
> [Fri Apr 11 20:12:15 2014] [error]     result = view(request,
> api_format=api_format, *args, **kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/djblets/webapi/resources.py", line 692,
> in post
> [Fri Apr 11 20:12:15 2014] [error]     return self.create(*args, **kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/reviewboard/webapi/decorators.py", line
> 127, in _check
> [Fri Apr 11 20:12:15 2014] [error]     return view_func(*args, **kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/djblets/webapi/decorators.py", line 113,
> in _call
> [Fri Apr 11 20:12:15 2014] [error]     return view_func(*args, **kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/djblets/webapi/decorators.py", line 134,
> in _checklogin
> [Fri Apr 11 20:12:15 2014] [error]     return view_func(*args, **kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/djblets/webapi/decorators.py", line 113,
> in _call
> [Fri Apr 11 20:12:15 2014] [error]     return view_func(*args, **kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/djblets/webapi/decorators.py", line 113,
> in _call
> [Fri Apr 11 20:12:15 2014] [error]     return view_func(*args, **kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/djblets/webapi/decorators.py", line 283,
> in _validate
> [Fri Apr 11 20:12:15 2014] [error]     return view_func(*args,
> **new_kwargs)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/reviewboard/webapi/resources.py", line
> 7152, in create
> [Fri Apr 11 20:12:15 2014] [error]     changenum, local_site)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/reviewboard/reviews/managers.py", line
> 123, in create
> [Fri Apr 11 20:12:15 2014] [error]
> review_request.update_from_changenum(changenum)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/reviewboard/reviews/models.py", line 409,
> in update_from_changenum
> [Fri Apr 11 20:12:15 2014] [error]     changeset =
> self.repository.get_scmtool().get_changeset(changenum)
> [Fri Apr 11 20:12:15 2014] [error]   File
> "/usr/lib/python2.6/site-packages/reviewboard/scmtools/perforce.py", line
> 314, in get_changeset
> [Fri Apr 11 20:12:15 2014] [error]     return
> self.parse_change_desc(changeset[0], changesetid, allow_empty)
> [Fri Apr 11 20:12:15 2014] [error] TypeError: '1' object is unsubscriptable
> [Fri Apr 11 20:12:15 2014] [error] ERROR:django.request:Internal Server
> Error: /api/review-requests/
>
> This seems to be due to a problem getting the changelist description. I've
> checked that the user I have provided to ReviewBoard for Perforce has read
> access to the repository.
>
> I'm wondering if there is some compatibility issue with Django because I'm
> seeing other warnings in the log file:
>
> ... brokerAddress ->
> ... brokerVersion ->
> ... userName ->
> ... password ->
> ... clientName ->
> ... clientCwd ->
> ... clientHost ->
> ... peerAddress ->
> ... clientAddress ->
> ... serverName ->
> ... monitor ->
> ... serverAddress ->
> ... serverRoot ->
> ... serverDate ->
> ... serverUptime ->
> ... serverVersion ->
> ... ServerID ->
> ... serverServices ->
> ... serverLicense ->
> ... serverLicense-ip ->
> ... caseHandling ->
> ... integEngine ->
> [Fri Apr 11 20:12:00 2014] [error]
> /usr/lib/python2.6/site-packages/django/contrib/auth/__init__.py:26:
> DeprecationWarning: Authentication backends without a
> `supports_inactive_user` attribute are deprecated. Please define it in
> <class 'reviewboard.accounts.backends.LDAPBackend'>.
> [Fri Apr 11 20:12:00 2014] [error]   DeprecationWarning)
> [Fri Apr 11 20:12:00 2014] [error]
> /usr/lib/python2.6/site-packages/django/template/defaulttags.py:1235:
> DeprecationWarning: The syntax for the url template tag is changing. Load
> the `url` tag from the `future` tag library to start using the new behavior.
> [Fri Apr 11 20:12:00 2014] [error]   category=DeprecationWarning)
>
> According to yum we have Django 1.4 which I believe is the supported
> version...?
>
> Has anyone come across this issue before?
>
> Thanks very much,
> Jamie
>
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://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.
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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.

Reply via email to