Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Internall 500 Error on fresh installation

Internall 500 Error on fresh installation

Added by Bartosz Gołek almost 11 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)

RE: Internall 500 Error on fresh installation - Added by Deleted user almost 11 years ago

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

RE: Internall 500 Error on fresh installation - Added by Kent Crippen almost 11 years ago

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’

RE: Internall 500 Error on fresh installation - Added by Deleted user almost 11 years ago

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

RE: Internall 500 Error on fresh installation - Added by Kent Crippen almost 11 years ago

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.

RE: Internall 500 Error on fresh installation - Added by Bartosz Gołek almost 11 years ago

Hi,

I’ve checked, the favicon.ico exists in public/asset folder in openproject installation.

bartek@bartek:~$ ls -al /home/openproject/openproject/public/assets | grep favicon
-rw-r--r--  1 openproject openproject   4286 maj 30 23:02 favicon-26fae539496f26698dbebce1ef471814.ico
-rw-r--r--  1 openproject openproject   4286 maj 30 23:02 favicon.ico

But, when I navigate to domain.com/public/assets/favicon.ico, i get: 404 Page not found.

Then in logs I see:

Started GET "/public/assets/favicon.ico" for 192.168.254.6 at 2014-06-06 18:28:52 +0200

ActionController::RoutingError (No route matches [GET] "/public/assets/favicon.ico"):
  actionpack (3.2.18) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (3.2.18) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.18) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.18) lib/rails/rack/logger.rb:16:in `block in call'
  activesupport (3.2.18) lib/active_support/tagged_logging.rb:22:in `tagged'
  railties (3.2.18) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.18) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.5) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.18) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.5) lib/rack/lock.rb:15:in `call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
  rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
  rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
  railties (3.2.18) lib/rails/engine.rb:484:in `call'
  railties (3.2.18) lib/rails/application.rb:231:in `call'
  railties (3.2.18) lib/rails/railtie/configurable.rb:30:in `method_missing'
  /home/openproject/.rvm/gems/ruby-2.1.2/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/frame_options.rb:31:in `call'
  /home/openproject/.rvm/gems/ruby-2.1.2/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/json_csrf.rb:18:in `call'
  passenger (4.0.44) lib/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
  passenger (4.0.44) lib/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
  passenger (4.0.44) lib/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
  passenger (4.0.44) lib/phusion_passenger/request_handler.rb:448:in `block (3 levels) in start_threads'

Any ideas?

RE: Internall 500 Error on fresh installation - Added by Bartosz Gołek almost 11 years ago

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:

Started GET "/" for 192.168.254.6 at 2014-06-06 18:40:22 +0200
Processing by WelcomeController#index as HTML
  Rendered welcome/index.html.erb within layouts/base (3.2ms)
Completed 500 Internal Server Error in 11.4ms

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__3713245867181348084_63826320'

RE: Internall 500 Error on fresh installation - Added by jernej mlekus almost 11 years ago

Same here… was trying to install it last night…

Thanks for answers,

Best, Jernej

  • (1 - 7/7)
Loading...