Content
You are here:
500 Internal server error / css isn't precompiled
Added by Nicola Tiling about 10 years ago
The meeting and the global roles don’t work because theirs .css aren’t “precompiled”.
Started GET "/users/3/edit" for 192.168.4.94 at 2014-07-22 00:15:48 +0200 Processing by UsersController#edit as HTML Parameters: {"id"=>"3"} Rendered layouts/_action_menu_base.html.erb (0.1ms) Rendered layouts/_action_menu_specific.html.erb (0.4ms) Rendered users/_impaired_settings.html.erb (2.4ms) Rendered users/_mail_notifications.html.erb (7.9ms) Rendered users/_preferences.html.erb (6.9ms) Rendered users/_form.html.erb (33.0ms) Rendered users/_general.html.erb (37.2ms) Rendered users/_memberships.html.erb (13.4ms) Rendered /usr/local/lib/ruby/gems/2.1/bundler/gems/openproject-global_roles-2afc52cdc755/app/views/shared/_global_roles_header.html.erb (26.2ms) Rendered /usr/local/lib/ruby/gems/2.1/bundler/gems/openproject-global_roles-2afc52cdc755/app/views/users/_global_roles.html.erb (26.5ms) Rendered common/_tabs.html.erb (79.6ms) Rendered users/edit.html.erb within layouts/admin (93.3ms) Completed 500 Internal Server Error in 105.4ms ActionView::Template::Error (global_roles/global_roles.css isn't precompiled): 19: ++#%> 20: 21: <% content_for :header_tags do %> 22: <%= stylesheet_link_tag 'global_roles/global_roles.css' %> 23: <%= javascript_include_tag 'global_roles/global_roles.js' %> 24: <% end %> app/views/common/_tabs.html.erb:61:in `block in _app_views_common__tabs_html_erb__1018024196552026748_17319501080' app/views/common/_tabs.html.erb:60:in `each' app/views/common/_tabs.html.erb:60:in `_app_views_common__tabs_html_erb__1018024196552026748_17319501080' app/helpers/application_helper.rb:327:in `render_tabs' app/views/users/edit.html.erb:43:in `_app_views_users_edit_html_erb__561233729422719047_17372316600' ############################################################ Processing by MeetingsController#index as HTML Parameters: {"project_id"=>"test"} Rendered /usr/local/lib/ruby/gems/2.1/bundler/gems/openproject-meeting-fed782344428/app/views/shared/_meeting_header.html.erb (32.8ms) Rendered /usr/local/lib/ruby/gems/2.1/bundler/gems/openproject-meeting-fed782344428/app/views/meetings/index.html.erb within layouts/base (60.3ms) Completed 500 Internal Server Error in 226.5ms ActionView::Template::Error (meeting/meeting.css isn't precompiled): 20: ++#%> 21: 22: <% content_for :header_tags do %> 23: <%= stylesheet_link_tag 'meeting/meeting.css' %> 24: <% end %>
Replies (7)
Hello Nicola,
if you add or update a plugin you should always run the database migrations and you have to precompile the assets again.
Than restart the server (Apache or nginx) and everything should work.
Best
Ratzi
Hi
Thanks a lot for the answer.
The precompile process is aborted bcause “jquery.ui.all” isn’t found :-(
How can I install this?
Hello again,
which version of OpenProject you use?
Best
Ratzi
Core Version
OpenProject 3.0.8 (PostgreSQL)
on FreeBSD 9.3
But there are a few “jquery.ui.all.” files underneath openproject/public/assets
It seems there is a problem with the path where the precompile process looks for its files.
If I make a link
query.ui.all is found an the next file is missing:
In “app/assets/javascripts/application.js.erb” two folders are referenced to find files:
lib/assets/javascripts and vendor/assets/javascripts,
But also on the opf github source they are nearly empty..
What to do?
I’ve copied all *.js files from openproject/public/assets/ to openproject/app/assets/javascript/ and the jquery.ui.all.css from openproject/public/assets/ to openproject/app/assets/stylesheets. Then it works.
But what is the reason the files are not found? should they be in “openproject/app/assets/…” or is the path “openproject/public/assets” not in the precompilation configuration?