-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
PermissionError/OSError when starting glances #885
Comments
I think that the bug should be reported to the PsUtil community. Nevertheless, i just code a work around on the DEVELOP branch. I don't know if you can test it on your system... (i do not use Anaconda). Or you can try to patch the /groups/dudman/home/kirkhamj/miniconda/envs/nanshenv3/lib/python3.5/site-packages/glances/plugins/glances_network.py file by changing the except line:
|
Happy to try any proposed fixes. Also, if this needs to be referred upstream, happy to do that as well. Though I'm not exactly sure what we want to ask to have changed at this point. |
@jakirkham just open an issue on the PsUtil Github and copy/paste the result of the following command line on your system:
Also add a link to the current Glances issue. Thanks ! |
Sorry running into some issues with things not getting update correctly in the GitHub interface. |
So, I had initially discussed this in there issue tracker before raising it here. This amounted to opening this issue ( giampaolo/psutil#860 ), which is the same problem, but the request is different. From the linked discussion in that issue, I gathered that this particular option needs If this is an issue where it does resolve to needing to run |
The patch 2b87295 will hide the error message and disable the function if Glances is not used with sudo. It is strange because, i do not have any issue on my test bed (Redhat and CentOS OS). |
So, you are using Docker to test, correct? Are you |
Nope, i do not use Docker to test Glances. |
Sorry, I thought I saw a reference to Docker in the snippet above. |
When trying to start up
glances
, it crashes due to aPermissionError
orOSError
(on Python 2.x). Traceback is shown below. I have tried a few different versions ofglances
andpsutil
. If I revert back topsutil
version2.2.1
, the issue goes away. Though my guess is that is only because this code path is not present there. It is probably possible to get around this issue by running withsudo
. However, that is really not an option for the machine I'm trying to use this on. I usedconda
to install these fromconda-forge
. So, it should be reproducible that way.The text was updated successfully, but these errors were encountered: