Bug 31154 - UMC Server dies when newly installed UDM module uses newly installed UDM syntax
UMC Server dies when newly installed UDM module uses newly installed UDM syntax
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.1
Other Linux
: P3 normal (vote)
: UCS 3.1-1-errata
Assigned To: Dirk Wiesenthal
Stefan Gohmann
:
: 30439 31231 31232 (view as bug list)
Depends on:
Blocks: 31253
  Show dependency treegraph
 
Reported: 2013-04-24 10:51 CEST by Dirk Wiesenthal
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): Troubleshooting, Usability
Max CVSS v3 score:


Attachments
Broken login dialog (20.00 KB, image/png)
2013-04-24 10:51 CEST, Dirk Wiesenthal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2013-04-24 10:51:29 CEST
Created attachment 5191 [details]
Broken login dialog

Happened after installation of an app (UCC), which restarts LDAP:

UMC asked to restart, but I did not respond for 10 Minutes, so I was logged out
automatically. I tried to login again, but although the login dialog
disappeared I was not able to restart UMC (dialog.notify("Your session expired,
please login again")).

So I logged out and tried to login. Screenshot attached. I had to restart UMC
on the command line.

UMC Error of umcp/auth: {"status": "401 Unauthorized", "message": "No
permission -- see authorization schemes"}
Comment 1 Alexander Kläser univentionstaff 2013-04-24 15:14:19 CEST
This problem is also described in Bug 28081.

*** This bug has been marked as a duplicate of bug 28081 ***
Comment 2 Alexander Kläser univentionstaff 2013-04-24 15:22:43 CEST
(In reply to comment #1)
> This problem is also described in Bug 28081.
> 
> *** This bug has been marked as a duplicate of bug 28081 ***

Not a duplicate anymore, see also Bug 28081:

> * Gut wäre es zudem, wenn die Session (bspw. über einen "Ping" mit dem
> UMC-Server wie in System-Setup) beim Erscheinen des Frage-Dialogs automatisch
> offen gehalten wird, so dass der Benutzer in jedem Fall die Möglichkeit hat,
> die Dienste neuzustarten.
Comment 3 Dirk Wiesenthal univentionstaff 2013-04-30 17:52:39 CEST
Wrong assumptions. Has nothing to do with LDAP restarts. UCC brings its own syntax classes which were not known during umc-server startup. So he died on udm_modules.update().

For the frontend part, there is Bug#31233

*** This bug has been marked as a duplicate of bug 31232 ***
Comment 4 Dirk Wiesenthal univentionstaff 2013-04-30 18:02:38 CEST
Fix it here and mark the other one as DUPLICATE... this has to be fixed in udm_modules.update().

A simple umc restart will not work because the App Center prevents the restart.
Comment 5 Dirk Wiesenthal univentionstaff 2013-04-30 18:04:04 CEST
*** Bug 31232 has been marked as a duplicate of this bug. ***
Comment 6 Dirk Wiesenthal univentionstaff 2013-04-30 18:04:53 CEST
See Bug#30439 for the traceback
Comment 7 Dirk Wiesenthal univentionstaff 2013-04-30 19:59:47 CEST
Fixed in (3.1-2):
  univention-directory-manager-modules 8.0.154-1.1007.201304301931
and (3.1-1):
  univention-directory-manager-modules 8.0.143-13.1008.201304301937

Changelog updated, YAML created.

Added a univention.admin.syntax.import_syntax_files() every time udm_modules.update() is called. This is done for every new session of the UMC Server. So this patch decreases UMC performance. But syntax files should be fairly lightweight and I do not see any other workaround for not-groundshaking-errata release.

Same for hook files. A hook will probably not break the UMC Server but hooks that are installed but not used may cause some very hard to reproduce problems.
Comment 8 Sönke Schwardt-Krummrich univentionstaff 2013-05-06 15:52:51 CEST
*** Bug 31231 has been marked as a duplicate of this bug. ***
Comment 9 Stefan Gohmann univentionstaff 2013-05-21 20:27:26 CEST
Tests 3.1-1errata: OK, a restart of UMC is required but the UDM module package shouldn't trigger the restart. I think we will release UDM modules and UMC at the same time.

UCS 3.1-2: Code Review OK

YAML: OK

Changelog: OK
Comment 10 Moritz Muehlenhoff univentionstaff 2013-05-22 16:17:44 CEST
http://errata.univention.de/ucs/3.1/109.html
Comment 11 Erik Damrose univentionstaff 2013-05-29 15:25:15 CEST
*** Bug 30439 has been marked as a duplicate of this bug. ***
Comment 12 Moritz Muehlenhoff univentionstaff 2013-07-25 12:49:20 CEST
This is a duplicate of  http://errata.univention.de/ucs/3.1/109.html