0

I am running this error during the "DOWNLOAD_SOURCE" phase in CodeBuild:

"invalid pkt-len found"

No other information is provided. I have tried various things to rule out problems.

a) The CodeCommit repo clones successfully, and appears to be fully functional.

b) Building from an earlier revision on this CodeCommit repository that had previously built successfully now throw this error -- Fails with same error message

b) Building from a separate CodeCommit repository with a separate CodeBuild project that has previously built successfully AND has no new commits -- Fails with same error

c) A brand new CodeBuild project and CodeCommit repo -- Does not fail

d) Building the same CodeBuild job that fails, with a zip file (of the same code base) as source instead of CodeCommit, and it does not fail.

dheffx
  • 140
  • 7

2 Answers2

2

I was getting the same error in Codebuild. Turned out, I was using a URL of a sub-folder in the repository. Since it was not a proper Git repo URL, it was throwing an invalid pkt len error. I hope this helps somebody who stumbles onto the same error.

0

Got a response from AWS - this was an issue on their end, which they have resolved.

Terry
  • 37
  • 2