API Error 103 during ReviewBot 1.0 setup

55 views
Skip to first unread message

Hemapriya M

unread,
Apr 14, 2018, 5:43:41 AM4/14/18
to Review Board Community
I'm trying to setup ReviewBot 1.0 in ReviewBoard 3.0.3. It says "Connected to broker" when the worker nodes are not started. But when I start the worker nodes, it throws the following error.

[2018-04-14 05:35:24,736: ERROR/MainProcess] ???[???]: Could not reach RB server: You are not logged in (HTTP 401, API Error 103)
Traceback (most recent call last):
  File "/opt/software/lib/python2.7/site-packages/reviewbot_worker-1.0-py2.7.egg/reviewbot/tasks.py", line 280, in update_tools_list
    api_root = api_client.get_root()
  File "/opt/software/lib/python2.7/site-packages/RBTools-0.7.11-py2.7.egg/rbtools/api/client.py", line 21, in get_root
    return self._transport.get_root(*args, **kwargs)
  File "/opt/software/lib/python2.7/site-packages/RBTools-0.7.11-py2.7.egg/rbtools/api/transport/sync.py", line 47, in get_root
    return self._execute_request(HttpRequest(self.server.url))
  File "/opt/software/lib/python2.7/site-packages/RBTools-0.7.11-py2.7.egg/rbtools/api/transport/sync.py", line 84, in _execute_request
    rsp = self.server.make_request(request)
  File "/opt/software/lib/python2.7/site-packages/RBTools-0.7.11-py2.7.egg/rbtools/api/request.py", line 587, in make_request
    self.process_error(e.code, e.read())
  File "/opt/software/lib/python2.7/site-packages/RBTools-0.7.11-py2.7.egg/rbtools/api/request.py", line 560, in process_error
    rsp['err']['msg'])
AuthorizationError: You are not logged in (HTTP 401, API Error 103)

Who do I get this error?

Hemapriya M

unread,
Apr 17, 2018, 11:23:18 PM4/17/18
to Review Board Community
Ok. I have this issue when I use RBTools 0.7.11 with ReviewBot 1.0. Hence, downgraded RBTools to 0.7.10 and it works without this issue.

Joshua Cannon

unread,
Jul 17, 2018, 5:49:19 PM7/17/18
to Review Board Community
I'm seeing a similar error and have yet to find out how to fix it.

My stack trace is:
[2018-07-17 17:47:28,319: ERROR/MainProcess] ???[???]: Problem POSTing tools: You are not logged in (HTTP 401, API Error 103)
Traceback (most recent call last):
  File "/home/user/envs/worker/lib/python2.7/site-packages/reviewbot/tasks.py", line 289, in update_tools_list
    api_tools.create(hostname=hostname, tools=json.dumps(tools))
  File "/home/user/envs/worker/lib/python2.7/site-packages/rbtools/api/resource.py", line 181, in <lambda>
    meth(resource, **kwargs)))
  File "/home/user/envs/worker/lib/python2.7/site-packages/rbtools/api/decorators.py", line 27, in request_method
    *args, **kwargs)
  File "/home/user/envs/worker/lib/python2.7/site-packages/rbtools/api/transport/sync.py", line 77, in execute_request_method
    return self._execute_request(request)
  File "/home/user/envs/worker/lib/python2.7/site-packages/rbtools/api/transport/sync.py", line 86, in _execute_request
    rsp = self.server.make_request(request)
  File "/home/user/envs/worker/lib/python2.7/site-packages/rbtools/api/request.py", line 603, in make_request
    self.process_error(e.code, e.read())
  File "/home/user/envs/worker/lib/python2.7/site-packages/rbtools/api/request.py", line 577, in process_error
    rsp['err']['msg'])
AuthorizationError: You are not logged in (HTTP 401, API Error 103)

I'm running the master reviewboard server (devserver.py) with reviewbot-extension installed. Running master reviewboard-worker.

Connection to broker happens just fine, but when I try to refresh the tools, it errors.

David Trowbridge

unread,
Jul 17, 2018, 6:19:53 PM7/17/18
to revie...@googlegroups.com
Hi,

Some changes in Review Board 3.0.8 introduced this problem. It will be fixed soon in Review Bot 1.0.1

-David

--
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 reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joshua Cannon

unread,
Jul 17, 2018, 7:27:55 PM7/17/18
to revie...@googlegroups.com
Does ReviewBot master have the fix?

To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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 a topic in the Google Groups "Review Board Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reviewboard/44IzPrvWVLU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reviewboard+unsubscribe@googlegroups.com.

David Trowbridge

unread,
Jul 17, 2018, 7:33:46 PM7/17/18
to revie...@googlegroups.com
Not yet, it’s still in the review process.

-David 

To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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 a topic in the Google Groups "Review Board Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reviewboard/44IzPrvWVLU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reviewboard...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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 reviewboard...@googlegroups.com.

Joshua Cannon

unread,
Jul 18, 2018, 10:00:57 AM7/18/18
to Review Board Community
I just applied the patch (https://reviews.reviewboard.org/r/10080/diff/3/#index_header) and it worked like a charm!
Reply all
Reply to author
Forward
0 new messages