Bug 30439 - Installation of UCC management components leads to crashing UMC server
Installation of UCC management components leads to crashing UMC server
Status: CLOSED DUPLICATE of bug 31154
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: UCS Integration
unspecified
Other Linux
: P1 normal
: UCC 1.0-errata
Assigned To: Erik Damrose
Felix Botner
:
: 31274 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-14 12:04 CET by Moritz Muehlenhoff
Modified: 2013-07-25 12:49 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Muehlenhoff univentionstaff 2013-02-14 12:04:44 CET
The following setup: One Master and one additional UCS server (so far reproduced with backup, slave and member), both with errata 37 installed.

Shortly after installation of 

univention-add-app ucc_20130218 ucc-management-integration

the UMC server process is crashing. Everything works after a

/etc/init.d/univention-management-console-server  restart

(I've added that to the UCC installation instructions)

I'm attaching logfiles with debug level 4, but there's not a whole lot more info than:

14.02.13 09:34:13.712  MAIN        ( PROCESS ) : Processor: dying
Comment 1 Alexander Kläser univentionstaff 2013-02-14 15:09:00 CET
This is a UCC problem due to a syntactic error. I needed to start the UMC server as foreground process:

====================
invoke-rc.d univention-management-console-server stop
univention-management-console-server -d 4 -n
====================

Then I could get the following traceback (which is unfortunately not logged!):

> Traceback (most recent call last):
>   File "/usr/sbin/univention-management-console-server", line 209, in <module>
>     umc_daemon.do_action()
>   File "/usr/lib/pymodules/python2.6/daemon/runner.py", line 186, in do_action
>     func(self)
>   File "/usr/lib/pymodules/python2.6/daemon/runner.py", line 131, in _start
>     self.app.run()
>   File "/usr/sbin/univention-management-console-server", line 192, in run
>     notifier.loop()
>   File "/usr/lib/pymodules/python2.6/notifier/nf_generic.py", line 284, in loop
>     step()
>   File "/usr/lib/pymodules/python2.6/notifier/nf_generic.py", line 271, in step
>     not __sockets[ cond ][ fd ]( sock_obj ):
>   File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/server.py", line 161, in _receive
>     self._handle( state, msg )
>   File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/server.py", line 273, in _handle
>     state.processor = Processor( *state.credentials() )
>   File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/session.py", line 213, in __init__
>     udm_modules.update()
>   File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 88, in update
>     os.path.walk(dir, _walk, p)
>   File "/usr/lib/python2.6/posixpath.py", line 236, in walk
>     walk(name, func, arg)
>   File "/usr/lib/python2.6/posixpath.py", line 228, in walk
>     func(arg, top, names)
>   File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 72, in _walk
>     m=__import__(mod, globals(), locals(), name)
>   File "/usr/lib/pymodules/python2.6/univention/admin/handlers/policies/ucc_desktop.py", line 78, in <module>
>     syntax=univention.admin.syntax.uccDesktopEnvVar,
> AttributeError: 'module' object has no attribute 'uccDesktopEnvVar'
> 13.02.13 09:51:05.213  MAIN        ( PROCESS ) : Processor: dying
Comment 2 Alexander Kläser univentionstaff 2013-02-14 15:11:12 CET
(In reply to comment #1)
> This is a UCC problem due to a syntactic error. I needed to start the UMC
> server as foreground process:

... wrong, it is not a syntactic problem. The syntax is unknown at that point in time. A restart of the UMC server in one of the integration packages should be sufficient.
Comment 3 Stefan Gohmann univentionstaff 2013-04-01 19:24:42 CEST
Reported via Ticket #2013032721013831
Comment 4 Erik Damrose univentionstaff 2013-04-02 12:40:58 CEST
A restart of univention-management-console-server has been added to ucc-management-integration.postinst

ucc-management-integration 1.1.10-1 rev 39818
Comment 5 Felix Botner univentionstaff 2013-04-08 17:33:58 CEST
Ok - univention-management-console-server restart in ucc-management-integration.postinst

OK - YAML
Comment 6 Dirk Wiesenthal univentionstaff 2013-04-30 17:59:46 CEST
This does not fix the error. It helps for univention-add-app, but not for installation of UCC in Univention App Center (because restart is prevented).

One has to fix it in the UMC Server itself.
Comment 7 Dirk Wiesenthal univentionstaff 2013-04-30 19:16:20 CEST
We may consider reverting the patch and mark this bug as DUPLICATE of Bug#31154 - although it does not hurt to restart UMC-Server.
Comment 8 Stefan Gohmann univentionstaff 2013-05-03 06:12:09 CEST
*** Bug 31274 has been marked as a duplicate of this bug. ***
Comment 9 Stefan Gohmann univentionstaff 2013-05-03 06:14:20 CEST
(In reply to comment #8)
> *** Bug 31274 has been marked as a duplicate of this bug. ***

The error still occurred:

>   File "/usr/lib/pymodules/python2.6/univention/admin/handlers/policies/ucc_desktop.py", line 78, in <module>
>     syntax=univention.admin.syntax.uccDesktopEnvVar,
> AttributeError: 'module' object has no attribute 'uccDesktopEnvVar'

The syntax should be defined in ucc_desktop.py as well. The problem is that the syntax is not loaded at this point.
Comment 10 Erik Damrose univentionstaff 2013-05-29 15:25:15 CEST
The error has been fixed with an errata from bug 31154 which was released on 2013-05-22.

*** This bug has been marked as a duplicate of bug 31154 ***
Comment 11 Felix Botner univentionstaff 2013-05-29 16:48:11 CEST
OK
Comment 12 Moritz Muehlenhoff univentionstaff 2013-07-25 12:49:46 CEST
This is a duplicate of  http://errata.univention.de/ucs/3.1/109.html