WSL: Missing /proc/vmstat breaks software included with default installation.

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)

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Reactions: 8
  • Comments: 19 (1 by maintainers)

Most upvoted comments

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.

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

@pedosb sudo pip3 install psutil fixes this issue

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

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

To help prioritize, is this blocking a specific scenario?

This is also causing problems for me we trying to run: https://github.com/ray-project/ray

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

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