Bug 31233 - Crippled login dialog after login attempt with missing UMC server
Crippled login dialog after login attempt with missing UMC server
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.1
Other Linux
: P4 normal (vote)
: UCS 3.2-x
Assigned To: UMC maintainers
:
: 33855 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-29 17:23 CEST by Sönke Schwardt-Krummrich
Modified: 2014-11-28 11:02 CET (History)
5 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
Login form with missing UMC server process (31.22 KB, image/png)
2013-04-29 17:23 CEST, Sönke Schwardt-Krummrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2013-04-29 17:23:46 CEST
Created attachment 5204 [details]
Login form with missing UMC server process

Error szenario in UCS 3.1-1 errata91:
the UMC server process is not running (UMC web server is running!) and a user
tries to access the UMC. The login window is correctly displayed, the user
enters his credentials and presses login.

Result:
The login fails and the user gets a crippled login form (see attachment).
Comment 1 Alexander Kläser univentionstaff 2013-05-03 11:37:08 CEST
The user should be prompted at least a meaningful error message instead of this login dialog.
Comment 2 Stefan Gohmann univentionstaff 2013-05-06 07:15:41 CEST
How often does this happen? If it does not occur so often we should fix it later.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2013-05-06 09:24:21 CEST
(In reply to comment #2)
> How often does this happen? If it does not occur so often we should fix it
> later.

At the moment, Bug 31154 triggers this situation. It would help users to solve the situation by their own if they are affected by bug 31154.
I haven't seen the problem in other situations yet.
Comment 4 Alexander Kläser univentionstaff 2013-05-06 12:30:35 CEST
(In reply to comment #2)
> How often does this happen? If it does not occur so often we should fix it
> later.

Looking a bit closer at it during the QA of Bug 27989, it seemed to me that this problem with the dialogue should not really happen. IMHO there seems to be a generic problem with the handling of the iframe reload.
Comment 5 Moritz Muehlenhoff univentionstaff 2013-05-31 10:45:54 CEST
We will not ship a UCS 3.1-2 release; the next UCS release will be UCS 3.2.

As such, this bug is moved to the new target milestone.
Comment 6 Philipp Hahn univentionstaff 2013-10-31 11:50:57 CET
Me too after IP reconfiguration:

# pgrep -fl univention-management-console
8388 /usr/bin/python2.6 /usr/sbin/univention-management-console-web-server restart

# tail /var/log/univention/management-console-server.log
31.10.13 11:29:41.188  MAIN        ( PROCESS ) : Server started
31.10.13 11:38:06.305  MAIN        ( ERROR   ) : 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/sbin/univention-management-console-server", line 142, in _restart
    self._start()
  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 165, in _receive
    self._handle( state, msg )
  File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/server.py", line 279, in _handle
    state.processor = Processor( *state.credentials() )
  File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/session.py", line 213, in __init__
    ldap_dn = self.lo.searchDn( '(&(uid=%s)(objectClass=posixAccount))' % self.__username )
  File "/usr/lib/pymodules/python2.6/univention/admin/uldap.py", line 361, in searchDn
    raise univention.admin.uexceptions.noObject, _err2str(msg)
noObject: No such object
31.10.13 11:38:06.367  MAIN        ( PROCESS ) : Processor: dying
Comment 7 Alexander Kläser univentionstaff 2013-11-01 09:30:38 CET
(In reply to Philipp Hahn from comment #6)
> Me too after IP reconfiguration:
> 
> # pgrep -fl univention-management-console
> 8388 /usr/bin/python2.6 /usr/sbin/univention-management-console-web-server
> restart
> 
> # tail /var/log/univention/management-console-server.log
> 31.10.13 11:29:41.188  MAIN        ( PROCESS ) : Server started
> 31.10.13 11:38:06.305  MAIN        ( ERROR   ) : Traceback (most recent call last):
> ...

Apart from the login dialogue issue, this traceback should not happen. I opened Bug 33086 for this.

Otherwise, instead of a crippled login dialogue, the user needs a sensible error message to know what he can do.

Would it make sense to restart the UMC server automatically in case it crashes?
Comment 8 Alexander Kläser univentionstaff 2014-01-09 11:25:04 CET
*** Bug 33855 has been marked as a duplicate of this bug. ***
Comment 9 Florian Best univentionstaff 2014-11-28 11:02:27 CET
In UCS 4.0 this cannot happen to the login dialog anymore. As the iframe was moved into the hidden/invisible area.