ReviewBoard + httpd fails to start with

27 views
Skip to first unread message

harish.va...@gmail.com

unread,
Jun 27, 2021, 7:36:01 AM6/27/21
to Review Board Community
Hi All,

We had a successful installation of RB 4.0.2 and as well the site upgrade done.
But now when we try to start the httpd, we end up getting the below error.
Any inputs on how to address it.


Jun 27 04:24:50 reviewboard rb-site[27123]: load_entry_point('ReviewBoard==4.0.2', 'console_scripts', 'rb-site')()
Jun 27 04:24:50 reviewboard rb-site[27123]: File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/rbsite.py", line 2732, in main
Jun 27 04:24:50 reviewboard rb-site[27123]: command.run(site, options)
Jun 27 04:24:50 reviewboard rb-site[27123]: File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/rbsite.py", line 2254, in run
Jun 27 04:24:50 reviewboard rb-site[27123]: leading_newlines=False)
Jun 27 04:24:50 reviewboard rb-site[27123]: File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/utils/console.py", line 297, in header
Jun 27 04:24:50 reviewboard rb-site[27123]: wrapper=self.header_sep_wrapper)
Jun 27 04:24:50 reviewboard rb-site[27123]: File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/utils/console.py", line 203, in print
Jun 27 04:24:50 reviewboard rb-site[27123]: wrapper=wrapper)))
Jun 27 04:24:50 reviewboard rb-site[27123]: UnicodeEncodeError: 'ascii' codec can't encode characters in position 8-86: ordinal not in range(128)

Adding the below to /usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/cmdline/utils/console.py, enables the httpd to be brought up, but none of the links such as "All Review Requests", "New Review Request" or diff work as expected.

reload(sys)
sys.setdefaultencoding('utf-8')

harish.va...@gmail.com

unread,
Jun 28, 2021, 7:25:18 AM6/28/21
to Review Board Community
Hi All,

The issue has been addressed.

Thanks.

Eric Berquist

unread,
Jun 29, 2021, 4:30:35 PM6/29/21
to Review Board Community
How was this resolved? I'm encountering the same problems with 4.0.3 and a fresh install.

Christian Hammond

unread,
Jun 29, 2021, 10:01:58 PM6/29/21
to revie...@googlegroups.com
Hi Eric,

I don't think the fix was on our end. Sounds like they used a workaround.

Can you tell me what OS/distro you're on, what version of Python you're using, what terminal you're using, and, if this is a Linux terminal, the output of:

echo $TERM
echo $LANG

Along with that, can you run the version of python used to install Review Board and run:

    import sys
    print(sys.getdefaultencoding())

Thanks,

Christian

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/f3f41b30-dd62-440b-8aa2-cb442b04a31cn%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Reply all
Reply to author
Forward
0 new messages