Hi,
rb-site upgrade manages the static media for Review Board itself, and
extensions missing static media files will have them copied from the
extension.

Advertising

Try erasing the contents of $sitedir/static and then do:
rb-site upgrade $sitedir
rb-site manage $sitedir install-extension-media -- --force
Christian
On Tuesday, September 6, 2016, harish varadarajan <
harish.varadara...@gmail.com> wrote:
> Hi David,
>
> In our environment, we had moved the reviewboard instance from one server
> to another, while as well upgrading versions from 2.0.15 to 2.5.6.1
> Post setting up sql, apache, we had run rb-site install and moved over the
> DB from older host to newer one, post which rb-site upgrade and rb-site
> manage $site collectstatic was run.
>
> Considering the fact that now collectstatic has been run in a production
> environment, and that comment severity is broken, is there a way to fix
> this.
> I believe copying of static contents from older server to newer one should
> never be done and hence what would be the correct way to populate these
> contents.
>
> Thanks.
>
> --
> Harish
>
> On Monday, 5 September 2016 22:26:57 UTC+5:30, David Trowbridge wrote:
>>
>> Why are you running collectstatic? If you're installing from our
>> pre-built packages, all the static media has already been compiled.
>>
>> -David
>>
>> On Mon, Sep 5, 2016 at 8:07 AM harish varadarajan <harish.va...@gmail.com>
>> wrote:
>>
>>> Post installing reviewboard 2.6.6.1 and extension Comment Severity 0.5.1,
>>> when trying to run collectstatic, the following error is seen.
>>> The version of lessc is 2.7.1
>>> File "/usr/lib/python2.7/site-packages/pipeline/compilers/__init__.py",
>>> line 99, in execute_command
>>> raise CompilerError(stderr)
>>> pipeline.exceptions.CompilerError: NameError: variable @STATIC_ROOT is
>>> undefined in
>>> /usr/lib/python2.7/site-packages/reviewboard/static/rb/css/pages/reviews.less
>>> on line 3, column 21:
>>> 2 @import (reference) "../mixins/upload-diff.less";
>>> 3 @import (reference) "@{STATIC_ROOT}djblets/css/mixins/markdown.less";
>>>
>>> I remember reading a post that lessc versions 2.X is not supported.
>>> If yes, could this be the case of above failure ?
>>> If not, what could cause this behavior. Any inputs on how to proceed
>>> further / fix this, will be helpful.
>>>
>>> Thanks.
>>>
>>> Harish
>>>
>>>
>>> --
>>> 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 "reviewboard" 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.
>>>
>> --
> 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
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','reviewboard%2bunsubscr...@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
"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.