Bug 37515 - NoSectionError: No section: 'Application'
NoSectionError: No section: 'Application'
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-4-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-12 11:10 CET by Florian Best
Modified: 2023-03-25 06:52 CET (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.309
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016110221000479, 2016111721000414, 2016120121000881, 2016120621000568, 2016120821000377, 2016120821000546, 2016121621000601, 2016122121000262, 2016122221000421, 2017010521000196, 2017032221000169, 2017032321000765, 2017032421000398, 2017032421000441, 20
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 2015-01-12 11:10:37 CET
Received Traceback, 4.0-0 errata10 (Walle)

Traceback:
Die Ausführung des Kommandos appcenter/query ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py",
line 176, in _decorated
    return function(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 316, in _response
    result = _multi_response(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 460, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 282, in _fake_func
    yield function(self, *args)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py",
line 102, in query
    applications = Application.all(force_reread=True)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py",
line 758, in all
    cls._all_applications.append(Application(ini_file, localize))
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py",
line 300, in __init__
    for k, v in config.items('Application'):
  File "/usr/lib/python2.7/ConfigParser.py", line 642, in items
    raise NoSectionError(section)
NoSectionError: No section: 'Application'
Comment 1 Florian Best univentionstaff 2015-03-30 07:42:13 CEST
Execution of command 'appcenter/invoke_dry_run' has failed:
Received this and the following traceback again (4.0-1 errata113 (Walle)).

Remark:
Unknown Error with Open-Xchange App Suite. I attempted to uninstall this error appeared.

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/modules/__init__.py", line 176, in _decorated
    return function(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 180, in invoke_dry_run
    self.invoke(request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 188, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 206, in invoke
    application = Application.find(application_id)
  File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 526, in find
    for application in cls.all():
  File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 761, in all
    cls._all_applications.append(Application(ini_file, localize))
  File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 303, in __init__
    for k, v in config.items('Application'):
  File "/usr/lib/python2.7/ConfigParser.py", line 642, in items
    raise NoSectionError(section)
NoSectionError: No section: 'Application'
Comment 2 Florian Best univentionstaff 2016-05-02 07:27:44 CEST
Reported again, 4.0-0 errata142 (Walle)
command was 'apps/get'.
Comment 3 Florian Best univentionstaff 2016-05-28 14:18:35 CEST
Maybe fixed by Bug #40874.
Comment 4 Dirk Wiesenthal univentionstaff 2016-05-29 20:10:02 CEST
This is not fixed yet, just a bit more unlikely to occur since we did some performance optimizations.

Due to these optimizations, the ini files are not parsed by the old code during the very first module call (appcenter/query). So the App Center should at least load.

But as soon as someone chooses to install any non-docker App and has such a malformed ini file, the traceback should return because then all ini files are parsed.

Bug #40874 improved error handling of ini files in the new code, so this does not help. In fact, the new code was never vulnerable to this special error. This ini file has been ignored by the new code since 4.1-0.

To fix this bug as DUPLICATE/WORKSFORME, one needs to fix Bug#40064.
Comment 5 Florian Best univentionstaff 2016-11-02 15:48:01 CET
Reported again, 4.1-3 errata234 (Vahr)
Comment 6 Florian Best univentionstaff 2016-11-02 15:49:26 CET
It affects also the System Setup process:

Execution of command 'setup/apps/query wizard' 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/setup/__init__.py", line 749, in apps_query
    return util.get_apps(True)
  File "%PY2.7%/univention/management/console/modules/setup/util.py", line 754, in get_apps
    applications = app_center.Application.all(only_local=True)
  File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 839, in all
    cls._all_applications.append(Application(ini_file, localize))
  File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 315, in __init__
    for k, v in config.items('Application'):
  File "/usr/lib/python2.7/ConfigParser.py", line 642, in items
    raise NoSectionError(section)
NoSectionError: No section: 'Application'
Comment 7 Florian Best univentionstaff 2016-11-17 17:32:42 CET
Reported again, 4.1-4 errata324 (Vahr)
Comment 8 Alexander Kläser univentionstaff 2016-12-09 10:39:11 CET
Reported again at the following tickets:
2016120121000881
2016120621000568
2016120821000377
2016120821000546

Remark: fresh virtual box import from ova - pff
Comment 9 Florian Best univentionstaff 2016-12-09 10:42:50 CET
I think we should at least add some code around the error and raise an exception with more details (aka. the whole INI file + filename) in that case, soon.
This but is reliably reproducible on our internal UCS 4.1-4 KVM templates and pops up immediately as system-setup-boot is started.
Comment 10 Alexander Kläser univentionstaff 2016-12-16 23:48:54 CET
*** Bug 40102 has been marked as a duplicate of this bug. ***
Comment 11 Alexander Kläser univentionstaff 2016-12-19 12:24:11 CET
Reported again at Ticket#2016112621000022.
Comment 12 Alexander Kläser univentionstaff 2016-12-19 12:26:00 CET
(In reply to Alexander Kläser from comment #11)
> Reported again at Ticket#2016112621000022.

Error, I meant Ticket#2016121621000601.
Comment 13 Florian Best univentionstaff 2017-01-02 17:24:01 CET
Reported again, 4.1-4 errata324 (Vahr)
Comment 14 Florian Best univentionstaff 2017-01-02 17:29:36 CET
Reported again, 4.1-3 errata239 (Vahr)
Comment 15 Florian Best univentionstaff 2017-01-05 13:33:19 CET
Reported again, 4.1-4 errata324 (Vahr)
Comment 16 Florian Best univentionstaff 2017-03-24 16:32:14 CET
Reported again, 4.1-4 errata324 (Vahr)
Reported again, 4.1-4 errata324 (Vahr)
Reported again, 4.1-4 errata324 (Vahr)
Comment 17 Florian Best univentionstaff 2017-03-28 11:37:32 CEST
Reported again, 4.1-4 errata324 (Vahr)

Ticket #2017032821000201
→ The maximum number of ticket is reached in the bugzilla Ticket field :/
Comment 18 Dirk Wiesenthal univentionstaff 2017-04-10 09:17:26 CEST
For all we know, this is a timing issue where the cache is not yet ready. The specific Traceback is handled in the new code. The fix is to not use old code "immediately" if at all. This has already been done in App Center and System Setup.

This should not be fixed in old code. One may want to rebuild 4.1 DVDs (and all Appliances?) so that System Setup is not affected.
Comment 19 Florian Best univentionstaff 2017-04-21 12:36:14 CEST
2017032921000183
Version: 4.1-4 errata324 (Vahr)
Comment 20 Florian Best univentionstaff 2017-04-21 15:05:10 CEST
Version: 4.1-4 errata324 (Vahr)
2017032521000234
Comment 21 Florian Best univentionstaff 2017-05-05 15:33:28 CEST
Maximum number of tickets reached.
Version: 4.1-4 errata324 (Vahr)
#2017050121000169
Comment 22 Felix Botner univentionstaff 2017-05-11 16:08:28 CEST
OK, as far as i understand, these errors come from the old u-system-setup (pre errata 388 Bug #40102) and not from the UMC AppCenter module.
Comment 23 Florian Best univentionstaff 2017-05-16 13:07:06 CEST
Version: 4.1-4 errata379 (Vahr)
#2017051221000522
Comment 24 Florian Best univentionstaff 2017-06-01 09:58:52 CEST
Reported again, 4.1-4 errata379 (Vahr)
#2017053121000273
Comment 25 Florian Best univentionstaff 2017-06-23 17:32:11 CEST
Reported again, 4.1-4 errata379 (Vahr)
#2017062321000634
Comment 26 Florian Best univentionstaff 2017-07-07 16:28:52 CEST
Reported again, 4.1-4 errata324 (Vahr)
2017070421000472
Comment 27 Florian Best univentionstaff 2017-08-15 09:20:18 CEST
Version: 4.1-3 errata239 (Vahr), #2017080421000685
Comment 28 Johannes Keiser univentionstaff 2017-12-11 17:40:08 CET
Reported again: Version: 4.0-0 errata10 (Walle), #2017120921000113