[Bug 264701] sysutils/py-salt: OSError: [Errno 12] Cannot allocate memory (originated from sysctlbyname('vfs.bufspace'))

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Jun 2022 05:25:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264701

            Bug ID: 264701
           Summary: sysutils/py-salt: OSError: [Errno 12] Cannot allocate
                    memory (originated from sysctlbyname('vfs.bufspace'))
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: krion@FreeBSD.org
          Reporter: ohartmann@walstatt.org
          Assignee: krion@FreeBSD.org
             Flags: maintainer-feedback?(krion@FreeBSD.org)

Main host is running FreeBSD 14.0-CURRENT #11 master-n256063-e50e40684aa: Fri
Jun 10 11:15:24 CEST 2022 amd64. sysutils/py-salt is hosted by a jail on that
specific host with the very same OS version. sysutils/py-salt is run with
standard flavour, so Python 3.8 is in effect.

Since a couple of days for now, I'm bugged by the following error preventing
saltstack to work:

[...]
# salt '*' pkg.upgrade
Traceback (most recent call last):
  File "/usr/local/bin/salt", line 33, in <module>
    sys.exit(load_entry_point('salt==3004.1', 'console_scripts', 'salt')())
  File "/usr/local/lib/python3.8/site-packages/salt/scripts.py", line 515, in
salt_main
    import salt.cli.salt
  File "/usr/local/lib/python3.8/site-packages/salt/cli/salt.py", line 6, in
<module>
    import salt.utils.job
  File "/usr/local/lib/python3.8/site-packages/salt/utils/job.py", line 8, in
<module>
    import salt.minion
  File "/usr/local/lib/python3.8/site-packages/salt/minion.py", line 21, in
<module>
    import salt.beacons
  File "/usr/local/lib/python3.8/site-packages/salt/beacons/__init__.py", line
10, in <module>
    import salt.loader
  File "/usr/local/lib/python3.8/site-packages/salt/loader/__init__.py", line
14, in <module>
    import salt.config
  File "/usr/local/lib/python3.8/site-packages/salt/config/__init__.py", line
101, in <module>
    _DFLT_IPC_WBUFFER = _gather_buffer_space() * 0.5
  File "/usr/local/lib/python3.8/site-packages/salt/config/__init__.py", line
85, in _gather_buffer_space
    total_mem = psutil.virtual_memory().total
  File "/usr/local/lib/python3.8/site-packages/psutil/__init__.py", line 1968,
in virtual_memory
    ret = _psplatform.virtual_memory()
  File "/usr/local/lib/python3.8/site-packages/psutil/_psbsd.py", line 181, in
virtual_memory
    mem = cext.virtual_mem()
OSError: [Errno 12] Cannot allocate memory (originated from
sysctlbyname('vfs.bufspace'))
[...]

and checking vfs.bufspace reveals nothing abnormal

root@saltstack:/usr/local/etc/salt # sysctl vfs.bufspace
vfs.bufspace: 1626828800

-- 
You are receiving this mail because:
You are the assignee for the bug.