Univention Bugzilla – Bug 42790
UMC unavailable after Update
Last modified: 2016-10-29 19:27:52 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!
BTW: A complete server reboot didn't help.
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.
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
I am closing this issue as there is nothing further to do in the product.