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

Cannot parse missing logs after upgrade - KeyError http #198

Open
toddocon opened this issue Dec 8, 2019 · 2 comments
Open

Cannot parse missing logs after upgrade - KeyError http #198

toddocon opened this issue Dec 8, 2019 · 2 comments

Comments

@toddocon
Copy link
Contributor

toddocon commented Dec 8, 2019

We just upgraded to 2.18.8 and see this now when running Hubble. Maybe because the old (pre-upgrade) logs were moved. Certainly github-audit.log.1*.gz does not exist.

The KeyError: 'http' is an interesting one. Again, maybe related to missing logs?

...
gzip: /var/log/github-audit.log.1*.gz: No such file or directory

gzip: /var/log/haproxy.log.1*.gz: No such file or directory
Use of uninitialized value in new at -e line 1.

gzip: /var/log/haproxy.log.1*.gz: No such file or directory
Use of uninitialized value in new at -e line 1.

/git/tmpdata/hubble-data/git-download.tsv
/git/tmpdata/hubble-data/git-download-detailed.tsv
Finished update of git-download.tsv (runtime: 1.721 s)
Started update of git-protocol.tsv
gzip: /var/log/babeld/babeld.log.1*.gz: No such file or directory

gzip: /var/log/babeld/babeld.log.1*.gz: No such file or directory

Traceback (most recent call last):
  File "./update-stats.py", line 121, in <module>
    main()
  File "./update-stats.py", line 84, in main
    ReportGitProtocol(configuration, dataDirectory, metaStats).update()
  File "/apps/git/GitHubInsights/updater/reports/Report.py", line 168, in update
    self.updateData()
  File "/apps/git/GitHubInsights/updater/reports/ReportDaily.py", line 35, in updateData
    self.updateDailyData()
  File "/apps/git/GitHubInsights/updater/reports/ReportGitProtocol.py", line 20, in updateDailyData
    protocols["http"],
KeyError: 'http'
@toddocon
Copy link
Contributor Author

toddocon commented Dec 8, 2019

I updated to the latest Hubble just now and re-ran the data gather. It worked. We still have no rotated logs to parse, though, due to the very recent upgrade.

@toddocon
Copy link
Contributor Author

Maybe this is similar to #69 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant