Skip to content
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

Bug: Git sensor got error and return exit code 128 #5629

Closed
2 tasks done
tommy04062019 opened this issue Aug 7, 2024 · 2 comments
Closed
2 tasks done

Bug: Git sensor got error and return exit code 128 #5629

tommy04062019 opened this issue Aug 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tommy04062019
Copy link

πŸ“œ Description

Logs:
β”‚ git-sensor {"level":"info","ts":1723014048.660751,"caller":"pkg/RepoManages.go:468","msg":"errored material ","id":4,"errMsg":"exit status 128"} β”‚ β”‚ git-sensor {"level":"error","ts":1723014050.2870855,"caller":"git/GitBaseManager.go:185","msg":"error in git cli operation","msg":"fatal: not a git repository (or any of the parent directories): .git\ β”‚ β”‚ git-sensor {"level":"error","ts":1723014050.2873294,"caller":"git/RepositoryManager.go:204","msg":"error in updating repository","err":"exit status 128","location":"git@xxxx β”‚ β”‚ git-sensor {"level":"error","ts":1723014050.287529,"caller":"git/Watcher.go:200","msg":"error in fetching material details ","repo":"git@xxxxxxxx","err":"exit s β”‚ β”‚ git-sensor {"level":"error","ts":1723014050.2898335,"caller":"git/GitBaseManager.go:185","msg":"error in git cli operation","msg":"fatal: not in a git directory\n","err":"exit status 128","stacktrace" β”‚ β”‚ git-sensor {"level":"error","ts":1723014050.2899919,"caller":"git/RepositoryManager.go:367","msg":"error in configuring ssh command while adding repo","errorMsg":"","err":"exit status 128","stacktrace β”‚ β”‚ git-sensor {"level":"error","ts":1723014050.2901144,"caller":"git/Watcher.go:212","msg":"error in creating/configuring ssh private key on disk ","repo":"git@xxxxxx β”‚ β”‚ git-sensor {"level":"info","ts":1723014050.4152596,"caller":"pkg/RepoManages.go:468","msg":"errored material ","id":4,"errMsg":"exit status 128"}

πŸ‘Ÿ Reproduction steps

When I run Build and Deploy. Got an error:
Screenshot 2024-08-07 at 14 05 17

πŸ‘ Expected behavior

Pulling code should successfully

πŸ‘Ž Actual Behavior

Return code 128

☸ Kubernetes version

1.28

Cloud provider

openstack

🌍 Browser

Chrome

🧱 Your Environment

No response

βœ… Proposed Solution

No response

πŸ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find any similar issue

🏒 Have you read the Code of Conduct?

@tommy04062019 tommy04062019 added the bug Something isn't working label Aug 7, 2024
@ayu-devtron
Copy link
Contributor

ayu-devtron commented Sep 17, 2024

Hi @tommy04062019 , If you are still facing this issue then can you please tell us steps to reproduce this ? Also, if its possible then can you tell us the repo for which this happened ?

@ayu-devtron
Copy link
Contributor

Hi @tommy04062019 , we believe this error happened because either you didn't have proper access to the target repo or repo url was incorrect. Either way, we have done improvements on our side to show meaningful error messages on UI.

I am closing this issue for now but feel free to open this if you feel otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants