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

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. How to configure the Repository //SOLVED//

How to configure the Repository //SOLVED//

Added by William Cornett, PMP over 10 years ago

I am experiencing a problem with the documents plugin. When I go to upload a file I get an 500 error:

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your OpenProject administrator for assistance.

If you are the OpenProject administrator, check your log files for details about the error.
——————————————————————————————————————————————————-

I thought maybe it had something to do with how my repository was set up.
administration>setting>repositories

See error page, admin and projects screen shots.

Thanks,

William Cornett, PMP
Principal Project Manager
ExagoWeb Development Group
http://exagoweb.com


Replies (2)

RE: How to configure the Repository - Added by Daniel Jagszent over 10 years ago

Hi William,

you can find the real error message (not the generic “Internal error” message) in /home/openproject/openproject/log/production.log. Do not dump the whole log file here, tho. It probably contains sensitive information that you do not want to share. Only paste the last few lines with the error/exception.

Here is how an error might look like in the log file:

Started GET "/my/account" for 217.8.X.Y at 2014-09-05 19:32:14 +0200
Processing by MyController#account as HTML
  Rendered layouts/_action_menu_specific.html.erb (0.1ms)
  Rendered vendor/bundler/ruby/2.0.0/bundler/gems/openproject-backlogs-2fdcc7fe5427/app/views/shared/_view_my_account.html.erb (1.6ms)
  Rendered users/_mail_notifications.html.erb (116.8ms)
  Rendered users/_impaired_settings.html.erb (0.9ms)
  Rendered users/_preferences.html.erb (14.6ms)
  Rendered my/account.html.erb within layouts/my (154.7ms)
  Rendered my/_sidebar.html.erb (16.1ms)
  Rendered layouts/base.html.erb (125.2ms)
Completed 500 Internal Server Error in 335.1ms

ActionView::Template::Error (undefined method `root' for Engine:Module):
    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/theme.rb:98:in `overridden_images_path'
  lib/open_project/themes/theme.rb:104:in `overridden_images'
  lib/open_project/themes/theme.rb:111:in `image_overridden?'
  lib/open_project/themes/theme.rb:119:in `path_to_image'
  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___1260014843129400782_69866372051420'
  app/views/layouts/my.html.erb:34:in `_app_views_layouts_my_html_erb__3037056641567528014_69866385761700'


Regards,
Daniel

RE: How to configure the Repository //SOLVED// - Added by William Cornett, PMP over 10 years ago

Daniel,

Thank you for pointing me in to the right direction. Upon review of this log file I learned that the documents plugin was looking for a folder titled “files”. Apparently you have to manually create this folder:

home/openproject/openproject/files

But thats not all… You must then chmod this folder to have write access. Now the documents plugin seems to be working just fine !!!

Thanks,

William Cornett, PMP
Principal Project Manager
ExagoWeb Development Group
http://exagoWeb.com

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