Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leaf2nd Level Support
You are here:
  • Forums
  • General discussion

Content

How to configure the Repository //SOLVED//

Added by William Cornett, PMP over 8 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 8 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 8 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...