You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No immediate clues as to how this could happen intermittently, on the surface it suggests the http request in malformed. I think if nothing else we can for the next release add some bare bones minimum logging of relevant parts of the request (method, headers, etc.) to see if we can figure out what's happening.
Adding this to the release milestone so we don't forget; will do that tomorrow.
I actually managed to hit this locally one time now, but I of course was on a branch that didn't have #7602 and didn't repro again after running in a loop again for like 20 minutes.... I may try to set something up to run over night to repro if nothing else.
Finally hit this one with the logging in place and:
time="2024-06-11T21:29:43Z" level=debug msg="handling http request" contentType=application/json method=OST path=/query span="[internal] exec /runtime" upgradeHeader=
[buildkit] [trace=9351b8aca9e9871f07674c47f00484e8] [client=8y4lmohdiv1ouburuuwjo45uy] #100 0.666 get fn arg name: returned error 400 Bad Request: {"errors":[{"message":"transport not supported"}],"data":null}
OST is indeed not an HTTP method! Something is going very wrong somewhere, best guess is some read/write is not synchronized and getting dropped. Will keep looking for the root cause.
Good news, there is a reasonable chance this was fixed by #7315
I ran the same tests I repro'd with last time in a loop for a total of almost 2 hours without the error happening again. Last time I repro'd, it took looping those tests for ~30m, so I can't be 100% sure yet but good initial signs.
That PR removed a massive amount of complication in how HTTP requests get sent, so it's highly plausible it ended up removing whatever bug was causing the first byte of HTTP requests to go missing and thus turn POST into OST.
Will leave this open until the next release has been out for a bit and we don't get any more reports of it.
I'm running this in Tekton. I will have to try with debugging on.
�[95m5 : �[0m ModuleSource.�[1mresolveFromCaller�[0m�[32m DONE�[0m�[90m [21.1s]�[0m
�[95m7 : �[0m ModuleSource.�[1masModule�[0m�[2m: Module!�[0m
�[95m7 : �[0m ModuleSource.�[1masModule�[0m�[33m ERROR�[0m�[90m [0.4s]�[0m
�[95m7 : �[0m �[33m! failed to create module: select: failed to update codegen and runtime: failed to generate code: failed to call sdk module codegen: select: call function "Codegen": process "/runtime" did not complete successfully: exit code: 2�[0m
�[95m4 : �[0minitialize�[33m ERROR�[0m�[90m [21.5s]�[0m
�[95m4 : �[0m�[33m! input: moduleSource.withContextDirectory.asModule resolve: failed to create module: select: failed to update codegen and runtime: failed to generate code: failed to call sdk module codegen: select: call function "Codegen": process "/runtime" did not complete successfully: exit code: 2
Stdout:
get fn arg value: returned error 400 Bad Request: {"errors":[{"message":"transport not supported"}],"data":null}�[0m
Error: input: moduleSource.withContextDirectory.asModule resolve: failed to create module: select: failed to update codegen and runtime: failed to generate code: failed to call sdk module codegen: select: call function "Codegen": process "/runtime" did not complete successfully: exit code: 2
Stdout:
get fn arg value: returned error 400 Bad Request: {"errors":[{"message":"transport not supported"}],"data":null}
make: *** [Makefile:248: pipeline-dagger] Error 1
Activity
sipsma commentedon Jun 10, 2024
Looked quickly since this error message did not ring any bells, it is coming from our gqlgen dep here: https://github.com/99designs/gqlgen/blob/d9ba340552d1adb25e32584b2a4d3dfc9e254d24/graphql/handler/server.go#L119
No immediate clues as to how this could happen intermittently, on the surface it suggests the http request in malformed. I think if nothing else we can for the next release add some bare bones minimum logging of relevant parts of the request (method, headers, etc.) to see if we can figure out what's happening.
Adding this to the release milestone so we don't forget; will do that tomorrow.
sipsma commentedon Jun 10, 2024
Sent a PR w/ debug logs for next release; removing this issue from the milestone since that PR is now attached to it instead.
sipsma commentedon Jun 11, 2024
I actually managed to hit this locally one time now, but I of course was on a branch that didn't have #7602 and didn't repro again after running in a loop again for like 20 minutes.... I may try to set something up to run over night to repro if nothing else.
sipsma commentedon Jun 11, 2024
Finally hit this one with the logging in place and:
OSTis indeed not an HTTP method! Something is going very wrong somewhere, best guess is some read/write is not synchronized and getting dropped. Will keep looking for the root cause.sipsma commentedon Jun 12, 2024
Good news, there is a reasonable chance this was fixed by #7315
I ran the same tests I repro'd with last time in a loop for a total of almost 2 hours without the error happening again. Last time I repro'd, it took looping those tests for ~30m, so I can't be 100% sure yet but good initial signs.
That PR removed a massive amount of complication in how HTTP requests get sent, so it's highly plausible it ended up removing whatever bug was causing the first byte of HTTP requests to go missing and thus turn
POSTintoOST.Will leave this open until the next release has been out for a bit and we don't get any more reports of it.
sipsma commentedon Jun 28, 2024
@sagikazarmark if you've upgraded to v0.11.7 or higher, let me know if this went away. If so I'll go ahead and close the issue.
jonnyczi commentedon Jul 19, 2024
I'm facing this issue intermittently on 0.11.7
I'm running this in Tekton. I will have to try with debugging on.
jedevc commentedon Jul 3, 2025
These haven't been seen in a while - we're now at v0.18.12, lots has changed.
We should open a new issue, if this is still happening.
engine/server: log each HTTP request at trace level
engine/server: log each HTTP request at trace level
engine/server: log each HTTP request at trace level