Univention Bugzilla – Bug 40039
Import script for automated class renaming produces no log file
Last modified: 2016-03-16 15:01:08 CET
The import script for automated class renaming does not write its log output to a logfile. Therefore it's hard to debug problems. Noticed in customer environment.
Added log output that is always written to /var/log/univention/ucs-school-import.log. Example follows. Additionally the exit code of the script has been changed from 0 to 1 in case of severe errors. 25.02.16 02:15:08.480 DEBUG_INIT 25.02.16 02:15:09.193 MAIN ( PROCESS ) : Starting rename_class 'rename.txt' 25.02.16 02:15:09.244 MAIN ( PROCESS ) : Checking line 1: 'gsmitte-Igel2' to 'gsmitte-Krabbeln' 25.02.16 02:15:09.244 MAIN ( PROCESS ) : Checking line 2: 'gsmitte-Froesche' to 'gsmitte-Igel2' 25.02.16 02:15:09.244 MAIN ( PROCESS ) : Stopping notifier 25.02.16 02:15:14.817 MAIN ( PROCESS ) : Processing line 1: renaming 'gsmitte-Igel2' to 'gsmitte-Krabbeln' 25.02.16 02:15:14.823 LDAP ( WARN ) : rename cn=gsmitte-Krabbeln 25.02.16 02:15:14.891 LDAP ( WARN ) : rename cn=gsmitte-Krabbeln 25.02.16 02:15:14.931 MAIN ( PROCESS ) : Processing line 2: renaming 'gsmitte-Froesche' to 'gsmitte-Igel2' 25.02.16 02:15:14.933 LDAP ( WARN ) : rename cn=gsmitte-Igel2 25.02.16 02:15:14.965 LDAP ( WARN ) : rename cn=gsmitte-Igel2 25.02.16 02:15:15.527 MAIN ( PROCESS ) : Resuming notifier 25.02.16 02:15:15.527 MAIN ( PROCESS ) : Renaming of group gsmitte-Igel2 to gsmitte-Krabbeln successfully 25.02.16 02:15:15.527 MAIN ( PROCESS ) : Renaming of share gsmitte-Igel2 to gsmitte-Krabbeln successfully 25.02.16 02:15:15.527 MAIN ( PROCESS ) : Renaming of group gsmitte-Froesche to gsmitte-Igel2 successfully 25.02.16 02:15:15.527 MAIN ( PROCESS ) : Renaming of share gsmitte-Froesche to gsmitte-Igel2 successfully 25.02.16 02:15:15.527 MAIN ( PROCESS ) : rename_class finished ucs-school-import (12.0.4-2): r67765 | Bug #40039: bumped version r67764 | Bug #40039: write debug output of rename_class to /var/log/univention/ucs-school-import.log Package: ucs-school-import Version: 12.0.4-2.239.201602281629 User: sschwardt Branch: ucs_4.1-0 Scope: ucs-school-4.1
OK: logoutput gets written to /var/log/univention/ucs-school-import.log
UCS@school 4.1 v5 has been released. If this error occurs again, please clone this bug.