Univention Bugzilla – Bug 46341
App Center 4.3 - apt-get error handling
Last modified: 2018-03-14 14:38:07 CET
we have to decide whether install/upgrade/remove apt-get errors just print a generic error message or if we want a more detailed error (std err of apt-get) and 20_appcenter.79_umc_broken_failure_error_exit_code.test has to modified accordingly
Fixed it in ucs-test. The problem was that an earlier test did not clean up its repository. But the local App Center was removed, so we got 404 and apt-get update returned with non-zero. This is a consequence of aborting when the uninstallation of an App fails. I still think it is fine.
Whoops, this was the wrong test... But it seems fixed anyway :)
In UMC is see only Bestätigung Ein Fehler ist aufgetreten: Failed to install the App at least a reference to the appcenter.log would be nice.
Fixed in univention-appcenter 7.0.1-22A~4.3.0.201803011043 Would be complicated to fix it in the backend as the error handling there is quite exhaustive and does not let us change the message for UMC. (For the CLI, this sentence does not make much sense. While appcenter.log contains the information, so does the output on the terminal) So I added the hint in JS. In some cases (more than one error), this might not look too beautiful, but this should not happen often and even then it should be okay-ish. In the same JS function there is a case where we point to umc-appcenter.log. I did not change it because a DC Backup may not be at 4.3 at the time. Also, umc-appcenter.log should contain enough information, too. No test should need modifications AFAICS.
(In reply to Dirk Wiesenthal from comment #4) > Fixed in > univention-appcenter 7.0.1-22A~4.3.0.201803011043 > > Would be complicated to fix it in the backend as the error handling there is > quite exhaustive and does not let us change the message for UMC. > (For the CLI, this sentence does not make much sense. While appcenter.log > contains the information, so does the output on the terminal) > > So I added the hint in JS. In some cases (more than one error), this might > not look too beautiful, but this should not happen often and even then it > should be okay-ish. In the same JS function there is a case where we point > to umc-appcenter.log. I did not change it because a DC Backup may not be at > 4.3 at the time. Also, umc-appcenter.log should contain enough information, > too. > > No test should need modifications AFAICS. ok
UCS 4.3 has been released: https://docs.software-univention.de/release-notes-4.3-0-en.html https://docs.software-univention.de/release-notes-4.3-0-de.html If this error occurs again, please use "Clone This Bug".