Bug 56278 - appcenter/progress: ruamel.yaml.scanner.ScannerError: while scanning a simple key
appcenter/progress: ruamel.yaml.scanner.ScannerError: while scanning a simple...
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 5.0
Other Windows NT
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-06 18:20 CEST by Maximilian Janßen
Modified: 2023-07-06 18:20 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023032321000146
Bug group (optional): 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 Maximilian Janßen univentionstaff 2023-07-06 18:20:40 CEST
Version: 5.0-3 errata622

Remark: Neu gestarteter Managmend-Node / UCS 5.0.3 / aktuelles Patchlevel. Zuvor Neustart aller UCS-Systeme und Systemdiagnose ohne Fehler.

Error:
Interner Server-Fehler in "appcenter/progress".
Request: appcenter/progress

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 351, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/base.py", line 254, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY3%/univention/management/console/modules/decorators.py", line 327, in _response
    result = _multi_response(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 186, in _response
    return function(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 447, in _response
    return list(function(self, iterator, *nones))
  File "%PY3%/univention/management/console/modules/decorators.py", line 295, in _fake_func
    yield function(self, *args)
  File "%PY3%/univention/management/console/modules/mixins.py", line 160, in progress
    ret = progress_obj.poll()
  File "%PY3%/univention/management/console/modules/mixins.py", line 105, in poll
    six.reraise(*self.exc_info)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/modules/decorators.py", line 318, in _thread
    result = _multi_response(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 186, in _response
    return function(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 447, in _response
    return list(function(self, iterator, *nones))
  File "%PY3%/univention/management/console/modules/decorators.py", line 295, in _fake_func
    yield function(self, *args)
  File "%PY3%/univention/management/console/modules/appcenter/__init__.py", line 303, in run
    host_result[app.id] = self._run_local(app, action, _settings, auto_installed, progress)
  File "%PY3%/univention/management/console/modules/appcenter/__init__.py", line 350, in _run_local
    success = action.call(app=[app], username=self.username, password=self.password, **kwargs)
  File "%PY3%/univention/appcenter/actions/__init__.py", line 187, in call
    return obj.call_with_namespace(namespace)
  File "%PY3%/univention/appcenter/actions/__init__.py", line 194, in call_with_namespace
    result = self.main(namespace)
  File "%PY3%/univention/appcenter/actions/upgrade.py", line 88, in main
    return self.do_it(args)
  File "%PY3%/univention/appcenter/actions/install_base.py", line 171, in do_it
    success = self.do_it_once(app, args)
  File "%PY3%/univention/appcenter/actions/upgrade.py", line 92, in do_it_once
    return super(Upgrade, self).do_it_once(app, args)
  File "%PY3%/univention/appcenter/actions/install.py", line 210, in do_it_once
    return super(Install, self).do_it_once(app, args)
  File "%PY3%/univention/appcenter/actions/install_base.py", line 216, in do_it_once
    self._do_it(app, args)
  File "%PY3%/univention/appcenter/actions/docker_upgrade.py", line 118, in _do_it
    mode, detail = self._docker_upgrade_mode(app)
  File "%PY3%/univention/appcenter/actions/docker_upgrade.py", line 111, in _docker_upgrade_mode
    if self.old_app.get_docker_image_name() not in app.get_docker_images():
  File "%PY3%/univention/appcenter/app.py", line 1044, in get_docker_image_name
    content = yaml.load(ucr_run_filter(open(yml_file).read()), yaml.RoundTripLoader, preserve_quotes=True)
  File "%PY3%/ruamel/yaml/main.py", line 636, in load
    return loader._constructor.get_single_data()  # type: ignore
  File "%PY3%/ruamel/yaml/constructor.py", line 102, in get_single_data
    node = self.composer.get_single_node()
  File "%PY3%/ruamel/yaml/composer.py", line 75, in get_single_node
    document = self.compose_document()
  File "%PY3%/ruamel/yaml/composer.py", line 96, in compose_document
    node = self.compose_node(None, None)
  File "%PY3%/ruamel/yaml/composer.py", line 132, in compose_node
    node = self.compose_mapping_node(anchor)
  File "%PY3%/ruamel/yaml/composer.py", line 194, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "%PY3%/ruamel/yaml/composer.py", line 132, in compose_node
    node = self.compose_mapping_node(anchor)
  File "%PY3%/ruamel/yaml/composer.py", line 194, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "%PY3%/ruamel/yaml/composer.py", line 132, in compose_node
    node = self.compose_mapping_node(anchor)
  File "%PY3%/ruamel/yaml/composer.py", line 194, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "%PY3%/ruamel/yaml/composer.py", line 130, in compose_node
    node = self.compose_sequence_node(anchor)
  File "%PY3%/ruamel/yaml/composer.py", line 162, in compose_sequence_node
    while not self.parser.check_event(SequenceEndEvent):
  File "%PY3%/ruamel/yaml/parser.py", line 144, in check_event
    self.current_event = self.state()
  File "%PY3%/ruamel/yaml/parser.py", line 521, in parse_indentless_sequence_entry
    KeyToken, ValueToken, BlockEndToken):
  File "%PY3%/ruamel/yaml/scanner.py", line 1618, in check_token
    while self.need_more_tokens():
  File "%PY3%/ruamel/yaml/scanner.py", line 196, in need_more_tokens
    self.stale_possible_simple_keys()
  File "%PY3%/ruamel/yaml/scanner.py", line 345, in stale_possible_simple_keys
    "could not find expected ':'", self.reader.get_mark())
ruamel.yaml.scanner.ScannerError: while scanning a simple key
  in "<unicode string>", line 69, column 1:
    server1.intranet.foo.com,993,intranet.foo. ...
    ^ (line: 69)
could not find expected ':'
  in "<unicode string>", line 71, column 5:
        # add master-user/-pw from /etc/ ...
        ^ (line: 71)

Role: memberserver


Note: i replaced a domain with foo.com