Reputation: 140
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.
Upvotes: 0
Views: 2406
Reputation: 51
I've found that I get this invalid pkt-len found
error when I've added a new user to our git server (GOGS/Gitea), and they're using SSH URLs but they don't yet have permission to the repo they're requesting.
failed to checkout and determine revision: unable to clone 'ssh://[email protected]/username/my-git-repo': invalid pkt-len found
Once I've granted the user access to the repo it works as expected.
Upvotes: 0
Reputation:
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.
Upvotes: 2
Reputation: 47
Got a response from AWS - this was an issue on their end, which they have resolved.
Upvotes: 0