Univention Bugzilla – Bug 45206
System setup crashes with OSError: [Errno 12] Cannot allocate memory
Last modified: 2020-08-12 09:25:40 CEST
Version: 4.1-4 errata360 (Vahr) Execution of command 'setup/keymap/save wizard' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 281, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 165, in save_keymap subprocess.call(['/usr/bin/setxkbmap', '-display', ':0', '-layout', layout]) File "/usr/lib/python2.7/subprocess.py", line 493, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1153, in _execute_child self.pid = os.fork() OSError: [Errno 12] Cannot allocate memory Version: 4.1-4 errata360 (Vahr) Execution of command 'setup/net/apply wizard' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 281, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 645, in net_apply util.run_networkscrips() File "%PY2.7%/univention/management/console/modules/setup/util.py", line 295, in run_networkscrips subprocess.call(CMD_DISABLE_EXEC, stdout=f, stderr=f) File "/usr/lib/python2.7/subprocess.py", line 493, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1153, in _execute_child self.pid = os.fork() OSError: [Errno 12] Cannot allocate memory
*** Bug 46660 has been marked as a duplicate of this bug. ***
*** Bug 42684 has been marked as a duplicate of this bug. ***
The required memory for UCS was previously 512MiB. When I tried installing a domain controller master with all components with 512MiB memory (and 512MiB swap) the oom killer killed firefox during the installation (see Bug #42684 ). When running the same installation with 1024MiB memory (and 1024MiB swap) I did not encounter any problems. Thus I raised the requirement to 1024MiB. Please reopen this bug, if you encounter any problems using 1024MiB of memory. univention-system-setup (11.0.5-17) 43b8e4899988 | Bug #45206: Merge branch 'rulmer/45206' into 4.3-1 80b87eb6ebc6 | Bug #45206: Raise required RAM to 1GiB 8b0802d6ce16 | Bug #45206: Raise recommended memory in system setup 10699bb11e63 | Bug #45206: Update required RAM in the manual univention-system-setup.yaml ea86b3011ce5 | Bug #45206: Update yaml file
The addition of 10% 'margin' on top of the reported available memory is a bit hacky, but works with our current memory range of about 1GiB. With more RAM available, these 10% will be quite large, and the kernel will probably not consume such amounts of it. But its ok for now. OK: Works with 1024MiB, warning shows with 900MiB OK: Can still continue and override warning OK: yaml Verified
<http://errata.software-univention.de/ucs/4.3/214.html>