-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ValueError: ambiguos inode with multiple PIDs references #572
Comments
do you think it would be safe to just remove these offending lines: https://github.com/giampaolo/psutil/blob/master/psutil/_pslinux.py#L449-454 |
note that when I manually comment out these lines https://github.com/giampaolo/psutil/blob/master/psutil/_pslinux.py#L449-454 it fixes my issue and everything then work as expected for me. |
What if you comment out those lines then run tests? |
It looks like tests still pass: https://travis-ci.org/giampaolo/psutil/builds/46975016 |
@giampaolo do you think #575 could be merged? |
Hey, sorry for the delay but I've been busy. Yes, I think that should be merged. I'd only ask to comment everything out (as opposed to remove those lines) then we can merge it. |
Ok, I've just updated the pull request as requested. |
Do you think you can now merge #575 so that the fix will be included in the next release? |
2.2.1 is out |
Thanks! |
* Bugs in python-psutil Need to upgrade to package from jessie-backports in order to address the following issues: giampaolo/psutil#522 giampaolo/psutil#572 * Race when checking for processes It seems that is possible to query for a process that no longer exists. Handle that situation by ignoring it. * Wrong message when no processes are matches Not a problem at all, but handle that situation by printing a different message, just to be clear. * Filter out qemu-system-x86_64 processes that do not have Ceph disks For some reason, it seems that QEMU maps librados and librbd libraries even when not using them (ie NFS, DRBD). Add a function that parses the cmdline of each QEMU process, looks for disk drives, and by looking at the path, tells if we should check that process or not. Only check VMs with rbd and tapdev (Archipelago) disks. Also, split out process filtering stuff to a separate function.
I get the following exception when I use the
psutil.net_connections(kind='tcp')
method:I've found that the #497 issue is similar, but I'm using psutil latest 2.2.0 version which should not be affected.
Anyway, #497 patch prevent to throw the exception when family is
socket.AF_UNIX
but in my case family issocket.AF_INET
, so the exception is raised. My question is why do you consider having multiple references to the same inode is abnormal?If this is actually abnormal I don't know why I reach this point... May be this is due to my code living in a docker container? I don't know. Any other idea?
The text was updated successfully, but these errors were encountered: