Bug 42784 - AppCenter: OSError: [Errno 12] Cannot allocate memory
AppCenter: OSError: [Errno 12] Cannot allocate memory
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks: 48554
  Show dependency treegraph
 
Reported: 2016-10-28 12:18 CEST by Florian Best
Modified: 2021-06-21 13:28 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.103
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018102421000417, 2018102521000121, 2018030921000889, 2016102821000173, 2017020921000016, 2017030821000089, 2017030721000072, 2017072321000356, 2017081721000491, 2019082621000971, 2021061521000445
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-10-28 12:18:28 CEST
Version: 4.1-3 errata318 (Vahr)

Execution of command 'appcenter/query' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 283, 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/appcenter/__init__.py", line 189, in query
    if not self._test_for_docker_service():
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 206, in _test_for_docker_service
    if not docker_is_running():
  File "%PY2.7%/univention/appcenter/utils.py", line 94, in docker_is_running
    return call_process(['invoke-rc.d', 'docker', 'status']).returncode == 0
  File "%PY2.7%/univention/appcenter/utils.py", line 166, in call_process
    process = Popen(args, stdout=PIPE, stderr=PIPE, bufsize=1, close_fds=True, env=env)
  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] No se pudo asignar memoria

OSError: [Errno 12] Cannot allocate memory
Comment 1 Florian Best univentionstaff 2017-04-21 14:36:18 CEST
Version: 4.1-4 errata389 (Vahr)
Execution of command 'appcenter/query' 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/appcenter/__init__.py", line 189, in query
    self.update_applications()
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 216, in update_applications
    update.call_safe()
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 177, in call_safe
    return cls.call(**kwargs)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 185, in call
    return obj.call_with_namespace(namespace)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 191, in call_with_namespace
    result = self.main(namespace)
  File "%PY2.7%/univention/appcenter/actions/update.py", line 79, in main
    json_apps = self._load_index_json()
  File "%PY2.7%/univention/appcenter/actions/update.py", line 347, in _load_index_json
    (rc, gpg_error) = gpg_verify(index_json_gz_filename, detached_sig_path)
  File "%PY2.7%/univention/appcenter/utils.py", line 381, in gpg_verify
    p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)
  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
Comment 2 Florian Best univentionstaff 2017-04-21 14:42:20 CEST
Version: 4.1-4 errata406 (Vahr)

Traceback(d96d0c2a9f96a0607a471c57b694b9c8):
Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/protocol/modserver.py", line 271, in handle
    self.__handler.init()
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 153, in init
    self.uu = UniventionUpdater(False)
  File "%PY2.7%/univention/updater/tools.py", line 578, in __init__
    self.architectures = [os.popen('dpkg --print-architecture 2>/dev/null').readline()[:-1]]
OSError: [Errno 12] Cannot allocate memory
Comment 3 Florian Best univentionstaff 2017-07-26 15:10:33 CEST
Reported again, 4.2-1 errata99 (Lesum)

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 249, in execute
    function.__func__(self, request, *args, **kwargs)
  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 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 196, in query
    if not self._test_for_docker_service():
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 231, in _test_for_docker_service
    if not docker_is_running():
  File "%PY2.7%/univention/appcenter/utils.py", line 118, in docker_is_running
    return call_process(['invoke-rc.d', 'docker', 'status']).returncode == 0
  File "%PY2.7%/univention/appcenter/utils.py", line 221, in call_process
    process = Popen(args, stdout=PIPE, stderr=PIPE, bufsize=1, close_fds=True, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1231, in _execute_child
    self.pid = os.fork()
OSError: [Errno 12] Nicht genügend Hauptspeicher verfügbar
Comment 4 Florian Best univentionstaff 2017-08-21 11:11:15 CEST
Reported again, 4.2-1 errata131 (Lesum)
Comment 5 Johannes Keiser univentionstaff 2018-08-01 15:28:42 CEST
External feedback:
UCS Version: 4.2-3 errata311 (Lesum)

Interner Server-Fehler in "appcenter/query". 
Request: appcenter/query

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 197, in query
    if not self._test_for_docker_service():
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 232, in _test_for_docker_service
    if not docker_is_running():
  File "/usr/lib/pymodules/python2.7/univention/appcenter/utils.py", line 118, in docker_is_running
    return call_process(['invoke-rc.d', 'docker', 'status']).returncode == 0
  File "/usr/lib/pymodules/python2.7/univention/appcenter/utils.py", line 223, in call_process
    process = Popen(args, stdout=PIPE, stderr=PIPE, bufsize=1, close_fds=True, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1231, in _execute_child
    self.pid = os.fork()
OSError: [Errno 12] Nicht genügend Hauptspeicher verfügbar
Comment 6 Johannes Keiser univentionstaff 2018-10-26 17:02:45 CEST
Reported again:  Version: 4.3-2 errata291 (Neustadt)

Internal server error during "appcenter/components/query".
Request: appcenter/components/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  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 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 1020, in components_query
    self.get_updater().ucr_reinit()
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 182, in get_updater
    self._uu = UniventionUpdater(False)
  File "%PY2.7%/univention/updater/tools.py", line 721, in __init__
    self.architectures = [os.popen('dpkg --print-architecture 2>/dev/null').readline()[:-1]]
OSError: [Errno 12] Cannot allocate memory

Role: domaincontroller_master
Comment 7 Johannes Keiser univentionstaff 2018-10-26 17:11:19 CEST
Reported again: Version: 4.3-2 errata287 (Neustadt)

Internal server error during "appcenter/query".
Request: appcenter/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  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 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 212, in query
    if not self._test_for_docker_service():
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 246, in _test_for_docker_service
    if not docker_is_running():
  File "%PY2.7%/univention/appcenter/utils.py", line 118, in docker_is_running
    return call_process(['invoke-rc.d', 'docker', 'status']).returncode == 0
  File "%PY2.7%/univention/appcenter/utils.py", line 226, in call_process
    process = Popen(args, stdout=PIPE, stderr=PIPE, bufsize=1, close_fds=True, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 916, in _execute_child
    self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory

Role: domaincontroller_master
Comment 8 Stefan Gohmann univentionstaff 2019-01-03 07:21:05 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Comment 9 Christian Castens univentionstaff 2020-08-19 13:29:34 CEST
reported again:

Version: 4.4-1 errata241 (Blumenthal)

Traceback(469ffe32b8c9b6fca03962901400e8ba):
Interner Server-Fehler in "appcenter/components/query".
Request: appcenter/components/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 260, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 1041, in components_query
    self.get_updater().ucr_reinit()
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 182, in get_updater
    self._uu = UniventionUpdater(False)
  File "%PY2.7%/univention/updater/tools.py", line 838, in __init__
    self.architectures = [os.popen('dpkg --print-architecture 2>/dev/null').readline()[:-1]]
OSError: [Errno 12] Nicht genügend Hauptspeicher verfügbar

Role: domaincontroller_master
Comment 10 Christian Castens univentionstaff 2021-06-21 13:28:28 CEST
Version: 4.4-8 errata992 (Blumenthal)

Error:
Internal server error during "appcenter/components/query".
Request: appcenter/components/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 1095, in components_query
    self.get_updater().ucr_reinit()
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 183, in get_updater
    self._uu = UniventionUpdater(False)
  File "%PY2.7%/univention/updater/tools.py", line 901, in __init__
    self.architectures = [os.popen('dpkg --print-architecture 2>/dev/null').readline()[:-1]]
OSError: [Errno 12] Cannot allocate memory

Role: domaincontroller_master