devstats-example icon indicating copy to clipboard operation
devstats-example copied to clipboard

Hitting "invalid file data returned for repo" after running deploy.sh

Open Reshrahim opened this issue 1 year ago • 4 comments

I am currently setting up the devstats dashboard for Radius

Followed the instructions in the readme to set it up

Hitting the below error after running deploy.sh

2023-11-10 11:33:47 radius/get_repos: Running on database: radius
2023-11-10 11:33:48 radius/get_repos: Database 'radius' processed took 37.874541ms, new commits: 738
2023-11-10 11:33:48 radius/get_repos: Got 1 DBs new commits list: took 46.9895ms
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/docs 185e5039da6d3548f125da845616ebc018950184
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/design-notes 400041d431b6715104be4e80af736786f2c3653a
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/radius 9985ae2b2803542c805277f1ca534f7eed27fbac
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/docs 5eb3409b97602b155f6796aa64a8d0d0607050e1
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/docs c891268e0cbf7222e24337add95a1a111ba0302a
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/docs f42ee786725804e8b1c56a2012282736bd99076e
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/radius 744efecf3998cf897f5b224c54941ac424bce17d
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/docs d9be7b5d548dc23189f867e9e719a20880022386
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/docs 588d1ab0f04dafc06d2f4e5a0463c748b479b845
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/radius 85f0dc28d5caae230b23fbae208700e571e7dddf
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: Environment Override: map[GIT_TERMINAL_PROMPT:0]
2023-11-10 11:33:48 radius/get_repos: git_files.sh /Users/reshmaabdulrahim/devstats_repos/radius-project/radius 85f0dc28d5caae230b23fbae208700e571e7dddf ... 308.572541ms
2023-11-10 11:33:48 radius/get_repos: ErrorType: *errors.errorString, error: invalid fileData returned for repo: radius-project/radius, sha: 85f0dc28d5caae230b23fbae208700e571e7dddf: '��♀-1'
2023-11-10 11:33:48 radius/get_repos: Error(time=2023-11-10 11:33:48.324661 -0500 EST m=+0.374130459):
Error: 'invalid fileData returned for repo: radius-project/radius, sha: 85f0dc28d5caae230b23fbae208700e571e7dddf: '��♀-1''
Stacktrace:
goroutine 45 [running]:
runtime/debug.Stack()
        /usr/local/go/src/runtime/debug/stack.go:24 +0x64
github.com/cncf/devstatscode.FatalOnError({0x104b3bb38, 0x140003941f0})
        /Users/reshmaabdulrahim/Documents/GitHub/cncf/devstatscode/error.go:58 +0x7c4
github.com/cncf/devstatscode.Fatalf({0x104a4080b?, 0x7?}, {0x1400032df08?, 0x6?, 0x0?})
        /Users/reshmaabdulrahim/Documents/GitHub/cncf/devstatscode/error.go:70 +0x28
main.getCommitFiles(0x0?, 0x14000143400, 0x0?, 0x0, {0x14000192288, 0x15}, {0x14000198270, 0x28})
        /Users/reshmaabdulrahim/Documents/GitHub/cncf/devstatscode/cmd/get_repos/get_repos.go:551 +0x82c
created by main.processCommits in goroutine 1
        /Users/reshmaabdulrahim/Documents/GitHub/cncf/devstatscode/cmd/get_repos/get_repos.go:690 +0x192c

Not sure if this is something related to my project.yaml which looks like below

---
projects:
  radius:
    order: 1
    name: Radius
    status: "-"
    command_line:
      - radius-project
    start_date: 2023-10-18T00:00:00Z
    join_date: null
    psql_db: radius
    main_repo: 'radius-project/radius'
    annotation_regexp: ''
    files_skip_pattern: ''
    # disabled: true

Reshrahim avatar Nov 10 '23 17:11 Reshrahim