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

AttributeError: 'NoneType' object has no attribute 'text' #62

Closed
thetuxinator opened this issue Jan 5, 2022 · 8 comments
Closed

AttributeError: 'NoneType' object has no attribute 'text' #62

thetuxinator opened this issue Jan 5, 2022 · 8 comments

Comments

@thetuxinator
Copy link

Hi, no matter what i do, either using source or binary version, always getting this error:

sudo gstatus -v
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/glustercli/cli/parsers.py", line 218, in parse_volume_info
volumes.append(_parse_a_vol(volume_el))
File "/usr/local/lib/python3.8/dist-packages/glustercli/cli/parsers.py", line 137, in _parse_a_vol
'stripe': int(volume_el.find('stripeCount').text),
AttributeError: 'NoneType' object has no attribute 'text'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/gstatus", line 11, in
load_entry_point('gstatus==1.0.6', 'console_scripts', 'gstatus')()
File "/usr/local/lib/python3.8/dist-packages/gstatus-1.0.6-py3.8.egg/gstatus/main.py", line 73, in main
File "/usr/local/lib/python3.8/dist-packages/gstatus-1.0.6-py3.8.egg/gstatus/glusterlib/cluster.py", line 37, in gather_data
File "/usr/local/lib/python3.8/dist-packages/glustercli/cli/volume.py", line 188, in status_detail
info(volname),
File "/usr/local/lib/python3.8/dist-packages/glustercli/cli/volume.py", line 152, in info
return parse_volume_info(volume_execute_xml(cmd),
File "/usr/local/lib/python3.8/dist-packages/glustercli/cli/parsers.py", line 220, in parse_volume_info
raise GlusterCmdOutputParseError(err)
glustercli.cli.parsers.GlusterCmdOutputParseError: 'NoneType' object has no attribute 'text'

@thetuxinator
Copy link
Author

thetuxinator commented Jan 5, 2022

Ok, i understand thats actually a glustercli error and not a gstatus error

@madmax01
Copy link

i have same issue here as well.

with below Gluster 10.x i had this Error once a Brick was down,....... but with Version 10.x i have this Error the whole Time. Even with everything is healthy... maybe the gstatus need an update to support newer Versions as well...

Hoping will be a fix?

@aravindavk
Copy link
Member

Made a new release of glustercli(0.8.1). Please try installing the gstatus now. https://github.com/gluster/gstatus#installating-from-source

For single file installation, new release of gstatus required.

@thetuxinator
Copy link
Author

If i remember i fixed it by disabling stripe, see https://github.com/thetuxinator/glustercli-python however not sure as that was some time ago

@aravindavk
Copy link
Member

If i remember i fixed it by disabling stripe, see https://github.com/thetuxinator/glustercli-python however not sure as that was some time ago

New release was not available after your fix to the repo gluster/glustercli-python#51

@thetuxinator
Copy link
Author

If i remember i fixed it by disabling stripe, see https://github.com/thetuxinator/glustercli-python however not sure as that was some time ago

New release was not available after your fix to the repo gluster/glustercli-python#51

Missed that :D ok thx

@madmax01
Copy link

i installed curl -LO https://github.com/gluster/gstatus/releases/download/v1.0.7/gstatus

and with gluster 10.1 i see it working again. no Errors so far....

very nice guys ;)....... thx

@sac
Copy link
Member

sac commented Feb 16, 2022 via email

@sac sac closed this as completed Mar 17, 2022
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

4 participants