Content
Internall 500 Error on fresh installation
Added by Bartosz Gołek over 10 years ago
Hi.
I was install openproject with instruction from link:
[[https://www.openproject.org/projects/openproject/wiki/Debian_Stable_with_MySQL_in_production]]
I used Ruby 2.1.2 in place of 2.1.0 from instruction.
Now when i try to open OpenProject i got: 500 internal Server Error and in log there is:
Processing by WelcomeController#index as HTML
Rendered welcome/index.html.erb within layouts/base (12839.2ms)
Completed 500 Internal Server Error in 53208.1ms
ActionView::Template::Error (favicon.ico isn’t precompiled):
36:
<meta name="current_menu_item" content="<%= current_menu_item %>
" />
37:
<meta name="accessibility-mode" content="<%= current_user.impaired? %>
" />
38: <%= csrf_meta_tags %>
39: <%= favicon_link_tag ‘favicon.ico’ %>
40: <%= stylesheet_link_tag current_theme.stylesheet_manifest, :media => “all” %>
41: <% if User.current.impaired? && accessibility_css_enabled? %>
42: <%= stylesheet_link_tag ‘accessibility’ %>
lib/open_project/themes/view_helpers.rb:53:in `image_path’
app/views/layouts/base.html.erb:39:in `_app_views_layouts_base_html_erb__3698548972222922984_65646340’
I dont have idea, what to do with this, nad also I cant find any solution in google.
Any ideas?
Replies (7)
I don’t know exactly what’s wrong here, but I can tell you I ran into problems with my plugins installation (using the pkgr method https://www.openproject.org/topics/1044?r=1044) when I tried to use Ruby 2.1.2 and had to go back to 2.1.1. In my case the version called for by the Gemfile needed to match the Ruby version.
Jim
I have the same issue. I start with Ruby 2.1.2, then reverted to 2.1.0 and the problem remains.
Processing by AccountController#login as HTML
Parameters: {“back_url”=>“http://xxxx”}
Rendered account/login.html.erb within layouts/base (2.2ms)
Completed 500 Internal Server Error in 6.1ms
ActionView::Template::Error (favicon.ico isn’t precompiled):
36:
<meta name="current_menu_item" content="<%= current_menu_item %>
" />
37:
<meta name="accessibility-mode" content="<%= current_user.impaired? %>
" />
38: <%= csrf_meta_tags %>
39: <%= favicon_link_tag ‘favicon.ico’ %>
40: <%= stylesheet_link_tag current_theme.stylesheet_manifest, :media => “all” %>
41: <% if User.current.impaired? && accessibility_css_enabled? %>
42: <%= stylesheet_link_tag ‘accessibility’ %>
lib/open_project/themes/view_helpers.rb:53:in `image_path’
app/views/layouts/base.html.erb:39:in `_app_views_layouts_base_html_erb__969473055561976221_74383940’
Are you sure you precompiled the assets?
RAILS_ENV=“production” bundle exec rake assets:precompile
You should be able to see favicon.ico in public/assets
That took care of my problem. Thank you!
I was using the Ubuntu 12.04 installation instructions and the step to precompile the assests appears AFTER the step to start the application server and the language didn’t make me think that it was required.
Hi,
I’ve checked, the favicon.ico exists in public/asset folder in openproject installation.
But, when I navigate to domain.com/public/assets/favicon.ico, i get: 404 Page not found.
Then in logs I see:
Any ideas?
Ehh, my fault.
I should navigate to assets/favicon.ico, not public/assets/favicon.ico.
When I navigate to assets/favicon.ico it works.
But when trying to load page, i got error in log:
Same here… was trying to install it last night…
Thanks for answers,
Best, Jernej