Univention Bugzilla – Bug 49623
Traceback during App copy
Last modified: 2021-05-14 16:44:02 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".
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.
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.
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".
Issue reported again in feedback ticket 2021032521000333