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

Attach file triggers internal error

Added by Jan Busk over 4 years ago

Hi! 

I've installed OpenProject via the docker container. When I try to attach a file to a work package all seems to work fine. OP says "uploading file" and then the error message "Internal error" show up.

Any help would be most appreciated!

/Jan B

System:

Docker image running on Ubuntu 16.04

web_stdout.log error msgs

App 497 output: Started POST "/api/v3/work_packages/51/attachments" for xxx.xxx.xxx.xxx at 2018-11-29 06:30:16 +0000 
App 497 output:   Grape rescuing from error: API::Errors::InternalError 
App 497 output:  
App 497 output:   Original error: #:0x000056443b0827a0>>  App 497 output:   App 497 output:   Stacktrace:  App 497 output:   App 497 output:     /usr/src/app/lib/api/v3/attachments/attachments_by_container_api.rb:105:inlog\_attachment\_saving_error'  App 497 output:     /usr/src/app/lib/api/v3/attachments/attachments\_by\_container_api.rb:95:in rescue in with_handled_create_errors'  App 497 output:     /usr/src/app/lib/api/v3/attachments/attachments_by_container_api.rb:90:inwith\_handled\_create_errors'  App 497 output:     /usr/src/app/lib/api/v3/attachments/attachments\_by\_container_api.rb:84:in build_and_attach'  App 497 output:     /usr/src/app/lib/api/v3/attachments/attachments_by_container_api.rb:74:inparse\_and\_create'  App 497 output:     /usr/src/app/lib/api/v3/attachments/attachments\_by\_container_api.rb:128:in block in create'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:57:incall'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:57:in block (2 levels) in generate_api_method'  App 497 output:     /usr/local/bundle/gems/activesupport-5.1.6/lib/active_support/notifications.rb:168:ininstrument'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:56:in block in generate_api_method'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:262:inblock in run'  App 497 output:     /usr/local/bundle/gems/activesupport-5.1.6/lib/active_support/notifications.rb:168:in instrument'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:243:inrun'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:313:in block in build_stack'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/base.rb:31:in call!'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/base.rb:24:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/base.rb:31:incall!'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/base.rb:24:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/gems/warden-1.2.7/lib/warden/manager.rb:36:in block in call'  App 497 output:     /usr/local/bundle/gems/warden-1.2.7/lib/warden/manager.rb:35:incatch'  App 497 output:     /usr/local/bundle/gems/warden-1.2.7/lib/warden/manager.rb:35:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/error.rb:38:in block in call!'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/error.rb:37:incatch'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/error.rb:37:in call!'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/middleware/base.rb:24:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/head.rb:12:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:227:incall!'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/endpoint.rb:221:in call'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/router/route.rb:72:inexec'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/router.rb:121:in process_route'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/router.rb:74:inblock in identity'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/router.rb:93:in transaction'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/router.rb:72:inidentity'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/router.rb:57:in block in call'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/router.rb:137:inwith_optimization'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/router.rb:56:in call'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/api.rb:119:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/grape.rb:115:in call_with_new_relic'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/api.rb:45:incall!'  App 497 output:     /usr/local/bundle/gems/grape-1.1.0/lib/grape/api.rb:40:in call'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/routing/mapper.rb:17:inblock in [class:Constraints](class:Constraints)'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/routing/mapper.rb:46:in serve'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/journey/router.rb:50:inblock in serve'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/journey/router.rb:33:in each'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/journey/router.rb:33:inserve'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action\_dispatch/routing/route\_set.rb:844:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/builder.rb:63:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/strategy.rb:189:in call!'  App 497 output:     /usr/local/bundle/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/strategy.rb:167:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/builder.rb:63:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/rack/agent_hooks.rb:30:intraced_call'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/rack/browser_monitoring.rb:32:intraced_call'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/builder.rb:63:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/src/app/app/middleware/reset_current_user.rb:47:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/tempfile_reaper.rb:15:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-attack-5.2.0/lib/rack/attack.rb:172:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/etag.rb:25:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/deflater.rb:34:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/conditional_get.rb:38:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/head.rb:12:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:232:incontext'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:226:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/gems/ac  App 497 output: tionpack-5.1.6/lib/action_dispatch/middleware/cookies.rb:613:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/middleware/callbacks.rb:26:in block in call'  App 497 output:     /usr/local/bundle/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:97:inrun_callbacks'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/middleware/callbacks.rb:24:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action\_dispatch/middleware/debug\_exceptions.rb:59:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action\_dispatch/middleware/show\_exceptions.rb:31:in call'  App 497 output:     /usr/local/bundle/gems/newrelic_rpm-4.5.0.337/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:incall'  App 497 output:     /usr/local/bundle/gems/railties-5.1.6/lib/rails/rack/logger.rb:36:in call_app'  App 497 output:     /usr/local/bundle/gems/railties-5.1.6/lib/rails/rack/logger.rb:24:inblock in call'  App 497 output:     /usr/local/bundle/gems/activesupport-5.1.6/lib/active\_support/tagged\_logging.rb:69:in block in tagged'  App 497 output:     /usr/local/bundle/gems/activesupport-5.1.6/lib/active_support/tagged_logging.rb:26:intagged'  App 497 output:     /usr/local/bundle/gems/activesupport-5.1.6/lib/active\_support/tagged\_logging.rb:69:in tagged'  App 497 output:     /usr/local/bundle/gems/railties-5.1.6/lib/rails/rack/logger.rb:24:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/middleware/remote_ip.rb:79:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/request_store-1.4.1/lib/request_store/middleware.rb:19:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/middleware/request_id.rb:25:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/method_override.rb:22:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/runtime.rb:22:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/activesupport-5.1.6/lib/active_support/cache/strategy/local_cache_middleware.rb:27:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/middleware/executor.rb:12:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/actionpack-5.1.6/lib/action_dispatch/middleware/static.rb:125:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/sendfile.rb:111:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/secure_headers-5.0.5/lib/secure_headers/middleware.rb:13:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/railties-5.1.6/lib/rails/engine.rb:522:incall'  App 497 output:     /usr/local/bundle/gems/railties-5.1.6/lib/rails/railtie.rb:185:in public_send'  App 497 output:     /usr/local/bundle/gems/railties-5.1.6/lib/rails/railtie.rb:185:inmethod_missing'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-protection-2.0.1/lib/rack/protection/frame_options.rb:31:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-protection-2.0.1/lib/rack/protection/json_csrf.rb:26:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/urlmap.rb:68:inblock in call'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in each'  App 497 output:     /usr/local/bundle/gems/rack-2.0.5/lib/rack/urlmap.rb:53:incall'  App 497 output:     /usr/local/bundle/gems/newrelic\_rpm-4.5.0.337/lib/new\_relic/agent/instrumentation/middleware_tracing.rb:92:in call'  App 497 output:     /usr/local/bundle/gems/passenger-5.3.3/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:inprocess_request'  App 497 output:     /usr/local/bundle/gems/passenger-5.3.3/src/ruby\_supportlib/phusion\_passenger/request\_handler/thread\_handler.rb:157:in accept_and_process_next_request'  App 497 output:     /usr/local/bundle/gems/passenger-5.3.3/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:inmain_loop'  App 497 output:     /usr/local/bundle/gems/passenger-5.3.3/src/ruby\_supportlib/phusion\_passenger/request_handler.rb:415:in block (3 levels) in start_threads'  App 497 output:     /usr/local/bundle/gems/passenger-5.3.3/src/ruby_supportlib/phusion_passenger/utils.rb:113:in`block in create_thread_and_abort_on_exception' 
[ N 2018-11-29 06:32:23.4891 404/T3 age/Cor/CoreMain.cpp:1028 ]: Checking whether to disconnect long-running connections for process 2117, application /usr/src/app (production)


Replies (3)

rtRE: Attach file triggers internal error - Added by Oliver Günther over 4 years ago

Dear Jan,

the actual error is shadowed by a syntax error in the exception handling. I assume the underyling error could have something to do with insufficient permission by the system to write into the attachment storage path.

Did you modify the ATTACHMENTS_STORAGE_PATH or change permissions? What kind of installation are you using?

Could you apply the following patch to improve the error message?

https://github.com/opf/openproject/commit/a290203bdd.patch

Download the patch and check whether it applies: From your OpenProject root folder:

⟩ curl -o patchfile https://github.com/opf/openproject/commit/a290203bdd.patch

Check whether the patch applies cleanly

⟩ git apply --check patchfile

If nothing is output, it applies cleanly. Then, actually apply the patch:

⟩ git apply patchfile

You will then need to restart your server with (packaged installation) service openproject restart or systemctl restart openproject depending on your distribution. In a manual installation, restart your application server respectively.

To reverse the patch again, run

git apply -R <patchfile>

Best,

Oliver

RE: Attach file triggers internal error - Added by Jan Busk over 4 years ago

Thanks for coming back to me Oliver!
I run the openproject docker container on an ubuntu 16.04 machine. I haven't done any permission changes or changes to configuration.yml.  I  will try to apply the patch inside the docker container. 

As far as I know all changes inside the container will be temporary and disappear when the docker container is stopped.

Anyways I'll try to apply the patch and come back with the result.

RE: Attach file triggers internal error - Added by Jan Busk over 4 years ago

Being new to docker it took me a while (googling and head scratching) before I manged to tty to the docker container. Applying the patch went flawless but I could not restart the openproject service since it does not exist. Restarting the container will reset all changes so I'm kind of lost here.

Referring to the installation guide for the docker install, I guess that starting the container with 

"docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \ 
-v /var/lib/openproject/pgdata:/var/lib/postgresql/9.6/main \ 
-v /var/lib/openproject/logs:/var/log/supervisor \ 
-v /var/lib/openproject/static:/var/db/openproject \ 
openproject/community:8"

would mean that attachments would be stored on the local machine at /var/lib/openproject/static? I have checked that it has rw access for all users.

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