Bug 42790 - UMC unavailable after Update
UMC unavailable after Update
Status: CLOSED MOVED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.1
amd64 Linux
: P5 critical (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-29 17:56 CEST by snoopyf
Modified: 2016-10-29 19:27 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.143
Enterprise Customer affected?: Yes
School Customer affected?: Yes
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 snoopyf 2016-10-29 17:56:07 CEST
Hi everyone,

I'm having this situation currently:

I open the UMC ("https://ServerName/univention-management-console/") and enter the credentials. After hitting "Enter" a message "Internal Errpr" appears, saying 

"
The Univention Management Console Web Server could not be reached. Please restart it or try again later."

I then logged in via SSH and try to restart the univention-management-console-web-server which gives python trace errors:

# /etc/init.d/univention-management-console-web-server stop
[info] Stopping Univention Management Console Web Server.
Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-web-server", line 58, in <module>
    from daemon.runner import DaemonRunner, DaemonRunnerStopFailureError, DaemonRunnerStartFailureError
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 25, in <module>
    import pidlockfile
  File "/usr/lib/pymodules/python2.7/daemon/pidlockfile.py", line 33, in <module>
    class PIDLockFile(LinkFileLock, object):
TypeError: Error when calling the metaclass bases
    function() argument 1 must be code, not str
done.


# /etc/init.d/univention-management-console-web-server start
[info] Starting Univention Management Console Web Server.
Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-web-server", line 58, in <module>
    from daemon.runner import DaemonRunner, DaemonRunnerStopFailureError, DaemonRunnerStartFailureError
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 25, in <module>
    import pidlockfile
  File "/usr/lib/pymodules/python2.7/daemon/pidlockfile.py", line 33, in <module>
    class PIDLockFile(LinkFileLock, object):
TypeError: Error when calling the metaclass bases
    function() argument 1 must be code, not str
done.

What is going wrong here??? So the system currently is completely unmanagable via UMC!!

I also asked here:
http://forum.univention.de/viewtopic.php?f=48&t=6175

Thx in advance for any hint!
Comment 1 snoopyf 2016-10-29 17:58:18 CEST
BTW: A complete server reboot didn't help.
Comment 2 Florian Best univentionstaff 2016-10-29 18:47:08 CEST
Hello Snoopy,

this bug is caused by a incompatible version of lockfile / pidlockfile. This is probably caused by some python package installation via "pip"? Did you install some packages via pip? Or which apps did you install recently?

Please try to execute "pip uninstall lockfile" and restart the UMC-Webserver.
Comment 3 snoopyf 2016-10-29 19:26:14 CEST
Hi Florian,

thx a lot for the quick answer. Indeed, lockfile was installed but I never used pip on the affected server at all, no idea where it came from.

After uninstalling it via pip the univention-management-console-web-server started without problems.

Again, thx a lot for the quick help!

Greetings
Snoopy
Comment 4 Florian Best univentionstaff 2016-10-29 19:27:39 CEST
I am closing this issue as there is nothing further to do in the product.