-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twitcher unable to handle large http POST? #189
Comments
Try posting it there : |
Since we are using Ouranos twitcher and there are much differences between Ouranos twitcher and bird-house twitcher, I felt I had to ask you guys at the CRIM who maintain Ouranos twitcher. But sure I can post on bird-house twitcher, maybe they have some useful clues. |
In fact, the 1.1.0 version almost use the stock birdhouse twitcher. @fmigneault could confirm, but by config, we can even remove the magpie hook completely. However for the 0.3.16, I agree that the difference is not trivial and the issue you are experiencing could be unrelated to birdhouse. If you are working on upgrading twitcher to the latest version, you could check against that version before posting the issue directly to the birdhouse repo. |
Is it possible for the CRIM to share the docker-compose.yml and all config files used for your latest twitcher/magpie combo? In fact ... are you guys source controlling your various docker-compose.yml somewhere, can I just have access to that repo? Don't want to spend time tracking down which config have changed/added/deleted compared to our very ancient twitcher/magpie combo. |
docker-compose should be something like:
new file
Twitcher's port was changed. |
Thanks @fmigneault what about config file(s) for magpie? We currently have |
Looking at How did you guys build this |
Got a hackish fix here https://github.com/Ouranosinc/PAVICS/tree/fix-twitcher-unable-to-handle-large-http-POST. The Raven on my PAVICS is now working properly behind the existing twitcher.
The fix was basically to set a bigger I suspect the same fix will be needed for newer twitcher. @fmigneault are you able to bundle that fix in your newer twitcher? Still waiting for the magpie config files for newer magpie. I don't want to waste time chasing config changes like in #172 (comment). |
@tlvu Mapgie's docker now automatically generates the corresponding Twitcher image with Magpie adapter already setup in it, and this on every master merge / tag push. |
@tlvu |
I would add that the main nginx and the only one when using the latest twitcher is already accepting huge request body : https://github.com/Ouranosinc/PAVICS/blob/master/birdhouse/config/proxy/nginx.conf#L30 |
Oh right, I remember now we discussed about this. Sorry, bad memory. Can you then maybe reference the https://github.com/Ouranosinc/Magpie repo on the Docker Hub of |
@tlvu |
@dbyrns: FYI @moulab88 suggest not to have a too large |
Yep, when I saw that comment I immediately thought to the main nginx config . We could lower it as needed as well. I don't have in mind a specific scenario requiring such a high value, probably set that high just to get rid of errors for good. |
@fmigneault: I was referring to the github link on Ouranos twitcher docker image |
If you mean the Note that autobuilds from https://github.com/Ouranosinc/twitcher are not disabled, tags pushed to this repo will still build corresponding images. |
Oh ok. Not sure why we would still want that given we prefer to stick with upstream birdhouse twitcher as much as we can. I guess once we can remove this autobuild from https://github.com/Ouranosinc/twitcher, we can switch this autobuild link to https://github.com/Ouranosinc/Magpie (new tags we publish there are |
Yeah things change a lot since then. I propose that @fmigneault looks at the PAVICS compose and starts a branch with a basic config working with the latest 1.3.x magpie image. You could then start from there and complete the integration with PAVICS. Indeed we will still be available to help you in the process. |
Thanks @dbyrns |
@dbyrns
First off, sorry to hijack Magpie for Twitcher question, I was not able to find the "Issues" tab on Ouranos twitcher repo (https://github.com/Ouranosinc/twitcher).
Image:
pavics/twitcher:pavics-0.3.16
.In this gist https://gist.github.com/tlvu/a9f63c90b6538050d3e9d432b5d276f1 (https://nbviewer.jupyter.org/gist/tlvu/a9f63c90b6538050d3e9d432b5d276f1), there is a Raven notebook that submit a rather large/gigantic POST to Raven wps through twitcher
DEBUG:urllib3.connectionpool:https://lvu.ouranos.ca:443 "POST /twitcher/ows/proxy/raven/wps HTTP/1.1" 413 199
and the resulting isXMLSyntaxError: Opening and ending tag mismatch: hr line 5 and body, line 6, column 8
.Bypassing twitcher and hitting the Raven wps directly works so it's twitcher that was unable to process the request.
With twitcher in front, tracing Raven, the request did not even made it to Raven. Tracing twitcher at Debug level, there is no trace of this large/gigantic POST coming in either.
Any suggestions, debugging tips? Is this a known issue? Would upgrading to latest and greatest twitcher fix this issue?
Edit:
Http code 413 is indeed "Payload Too Large", see https://httpstatuses.com/413
Relevant Server Logs:
The text was updated successfully, but these errors were encountered: