Hi,
for the last days I’ve been trying to upload multiple .deb files to the app center with the CLI tool.
Files are uploaded one after another through a little script.
Unfortunately all attempts fail sooner or later during like this:
Executing upload: univention-appcenter-control upload 4.3/opsi=4.1.1.9-7 /tmp/ucs-app-center-deploy/ucs_4.3/opsi_41/testing/winexe_4.8.0.0-19_amd64.deb
Curling https://provider-portal.software-univention.de/univention/auth
Curling https://provider-portal.software-univention.de/univention/command/appcenter-selfservice/api
Curling https://provider-portal.software-univention.de/univention/command/appcenter-selfservice/query
Unrecoverable result: {u'status': 510, u'message': u'', u'traceback': None, u'location': u'https://provider-portal.software-univention.de/univention/command'}
Sometimes it is another error like this:
Unrecoverable result: {u'status': 591, u'message': u'Internal server error during "appcenter-selfservice/upload".', u'traceback': u'Internal server error during "appcenter-selfservice/upload".\nRequest: appcenter-selfservice/upload\n\nTraceback (most recent call last):\n File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 260, in execute\n function.__func__(self, request, *args, **kwargs)\n File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 609, in _response\n return function(self, request)\n File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter-selfservice/__init__.py", line 552, in upload\n self._run_appcenter_action(\'selfservice-add-file\', app=app, files=files, force=force, clear_packages=clear)\n File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter-selfservice/__init__.py", line 336, in _run_appcenter_action\n return action.call(**kwargs)\n File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 220, in call\n return obj.call_with_namespace(namespace)\n File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace\n result = self.main(namespace)\n File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/selfservice.py", line 639, in main\n SelfservicePackages.call(app=app, add=packages, force=args.force, clear=args.clear_packages)\n File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 220, in call\n return obj.call_with_namespace(namespace)\n File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace\n result = self.main(namespace)\n File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/selfservice.py", line 465, in main\n populate_args = populate._build_namespace(packages=args.add, do_not_delete_duplicates=not args.clear)\n File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 194, in _build_namespace\n self.setup_parser(parser)\n File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/local_appcenter.py", line 360, in setup_parser\n arch = subprocess.check_output([\'uname\', \'-m\']).strip()\n File "/usr/lib/python2.7/subprocess.py", line 212, in check_output\n process = Popen(stdout=PIPE, *popenargs, **kwargs)\n File "/usr/lib/python2.7/subprocess.py", line 390, in __init__\n errread, errwrite)\n File "/usr/lib/python2.7/subprocess.py", line 916, in _execute_child\n self.pid = os.fork()\nOSError: [Errno 12] Cannot allocate memory', u'location': u'https://provider-portal.software-univention.de/univention/upload'}
What can be done to make the uploads work?