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

wilfred top broken #120

Closed
vilhelmprytz opened this issue Apr 24, 2022 · 0 comments · Fixed by #121
Closed

wilfred top broken #120

vilhelmprytz opened this issue Apr 24, 2022 · 0 comments · Fixed by #121

Comments

@vilhelmprytz
Copy link
Member

Environment

  • Installation type: homebrew
  • Python version: 3.9
  • Wilfred version: master

Steps to Reproduce

Run wilfred top.

Expected Behavior

Show statistics of all servers.

Observed Behavior

Following error.

➜  ~ wilfred top
Traceback (most recent call last):
  File "/home/linuxbrew/.linuxbrew/bin/wilfred", line 33, in <module>
    sys.exit(load_entry_point('wilfred==0.0.0.dev0', 'console_scripts', 'wilfred')())
  File "/home/linuxbrew/.linuxbrew/Cellar/wilfred/HEAD-2d61ff1/libexec/lib/python3.9/site-packages/wilfred/wilfred.py", line 201, in main
    cli()
  File "/home/linuxbrew/.linuxbrew/Cellar/wilfred/HEAD-2d61ff1/libexec/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/linuxbrew/.linuxbrew/Cellar/wilfred/HEAD-2d61ff1/libexec/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/linuxbrew/.linuxbrew/Cellar/wilfred/HEAD-2d61ff1/libexec/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/linuxbrew/.linuxbrew/Cellar/wilfred/HEAD-2d61ff1/libexec/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/linuxbrew/.linuxbrew/Cellar/wilfred/HEAD-2d61ff1/libexec/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/linuxbrew/.linuxbrew/Cellar/wilfred/HEAD-2d61ff1/libexec/lib/python3.9/site-packages/wilfred/wilfred.py", line 838, in top
    data = servers.all(cpu_load=True, memory_usage=True)
  File "/home/linuxbrew/.linuxbrew/Cellar/wilfred/HEAD-2d61ff1/libexec/lib/python3.9/site-packages/wilfred/api/servers.py", line 85, in all
    cpu_count = len(d["cpu_stats"]["cpu_usage"]["percpu_usage"])
KeyError: 'percpu_usage'
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

Successfully merging a pull request may close this issue.

1 participant