Univention Bugzilla – Bug 48807
broken pipe error in UDM CLI when stdout is closed
Last modified: 2023-03-25 06:55:11 CET
+++ This bug was initially created as a clone of Bug #48734 +++ Happened on a UCS@school 4.4 edu DC slave during initial join: Configure 63ucs-school-portal-entry.inst Wed Feb 20 20:25:18 CET 2019 2019-02-20 20:25:18.648862587+01:00 (in joinscript_init) Object created: cn=school-edu,cn=portal,cn=univention,dc=nstx,dc=local Object modified: cn=slave176,cn=dc,cn=server,cn=computers,ou=gsmitte,dc=nstx,dc=local Traceback (most recent call last): File "/usr/sbin/udm", line 201, in <module> main() File "/usr/sbin/udm", line 196, in main result = process_output(output, cmdfile) File "/usr/sbin/udm", line 152, in process_output print line IOError: [Errno 32] Broken pipe WARNING: cannot append ['de_DE', 'UCS@school'] to displayName, value exists WARNING: cannot append ['en_US', 'UCS@school'] to displayName, value exists WARNING: cannot append ['fr_FR', 'UCS@school'] to displayName, value exists WARNING: cannot append ['de_DE', 'UCS@school Module in der Univention Management Console'] to description, value exists WARNING: cannot append ['en_US', 'UCS@school modules in the Univention Management Console'] to description, value exists WARNING: cannot append ['fr_FR', 'Modules UCS@school dans Univention Management'] to description, value exists Object modified: cn=teacherconsole,cn=portal,cn=univention,dc=nstx,dc=local No modification: cn=teacherconsole,cn=portal,cn=univention,dc=nstx,dc=local -------------------------------------------------------------------------- Fix for bug #48734 was this: -if udm settings/portal_entry list "$@" --filter cn=teacherconsole | egrep -q ^DN; then +if udm settings/portal_entry list "$@" --filter cn=teacherconsole | egrep ^DN > /dev/null; then -------------------------------------------------------------------------- "grep -q" terminates and closes its stdin when it has a first match. UDM CLI should handle an IOError in its list/print function.
*** This bug has been marked as a duplicate of bug 32532 ***