Content
You are here:
documents/documents.css isn't precompiled
Added by Luis L over 10 years ago
Hi,
I have installed OpenProject at Centos following the guide and everything was working fine at the very beginning. After i installed the Documents plugin, when I click on the [Activity] on the left nav bar, it will show a 500 error page to me. Below is the error message i found at the end of the error log. Is there any idea how to resolve it? Thank you!!
ActionView::Template::Error (documents/documents.css isn't precompiled): 30: 31: ++#%> 32: 33: <%= stylesheet_link_tag 'documents/documents.css' %> lib/redmine/hook.rb:127:in `block in render_on' lib/redmine/hook.rb:73:in `block (2 levels) in call_hook' lib/redmine/hook.rb:73:in `each' lib/redmine/hook.rb:73:in `block in call_hook' lib/redmine/hook.rb:70:in `tap' lib/redmine/hook.rb:70:in `call_hook' lib/redmine/hook.rb:174:in `call_hook' app/views/activities/index.html.erb:30:in `_app_views_activities_index_html_erb___4366668785892016613_72415860'
Replies (14)
Hi Luis,
after installation of OpenProject Documents have you run
bundle exec rake assets:precompile
again?Kind regards,
Hagen
I have tried to run it again. However, same error. Any idea? Thank you!!!!
Hi Luis,
if you bundled everything and ran asset pre-compilation, then, unfortunately, I have no other idea. :-(
Kind regards,
Hagen
In [Gemfile.plugins], I have below two lines in the plugin file. Is there anything i missed? Or anywhere i can check? Thank you!
Hello Luis,
as far as I can see you did everything according to the documentation. So, at the moment I have no answer.
Kind regards,
Hagen
Yes, I have follow the instruction but still…
under /openproject/public/assets/documents/, I can see the [documents.css] there, how come the error log said documents/documents.css isn’t precompiled?
inside [documents.css], it has only one line
Hello Luis,
we recently changed some stuff related to asset precompiling so if you have a wrong combination of OpenProject core, OpenProject-Documents plugin and OpenProject-Plugins plugin it will not work.
Try one of the following combinations:
OR
Best
Ratzi
Hello Ratzi,
I have tried to turn the branch from stable to dev in [Gemfile.plugins], run bundle update and bundle exec rake assets:precompile. However, same error log.
Did i missed the OpenProject core?? where should i put it?? Thank you!
Hello Luis,
you can use a specific version of the OpenProject core by checking out the corresponding git branch.
Go to your OpenProject root folder and run the following commands, assuming you used git for the inital setup and you wanna use the ‘dev’ branch:
Best
Ratzi
Hello Ratzi,
I have run those commands but same error log. Any idea? Thank you for your time!!
Hmm, no idea without testing it by my self, I will do this but not now and keep you up to date.
Btw. everything should work if you use the stable branch of the Core, Documents-Plugin and Plugins-Plugin.
Best
Ratzi
Same error in the [production.log],
How do i know if i got the latest update of stable version of OpenProject core? just run the below command and run bundle install?
one stupid question, is there any way to skip/ignore the documents activities under [Activity] by comment out some codes in order to get rid of the error? Thank you!
it works after restarted Apache service (with the stable steps)!!! thanks Tobias!!!
I had this same error, but in my case documents was not getting precompiled in the production environment. I tracked it down to a missing initializer in the documents engine.
I added this code to lib/open_project/documents/engine.rb
and it fixed the problem.