It should be checking these permissions on startup. Maybe that’s happening
after it’s trying to install the extension. I’ll see what we can do about
that.

Glad it’s working!

Christian


On Tue, Mar 20, 2018 at 05:50 <jamie.grue...@biospatial.io> wrote:

> Thanks for the quick reply!
>
> From above, I did confirm that the ALLOWED_HOSTS matches the FQDN we're
> using to load the site.
>
> Next, I changed permissions on the directory you referenced:
> sudo chown -R apache /var/www/reviewboard.ncbp.org/htdocs/static/ext/
>
> And I set DEBUG = False and restarted apache. Review Board works!
> If I change the permissions such that apache can't read the /var/www/
> reviewboard.ncbp.org/htdocs/static/ext directory or its contents I get
> the 500 error again.
>
> Looks like an opportunity to update the documentation. :)
>
> Lastly, I didn't touch SELinux at all, aside from doing the recommended
> changes in the documentation. It is set to enforcing and that was not
> changed at any point.
>
> Thanks for the help,
>
> --Jamie
>
> On Tuesday, March 20, 2018 at 6:37:29 AM UTC-4, Christian Hammond wrote:
>
>> Sorry, wasn't thinking. Review Board 3.0 auto-enables the RBIntegrations
>> extension, and its media installation is what's failing. Apache is trying
>> to copy data from the extension into $sitedir/htdocs/static/ext/, and
>> that's failing. This might be a simple permissions/ownership issue (this
>> directory needs to be writable by Apache) or it might be due to SELinux.
>> The reason that setting DEBUG=True fixed this is because we don't install
>> media in this case in the same way.
>>
>> Can you see what the ownership of that directory is, and whether SELinux
>> is enabled? Can you temporarily turn off SELinux and see what happens?
>>
>> Christian
>>
> On Tue, Mar 20, 2018 at 3:25 AM, Christian Hammond <chri...@beanbaginc.com
>> > wrote:
>>
> Hi Jamie,
>>>
>>> I believe I just found the cause of the error, and unfortunately it's
>>> not making the release that you'll see an announcement for tomorrow (er,
>>> later today, at this point). However, it's possible this is
>>> extension-related. Do you have any extensions enabled?
>>>
>>> Can you also open the conf/settings_local.py file and see what
>>> ALLLOWED_HOSTS says? Does this match the domain that you're using to access
>>> the service?
>>>
>>> Christian
>>>
>>
>>> On Mon, Mar 19, 2018 at 2:29 PM, <jamie....@biospatial.io> wrote:
>>>
>>>> I just built an instance of Review Board in a newly built instance of
>>>> RHEL 7 in an AWS EC2 instance and hit this exact issue. Would one of you
>>>> folks be kind enough to provide enough detail for me to fix it? I can't
>>>> tell from Marcin's post what it was that they did to work around the
>>>> problem.
>>>>
>>>> Thanks,
>>>>
>>>> --Jamie
>>>>
>>>> On Wednesday, February 21, 2018 at 6:30:50 PM UTC-5, Christian Hammond
>>>> wrote:
>>>>>
>>>>> Hi Marcin,
>>>>>
>>>>> I swore I responded to this two days ago.. Apparently not though.
>>>>>
>>>>> When you say you added a temporary domain in the config, can you show
>>>>> me what you had and what you added? I'm confused about how this would
>>>>> impact Review Board's logging.
>>>>>
>>>>> Christian
>>>>>
>>>>> On Tue, Feb 20, 2018 at 1:32 AM, Marcin Ciarka <marcinc...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Okay, after an hour I have it working. I added another (temporary)
>>>>>> domain in the config (generated for apache).
>>>>>>
>>>>>>
>>>>>> W dniu wtorek, 20 lutego 2018 09:19:52 UTC+1 użytkownik Marcin Ciarka
>>>>>> napisał:
>>>>>>>
>>>>>>> log from apache:
>>>>>>> [notice] Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15
>>>>>>> OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.14 configured -- resuming
>>>>>>> normal operations
>>>>>>>
>>>>>>>
>>>>>>> W dniu wtorek, 20 lutego 2018 08:59:48 UTC+1 użytkownik Marcin
>>>>>>> Ciarka napisał:
>>>>>>>>
>>>>>>>> rb-site --version gives this:
>>>>>>>>
>>>>>>>> [root@machine]# rb-site --version
>>>>>>>>> rb-site 3.0.3
>>>>>>>>> Python 2.7.14 (default, Feb 19 2018, 15:53:03)
>>>>>>>>> [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)]
>>>>>>>>> Installed to
>>>>>>>>> /opt/python/2.7.14/lib/python2.7/site-packages/ReviewBoard-3.0.3-py2.7.egg/reviewboard
>>>>>>>>
>>>>>>>>
>>>>>>>> W dniu wtorek, 20 lutego 2018 03:17:40 UTC+1 użytkownik Christian
>>>>>>>> Hammond napisał:
>>>>>>>>>
>>>>>>>>> Hi Marcin,
>>>>>>>>>
>>>>>>>>> This looks like a very old bug. What version of Review Board do
>>>>>>>>> you have installed?
>>>>>>>>>
>>>>>>>>> Christian
>>>>>>>>>
>>>>>>>>> On Mon, Feb 19, 2018 at 09:14 Marcin Ciarka <marcinc...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> CentOS 6.9
>>>>>>>>>>
>>>>>>>>>> error_log contains only this:
>>>>>>>>>>
>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error] Traceback (most recent call
>>>>>>>>>>> last):
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error]   File
>>>>>>>>>>> "/opt/python/2.7.14/lib/python2.7/logging/__init__.py", line 861, 
>>>>>>>>>>> in emit
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error]     msg = self.format(record)
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error]   File
>>>>>>>>>>> "/opt/python/2.7.14/lib/python2.7/logging/__init__.py", line 734, 
>>>>>>>>>>> in format
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error]     return fmt.format(record)
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error]   File
>>>>>>>>>>> "/opt/python/2.7.14/lib/python2.7/logging/__init__.py", line 465, 
>>>>>>>>>>> in format
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error]     record.message =
>>>>>>>>>>> record.getMessage()
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error]   File
>>>>>>>>>>> "/opt/python/2.7.14/lib/python2.7/logging/__init__.py", line 329, in
>>>>>>>>>>> getMessage
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error]     msg = msg % self.args
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error] TypeError: not enough
>>>>>>>>>>> arguments for format string
>>>>>>>>>>> [Mon Feb 19 16:09:03 2018] [error] Logged from file manager.py,
>>>>>>>>>>> line 1161
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> 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.
>>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> --
>>>>>>>>> Christian Hammond
>>>>>>>>> President/CEO of Beanbag
>>>>>>>>> Makers of Review Board
>>>>>>>>>
>>>>>>>> --
>>>>>> 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.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Christian Hammond
>>>>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>>>>> Makers of Review Board <https://www.reviewboard.org/>
>>>>>
>>>> --
>>>> 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.
>>>>
>>>
>>>
>>>
>>> --
>>> Christian Hammond
>>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>>> Makers of Review Board <https://www.reviewboard.org/>
>>>
>>
>>
>>
>> --
>> Christian Hammond
>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>> Makers of Review Board <https://www.reviewboard.org/>
>>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- 
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

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

Reply via email to