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
      • Hierarchy leafWiki
You are here:
  • Forums
  • Support Installation & Updates

Content

Debian Stretch : work package / Your query is erroneous and could not be processed

Added by Nicolas Bertolissio over 5 years ago

Hi,

I’ve just installed OpenProject following this topic

I’ve created a user and a project giving the user project admin rights. When I go to the Work Packages page, I’ve go this error:

Your query is erroneous and could not be processed.
An internal error has occured.

I’ve tried with the admin user, I’ve got the same error. When I go to the ‘Work Packages’ page of the ‘Demo Project’, with my user (with project admin rights’) or the admin, I’ve got the same error.

Here are the logs corresponding to the login of the user and access to the Work Packages page.

Any clue?


Replies (11)

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Oliver Günther over 5 years ago

Hi Nicolas,

thanks for your thorough report. From your production.log, I can see that the underyling issue is this:

 #<LocalJumpError: unexpected return>

It appears that you have discovered a ruby bug that allowed us to temporarily use return in a block statement.

I’ve opened a bug report here, I’ll provide a fix for the 7.2.1 release scheduled for today.

Best,
Oliver

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Oliver Günther over 5 years ago

Hi Nicolas,

I have a patch that should fix the issue. If you are willing to try it out, please use the following steps:

# Download the patch file
⟩ curl -o 5858.patch https://patch-diff.githubusercontent.com/raw/opf/openproject/pull/5856.patch

# Check whether the patch applies cleanly
⟩ git apply --check 5858.patch

# If the above resulted in no output, you can apply the patch with:
⟩ git apply 5858.patch

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Nicolas Bertolissio over 5 years ago

Thanks, It works.

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Nicolas Bertolissio over 5 years ago

Well, It worked only once! I don’t understand why, but I’d got the ‘Work packages’ page once.
I’ve done nc localhost 11211 <<< "flush_all" and touch ~/openproject-ce/tmp/restart.txt.
I’ve got the same error in another file (lib/api/decorators/linked_resource.rb at line 136 if I understand the log file well). To me, but I know mostly nothing in ruby language, it looks like the same thing, so I tried to turn the return unless into an if in the same way as in your patch, but it didn’t work and I’ve got another error.
Any solution?

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Oliver Günther over 5 years ago

Hi Nicolas,

it appears that due to this bug in ruby having existed for quite some time, this error has crept undetected into several places in our API definitions.

Could you give me the output of ruby -v so I can check with the same patch level?

FYI, we are currently forcing ruby 2.4.1p111 in our Gemfile.lock, so all packages, developers and our CI will use that version - which is why we’ve not found this issue in our testing. You may want to install exactly that version if possible for the time being until I can fix the issues.

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Nicolas Bertolissio over 5 years ago

~$ ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]

This is the version suggested here for Stretch.

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Oliver Günther over 5 years ago

Can you try to upgrade to ruby 2.4.1 ? This should resolve the error.

Best,
Oliver

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Nicolas Bertolissio over 5 years ago

I’ve updated ruby to 2.4.1, and it seems to work on Stretch. So the difference with this is:

rbenv install 2.4.1
rbenv rehash
rbenv global 2.4.1

and don’t change the ruby version in Gemfile.

I’ve also removed ../.rbenv/versions/2.4.0/bin/ from command paths so it should use 2.4.1. But then I’ve got strange paths with 2.4.1 and 2.4.0 mix like this:
/home/openproject/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/passenger-5.1.7/buildout/apache2/mod_passenger.so
I don’t know if this creates troubles but for the moment OpenProject seems to work, and I do have access to the ‘Work Packages’ page.

Thank you.

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Oliver Günther over 5 years ago

Hi Nicolas,

the ‘wrong’ paths are likely from your passenger / Apache configuration. When you installed passenger, you did so on the ruby 2.4.0 runtime.

You might simply want to reinstall the passenger gem and update your module load config.

Best,
Oliver

RE: RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Milic Denic about 5 years ago

“When I go to the ’Work Packages’ page ”
“Your query is erroneous and could not be processed.
An internal error has occured. ”

Same here after upgrade from OpenProject 7.2.1 to 7.3.1
This is happening only on one specific project.
Ubuntu 16.04 server.

Here are the logs
Any help ?

RE: Debian Stretch : work package / Your query is erroneous and could not be processed - Added by Miquel Garcia about 5 years ago

Dear colleagues,

I have exactly the same problem as illustrated by Millic, with

OpenProject 7.3.2 (Mysql2)
Last change: 2017-11-23

Running on an Ubuntu 16.04.3 server machine

Unfortunately I could not find the solution yet. I am attaching the tail of the production log just after clicking the link to Workpackage, which replies with the error message:

“Your query is erroneous and could not be processed.
An internal error has occured. ”

Is there a patch to this bug?

Many thanks!

Miquel

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