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

UNABLE TO FETCH WORKFLOWS #270

Closed
Adeniji1313 opened this issue Oct 26, 2023 · 12 comments · Fixed by #271
Closed

UNABLE TO FETCH WORKFLOWS #270

Adeniji1313 opened this issue Oct 26, 2023 · 12 comments · Fixed by #271
Labels
bug Something isn't working
Milestone

Comments

@Adeniji1313
Copy link

Adeniji1313 commented Oct 26, 2023

Hi Everyone,

I have not been able to get workflow metrics no matter what I tried. I have been getting this error.

level=error ts=2023-10-26T15:34:42.365656874Z msg="failed to store github event" type=workflow_run error="failed to find record: sql: expected 15 destination arguments in Scan, not 1" 2023/10/26 15:34:42 http: superfluous response.WriteHeader call from github.com/promhippie/github_exporter/pkg/action.handler.func2.1 (server.go:289)

and then

level=error ts=2023-10-26T15:34:50.889038215Z collector=workflow msg="Failed to fetch workflows" err="sql: Scan error on column index 0, name \"owner\": destination not a pointer"

I use kubernetes

  GITHUB_EXPORTER_COLLECTOR_WORKFLOWS: "true"
  GITHUB_EXPORTER_LOG_PRETTY: "true"
  GITHUB_EXPORTER_COLLECTOR_RUNNERS: "true"
  GITHUB_EXPORTER_REQUEST_TIMEOUT: "15m"
  GITHUB_EXPORTER_PER_PAGE: "3000"
Screenshot 2023-10-26 at 17 08 44
@tboerger
Copy link
Member

Looks like you nare giving latest a try which includes a massive change to the behavior of the workflow metrics. Have you setup the webhook as documented? What exactly have you done? Which configuration have you applied?

@tboerger
Copy link
Member

I have reproduced the issue locally, a fix is on the way.

Since the new release failed halfway I need to look into excluding SQLite for some os or architectures.

@tboerger tboerger added the bug Something isn't working label Oct 27, 2023
@tboerger tboerger added this to the v3.0.1 milestone Oct 27, 2023
@tboerger
Copy link
Member

The latest tag should be building now, when I'm done with the fixing related to database support I will roll a new release.

@Adeniji1313
Copy link
Author

Thank you so much. It works now

@tboerger
Copy link
Member

Sadly no final release yet, still got issues while building everything.

@tboerger
Copy link
Member

Finally I have released 3.0.1 now! 🥳

@Adeniji1313
Copy link
Author

Adeniji1313 commented Oct 30, 2023

🥳. I tried it now sir. and the workflow metrics are no more populating 🙁. No error in the logs though. v3 works

@tboerger
Copy link
Member

Have you also deleted the database file to start from the scratch?

@Adeniji1313
Copy link
Author

How do I do that

@tboerger
Copy link
Member

tboerger commented Nov 1, 2023

Depends on how you deployed it. If you have enabled persistence replace the volume, if you haven't make sure the pods are getting deleted to create a new empty dir volume

@Adeniji1313
Copy link
Author

I am not using a persitent volume. The have recreated the pods numerous times.

@tboerger
Copy link
Member

tboerger commented Nov 2, 2023

You are aware that you got to wait for workflow run events from the GitHub webhook before the metrics are getting displayed, right?

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

Successfully merging a pull request may close this issue.

2 participants