Univention Bugzilla – Bug 42031
system-activation: Search for license returns motd, communication with license server fails
Last modified: 2016-09-29 17:31:26 CEST
Created attachment 7895 [details] response to GET /license univention-system-activation tries to load the license in order to send it to the license server: out = subprocess.check_output(['/usr/bin/sudo', '/usr/bin/univention-ldapsearch', '-LLL', 'objectClass=univentionLicense']) Apparently 'out' sometimes(?) also contains the output of the motd, presumably due to the sudo call. The http response to GET /license looks as in the attachment. The license server then rejects the license request.
AFAIS, the message of the day will be printed when sudoing due to univention-system-setup-boot being installed. I can reproduce the issue if I install u-s-s-boot and type: sudo /usr/bin/univention-ldapsearch -LLL objectClass=univentionLicense I would vote for removing anything between the "/#+/"-lines, e.g. (but then with an equivalent in python): sudo ... | sed '/^#\+$/,/^#\+$/d; /^\s*$/d' This seems to be the quickest solution.
There already is a UCRv to deactivate this behaviour in setup-join.sh, but it was not set for the fast demo mode. Fixed in r71752 univention-system-setup 9.0.4-36 r71755 yaml r71756 Merge to 4.2 Test the sudo call with ucr set system/setup/showloginmessage=false vs. true
Changes: OK, loginmessage is set to false and it fixes the described problem. Merge to 4.1-2: OK YAML file: OK, I adjusted the description to be more user friendly [r71857]
<http://errata.software-univention.de/ucs/4.1/238.html>