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

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 08 Jun 2022 08:43:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264532

            Bug ID: 264532
           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
             Flags: maintainer-feedback?(krion@FreeBSD.org)
          Assignee: krion@FreeBSD.org

Host is running CURRENT (FreeBSD 14.0-CURRENT #10 master-n256043-ce2525c8108:
Wed Jun  8 10:07:29 CEST 2022 amd64), the jail in question is hosted on this
box and also running the very same OS basis.

A jail is operatin as salt-master and salt-master, based upon standard python
3.8, is failing to start with the error shown beelow. The incident happened a
couple of days ago and out of the blue.

Version of salstack:
py38-salt-3004.1_1             sysutils/py-salt

The hosts's vfs.bufspace: ist set to 

vfs.bufspace: 28229632

I have no idea whether this is an error/bug related to lang/python38 or
sysutils/py-salt, or soemthing to be adapted due to changes in the underlying
OS (CURRENT). I left the settings of the main OS to its default value so far
and hope someone could give a hint how to fix this.

Thanks,

oh

[...]
Starting salt_master.
Traceback (most recent call last):
  File "/usr/local/bin/salt-master", line 33, in <module>
    sys.exit(load_entry_point('salt==3004.1', 'console_scripts',
'salt-master')())
  File "/usr/local/lib/python3.8/site-packages/salt/scripts.py", line 79, in
salt_master
    import salt.cli.daemons
  File "/usr/local/lib/python3.8/site-packages/salt/cli/daemons.py", line 50,
in <module>
    import salt.utils.parsers
  File "/usr/local/lib/python3.8/site-packages/salt/utils/parsers.py", line 24,
in <module>
    import salt.config as 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'))
/usr/local/etc/rc.d/salt_master: WARNING: failed to start salt_master

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