Bug 49623 - Traceback during App copy
Traceback during App copy
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center - Self Service
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-06-07 16:16 CEST by Nico Gulden
Modified: 2021-05-14 16:44 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.143
Enterprise Customer affected?:
School Customer affected?:
ISV affected?: Yes
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021011521000472, 2019042921000481
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 Nico Gulden univentionstaff 2019-06-07 16:16:55 CEST
the issue appeared as I tried to create a new version for sep-sesam,
copying 4.4.3-64.1 to 4.4.3-64.2.

Please take a second to provide the following information:

1) steps to reproduce the failure
2) expected result
3) actual result

----------
UCS Version: 4.3-4 errata481 (Neustadt)

Internal server error during "appcenter-selfservice/copy".
OSError: [Errno 17] File exists:
'/var/lib/univention-appcenter-selfservice/appcenter/univention-repository/4.3/maintained/component/sep-sesam_20190114151532'
    mkdir(name, mode)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    os.makedirs(dst)
  File "/usr/lib/python2.7/shutil.py", line 177, in copytree
    shutil.copytree(args.app.get_repo_dir(), new_app.get_repo_dir(),
ignore=shutil.ignore_patterns('.svn'))
  File
"/usr/lib/pymodules/python2.7/univention/appcenter/actions/selfservice.py",
line 269, in main
    result = self.main(namespace)
  File
"/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py",
line 226, in call_with_namespace
    return obj.call_with_namespace(namespace)
  File
"/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py",
line 220, in call
    return action.call(**kwargs)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter-selfservice/__init__.py",
line 316, in _run_appcenter_action
    new_app = self._run_appcenter_action('selfservice-copy', app=app,
new_app=[None, new_app_version, new_ucs_version, None],
new_component=new_component)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter-selfservice/__init__.py",
line 445, in copy
    yield function(self, *args)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 286, in _fake_func
    return list(function(self, iterator, *nones))
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 440, in _response
    return function(self, request)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 192, in _response
    result = _multi_response(self, request)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 318, in _response
    return function(self, request)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 192, in _response
    function.__func__(self, request, *args, **kwargs)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/base.py",
line 253, in execute
Traceback (most recent call last):

Request: appcenter-selfservice/copy
Internal server error during "appcenter-selfservice/copy".
Comment 1 Dirk Wiesenthal univentionstaff 2019-06-07 16:39:03 CEST
You tried to copy an App version in 4.4 to 4.3. In 4.3, the repository id already exists, hence the traceback.

We should add a better error message, but the actual "fix" is to copy it to 4.4.
Comment 2 Nico Gulden univentionstaff 2019-06-11 14:50:18 CEST
This was a feedback from an app provider.

Where do you see in the traceback that the new version was a copy from an app in UCS 4.4 and should be copied to UCS 4.3?

I see the app version 4.4.3-64.1 that should be copied. The traceback happened on UCS 4.3, which is the current version of the app provider portal server.
Comment 3 Riya Bhattacharjee univentionstaff 2021-01-19 13:48:41 CET
UCS Version: 4.4-7 errata868 (Blumenthal )

Internal server error in" appcenter-selfservice / copy ".
Request: appcenter-selfservice / copy

Traceback (most recent call last):
  file" /usr/lib/python2.7/ dist-packages / univention / management / console / base.py ", line 359, in __error_handling
    six.reraise (etype, exc, etraceback)
  File " /usr/lib/python2.7/dist-packages/univention/management/console/base.py ", line 262, in execute
    function .__ func __ (self, request, * args, ** kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 181, in _response
    return function (self, request)
  file" /usr/lib/python2.7/dist-packages/univention/management/console/modules/ decorators.py ", line 321, in _response
    result = _multi_response (self, request)
  file" /usr/lib/python2.7/dist-packages /univention/management/console/modules/decorators.py ", line 181, in _response
    return function (self, request)
  File "/ usr /lib/python2.7/dist-packages/univention/management/console/modules/decorators.py ", line 443, in _response
    return list (function (self, iterator, * nones))
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function (self, * args)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/appcenter-selfservice/__init__.py", line 472 , in copy
    new_app = self._run_appcenter_action ('selfservice-copy', app = app, new_app = [None, new_app_version, new_ucs_version, None], new_component = new_component)
  File "/ usr / lib / python2.7 / dist-packages / univention / management / console / modules / appcenter-selfservice / __ init__.py ", line 331, in _run_appcenter_action
    return action.call (** kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace (namespace)
  file "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 226,in call_with_namespace
    result = self.main (namespace)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/selfservice.py", line 271, in main
    shutil.copytree (args.app .get_repo_dir (), new_app.get_repo_dir (), ignore = shutil.ignore_patterns ('. svn'))
  file" /usr/lib/python2.7/shutil.py ", line 177, in copytree
    os.makedirs (dst)
  File "/ usr / lib / python2.7 / os.py ", line 157, in makedirs
    (name, mode)
'/var/lib/univention-appcenter-selfservice/appcenter/univention-repository/4.3/maintained/component/benno-mailarchiv_20200820181214' mkdir
OSError: [Errno 17] The file already exists:
Internal server error in "appcenter-selfservice / copy".
Comment 4 Riya Bhattacharjee univentionstaff 2021-04-08 14:48:33 CEST
Issue reported again in feedback ticket 2021032521000333