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

Getting a KeyError: 'sha256:367d845540573038025f445c654675aa63905ec8682938fb45bc00f40849c37b' when trying to get statistics #1

Open
theblazehen opened this issue Jun 25, 2019 · 0 comments

Comments

@theblazehen
Copy link

I'm running this in an openshift environment and I'm in the registry's directory.

I get this:

[root@ocp-enterprise-infra-02 pvc-a98762f8-ac31-11e8-80b0-005056a106a9]# docker-registry-statistics . statistics 2>&1 | tail -n30
2019-06-25 15:34:00,433 INFO >> Tagged images: Count: 0, Size: 0B
2019-06-25 15:34:00,433 INFO >> Un-tagged images: Count 2, Size: 385.41 MB
2019-06-25 15:34:00,433 INFO Repository 'openautomate/nodejs-ex'
2019-06-25 15:34:00,433 INFO >> Total images: Count: 1, Size: 195.50 MB
2019-06-25 15:34:00,434 INFO >> Tagged images: Count: 0, Size: 0B
2019-06-25 15:34:00,434 INFO >> Un-tagged images: Count 1, Size: 195.50 MB
2019-06-25 15:34:00,434 INFO Repository 'openshift/dotnet'
2019-06-25 15:34:00,434 INFO >> Total images: Count: 2, Size: 251.01 MB
2019-06-25 15:34:00,434 INFO >> Tagged images: Count: 0, Size: 0B
2019-06-25 15:34:00,434 INFO >> Un-tagged images: Count 2, Size: 251.01 MB
Traceback (most recent call last):
  File "/opt/rh/rh-python36/root/usr/bin/docker-registry-statistics", line 11, in <module>
    load_entry_point('docker-registry-statistics==0.1.0', 'console_scripts', 'docker-registry-statistics')()
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/docker_registry_statistics/commands/statistics.py", line 83, in statistics
    for layer in image.data_layers
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/docker_registry_statistics/commands/statistics.py", line 83, in <genexpr>
    for layer in image.data_layers
KeyError: 'sha256:367d845540573038025f445c654675aa63905ec8682938fb45bc00f40849c37b'

Thanks for any assistance

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