Added by Oliver Jakobi about 9 years ago
I am currently preparing to move openproject from a former virtual machine to a dedicated host.
My first upgrade test went well and everything exept one is working quite well so far.
Whatever project I choose, I will allways get an “unretrievable query” error which ends in a “Die URL enthält keine benutzerdefinierte Abfrage” notification, when I try to show work_packages.
Time lines do work fine.. it’s just the work packages..
I first thought that it might be related to incomplete proxy passes, but that would also cause problems for everyone else, since apache or nginx would proxy anyways.
Did someone else run into that problem before, or does at least have an idea what could cause the error? As far as my understanding goes it is not necessary to Upgrade from 4.1 to 4.2 to 5.0.x, because the database will be migrated once I run rake, right?
Highly appreciate any help!
Best,
Oliver
Replies (5)
What I did until now:
trace the occurance of “unretrievable_query” -> this is found mostly in I18n, but relates to http GET requests.
Since I am using nginx , I tried
and
This resulted in GET parameters being written to the url. But without success.
Also I tried to suppress url masking. Also without success. Signs like {[]} in the url do not change behavior.
Anyone here to provide an idea? Please?
Best,
Oliver
Hey Oliver,
You’ll receive that notification when the frontend was unable to retrieve the results to a WorkPackage query.
I’m also still wondering why that is, so could you search the production.log for requests with
query_id=X
?The upgrade process you mentioned in your first message is correct at least for the core and/or our maintained plugins.
Best,
Oliver
Hi Oliver!
Thank you so much!
Knowing how things work is just priceless.
At first I thought, that the error is raised if the backend could not parse it.
So I started navigating to the Work packages of a project and tailed the log output.
I searched for “query_id” to no avail.
Reading your information again and realizing that the frontend raises the error when no results can be retrieved, it became absolutely clear to me…
In nginx a “proxypassReverse” like in Apache does not exist.
Hence, when I forward the query to the application server, the returning headers will not be accepted by nginx.
So for future readers:
adding
solved the issue.
Headers will be forwarded an retrieved by nginx like a charm! :)
Once again, thank you for that valuable piece of information. It is highly appreciated.
Best
Oliver
Hey Oliver,
great news, thanks for your thorough update. We don’t have many active nginx installations ourselves so these pieces of knowledge are very valuable.
Would you be open to write up this post as part of the installation guide (https://github.com/opf/openproject/blob/dev/doc/operation_guides/manual/installation-guide.md) to make an nginx guide more visible for others? In the main installation guide, we only have Apache2 covered at the moment.
If you have a GitHub account, you can simply edit that page in the browser and open a Pull Request for us to merge. If not, you could just send me a mail to o.guenther
-at-
openproject.com with some basic instructions similar to https://github.com/opf/openproject/blob/dev/doc/operation_guides/manual/installation-guide.md#serve-openproject-with-apache-and-passengerBest,
Oliver
Hi Oliver,
I’ll make sure to go through the installation guides this weekend and open a pull request as soon as I think they’re okay.
Best,
Oliver