Skip to content

Missing /proc/vmstat breaks software included with default installation. #1071

Closed

Description

@sprink

Missing /proc/vmstat breaks programs like vmstat, which ship by default with the current installer.

Windows 10 Home version 1607 build 14393.105

To reproduce, run the command vmstat
You will see errors about /proc not being mounted.

strace vmstat will reveal that /proc/vmstat was not found.

open("/proc/vmstat", O_RDONLY) = -1 ENOENT (No such file or directory)

Activity

  1. russalex commented on Sep 12, 2016

    @russalex
    Contributor

    Thank you for filing this. I have filed this one as a bug.

    To help prioritize, is this blocking a specific scenario?

  2. sprink commented on Sep 13, 2016

    @sprink
    Author

    This is not blocking anything for me. Discovered while troubleshooting an unrelated issue.

  3. phdyang007 commented on Sep 20, 2016

    @phdyang007

    I also encountered this problem, and my dropbox could not work prompting missing /proc/vmstat

  4. bratsos commented on Sep 23, 2016

    @bratsos

    Same error ( [Errno 2] No such file or directory: '/proc/vmstat' ) occurs after EasyEngine (@EasyEngine) 's installation.

  5. JoseLauro182 commented on Nov 3, 2016

    @JoseLauro182

    Will umask help fix the [Errno 2] No such file or directory: '/proc/vmstat' error? I don't understand the reference.

  6. fantore commented on Nov 3, 2016

    @fantore

    Same issue after upgrading to WSL 16.04 Xenial support

    This happens just after installing dropbox, daemon can not start. This is the generated log tail messages.

    File "dropbox/event.py", line 244, in start
    File "psutil/init.py", line 1626, in swap_memory
    File "psutil/_pslinux.py", line 195, in swap_memory
    IOError: [Errno 2] No such file or directory: '/proc/vmstat'

  7. WizardCM commented on Jan 10, 2017

    @WizardCM

    Just to add to the list, Glances also fails to load due to lack of vmstat (log below).

    /usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py:344: RuntimeWarning: 'sin' and 'sout' swap memory stats couldn't be determined and were set to 0 ([Errno 2] No such file or directory: '/proc/vmstat')
      warnings.warn(msg, RuntimeWarning)
    Traceback (most recent call last):
      File "/usr/local/bin/glances", line 9, in <module>
        load_entry_point('Glances==2.6.2', 'console_scripts', 'glances')()
      File "/usr/local/lib/python2.7/dist-packages/glances/__init__.py", line 130, in main
        args=core.get_args())
      File "/usr/local/lib/python2.7/dist-packages/glances/standalone.py", line 67, in __init__
        self.stats.update()
      File "/usr/local/lib/python2.7/dist-packages/glances/stats.py", line 154, in update
        self._plugins[p].update()
      File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_plugin.py", line 658, in wrapper
        ret = fct(*args, **kw)
      File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_fs.py", line 103, in update
        fs_stat = psutil.disk_partitions(all=False)
      File "/usr/local/lib/python2.7/dist-packages/psutil/__init__.py", line 1801, in disk_partitions
        return _psplatform.disk_partitions(all)
      File "/usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py", line 899, in disk_partitions
        fstype = line.split("\t")[1]
    IndexError: list index out of range
    
  8. robwilde commented on Feb 17, 2017

    @robwilde

    is there any progress on this issue?

    I utilise the EasyEngine.io suite for WordPress development and if I could run this in WSL, WOW that would make a massive difference to my production work and quite possibly a lot of Web Developers who work on windows machines.
    The install process makes it all the way to the end and returns error. Here are the last few lines

    Installed /usr/local/lib/python3.4/dist-packages/cement-2.4.0-py3.4.egg
    Searching for python-apt==0.9.3.5ubuntu2
    Best match: python-apt 0.9.3.5ubuntu2
    Adding python-apt 0.9.3.5ubuntu2 to easy-install.pth file
    Using /usr/lib/python3/dist-packages
    Finished processing dependencies for ee==3.7.4
    [Errno 2] No such file or directory: '/proc/vmstat'

    really hoping to find a way around this or getting some info as to what is causing this issue.

  9. pedosb commented on Dec 4, 2018

    @pedosb
  10. ThibzR commented on May 28, 2019

    @ThibzR

    Pedro Batista (@pedosb) sudo pip3 install psutil fixes this issue

  11. shaunlahert commented on Sep 14, 2019

    @shaunlahert

    Pedro Batista (@pedosb) sudo pip3 install psutil fixes this issue

    This did not solve the issue for me, still same error...

    edit* I realise now my issue is that the dropbox app comes with its own psutil library and upgrading mine obviously isn't fixing the issue...

  12. mwilcox12015 commented on Oct 11, 2019

    @mwilcox12015

    re: sudo pip3 install psutil fixes this issue
    Why is pip3 being used to install psutil ? Is psutil installed on Windows or in Ubuntu ?
    As a Mac user, can't we use an equivalent to brew ? or use yum ?

  13. ColOfAbRiX commented on Oct 29, 2019

    @ColOfAbRiX

    Things are not working. No psutils for python 3

    root@host:~# pip3 install psutils
    ERROR: Could not find a version that satisfies the requirement psutils (from versions: none)
    ERROR: No matching distribution found for psutils
    
    root@host:~# uname -a
    Linux host 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
    
  14. dickymoore commented on Jan 14, 2020

    @dickymoore

    Pedro Batista (@pedosb) sudo pip3 install psutil fixes this issue

    Unfortunately this doesn't work for tools like dropbox, which uses its own version of psutil.

    Does anyone know another workaround? Can we fake a '/proc/vmstat'?

  15. therealkenc commented on Apr 23, 2020

    @therealkenc

    image

  16. wolf99 commented on Aug 28, 2020

    @wolf99

    Another "fixed-in-wsl2" 😞 This is not a solution for those of us held back or for which the 2004 update of Windows still hasn't rolled out to.

  17. WizardCM commented on Aug 28, 2020

    @WizardCM
  18. wolf99 commented on Aug 31, 2020

    @wolf99

    Thanks Matt Gajownik (@WizardCM) I had forgotten about that. It helps with my own machine, but unfortunately my work machine is held back on 1809 on a supposed "evergreen" program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions