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

[BUG] ZeroDivisionError on MFSCGI #412

Closed
struthio opened this issue Jan 13, 2021 · 2 comments
Closed

[BUG] ZeroDivisionError on MFSCGI #412

struthio opened this issue Jan 13, 2021 · 2 comments

Comments

@struthio
Copy link

Have you read through available documentation, open Github issues and Github Q&A Discussions?

Yes

System information

Running Ubuntu 20.04

Your moosefs version and its origin (moosefs.com, packaged by distro, built from source, ...).

CGI version: 3.0.115 ; python: 3.8
MASTER - 3.0.115

From Ubuntu ppa repository.

Operating system (distribution) and kernel version.

Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

Linux eden 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Hardware / network configuration, and underlying filesystems on master, chunkservers, and clients.

How much data is tracked by moosefs master (order of magnitude)?

  • All fs objects:
  • Total space:
  • Free space:
  • RAM used:
  • last metadata save duration:

Describe the problem you observed.

When using MFSCGI when there are some chunkservers everything is fine.
When I turn off all chunkservers Resources tab in MFSCGI gives following error:

Traceback (most recent call last):
File "/usr/share/mfscgi/mfs.cgi", line 6050, in
msperc = (1.0 * mscount) / scount
ZeroDivisionError: float division by zero

Can you reproduce it? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.

  1. Start mfsmaster
  2. Start mfscgi
  3. Start chunkserver
  4. Stop chunkserver

Include any warning/errors/backtraces from the system logs.

@struthio struthio changed the title [BUG] [BUG] ZeroDivisionError on MFSCGI Jan 13, 2021
@chogata
Copy link
Member

chogata commented Jan 19, 2021

Thank you for the report, we'll fix it :)

@borkd
Copy link
Collaborator

borkd commented Dec 5, 2021

I'm closing #459 as a duplicate, but it seems the problem persists with the latest HEAD

Culprit in https://github.com/moosefs/moosefs/blame/master/mfsscripts/mfscli.py.in#L6102

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

3 participants