Bug 44029 - Error 502 while doing an UMC Software Update
Error 502 while doing an UMC Software Update
Status: CLOSED DUPLICATE of bug 44052
Product: UCS
Classification: Unclassified
Component: UMC - Software update
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Stefan Gohmann
Florian Best
: interim-4
Depends on: 44049
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-22 16:25 CET by Nico Stöckigt
Modified: 2017-04-04 18:29 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
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
UCS 4.2 Update Error 502 (172.64 KB, image/png)
2017-03-22 16:25 CET, Nico Stöckigt
Details
UCS 4.2 LoginError after Update Error 502 (44.91 KB, image/png)
2017-03-22 16:34 CET, Nico Stöckigt
Details
UCS 4.2 UMC-WebServer after Update Error 502 (172.58 KB, image/png)
2017-03-22 16:46 CET, Nico Stöckigt
Details
updater.log (81.23 KB, text/x-log)
2017-03-22 17:08 CET, Nico Stöckigt
Details
umc-server.log (25.56 KB, text/x-log)
2017-03-22 17:08 CET, Nico Stöckigt
Details
umc-web-server.log (4.67 KB, text/x-log)
2017-03-22 17:09 CET, Nico Stöckigt
Details
univention-management-console-web-server.log.1 vom 23.03.2017 (4.30 KB, text/plain)
2017-03-23 14:52 CET, Nico Stöckigt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Stöckigt univentionstaff 2017-03-22 16:25:37 CET
Created attachment 8617 [details]
UCS 4.2 Update Error 502

While doing a Software Update within UMC, first a hint arises telling me to don't switch off the system; the system might be temporarily unavailable. But after a while an 'error 502 ' is shown (see attachment).
Comment 1 Nico Stöckigt univentionstaff 2017-03-22 16:33:36 CET
After a hard-refresh (F5 → "Leave site : OK") the upcoming Login fails by telling 'UMC Web Server is not running' - probably this has somthing to do with the previous behavior. (Screenshot attached)
Comment 2 Nico Stöckigt univentionstaff 2017-03-22 16:34:25 CET
Created attachment 8618 [details]
UCS 4.2 LoginError after Update Error 502
Comment 3 Florian Best univentionstaff 2017-03-22 16:39:10 CET
Does this happen during Upgrade from UCS 4.1 → UCS 4.2 ? Or during a regular package update?
Comment 4 Nico Stöckigt univentionstaff 2017-03-22 16:46:46 CET
Created attachment 8619 [details]
UCS 4.2 UMC-WebServer after Update Error 502

after examining the underlaying problem I tried to start the univention-management-web-server but failed → see attachment.

the same thing (screenshot) in textual → https://bepasty.knut.univention.de/xkoqLobf
Comment 5 Nico Stöckigt univentionstaff 2017-03-22 16:48:29 CET
(In reply to Florian Best from comment #3)
> Does this happen during Upgrade from UCS 4.1 → UCS 4.2 ? Or during a regular
> package update?

The system was a clean single master installation from the latest iso (2017-03-22 10:00) and it only was a software update.
Comment 6 Nico Stöckigt univentionstaff 2017-03-22 16:59:58 CET
looks like umc-server and umc-web-server could not be configured and the join-scripts failed → https://bepasty.knut.univention.de/4rDhcbkv
Comment 7 Florian Best univentionstaff 2017-03-22 17:01:31 CET
If so, please attach the join.log.
Comment 10 Nico Stöckigt univentionstaff 2017-03-22 17:08:21 CET
Created attachment 8620 [details]
updater.log
Comment 11 Nico Stöckigt univentionstaff 2017-03-22 17:08:44 CET
Created attachment 8621 [details]
umc-server.log
Comment 12 Nico Stöckigt univentionstaff 2017-03-22 17:09:05 CET
Created attachment 8622 [details]
umc-web-server.log
Comment 13 Nico Stöckigt univentionstaff 2017-03-22 17:10:35 CET
(In reply to Florian Best from comment #7)
> If so, please attach the join.log.

I attached logfiles with errors in it; the join.log is pretty empty:

 58d25cee OVER: Loading Translog Overlay
 58d25cee Loading shadowbind Overlay.OVER: db_init
 58d25cee OVER: Configuring Translog Overlay
 58d25cee OVER: Configured Translog Overlay to use file "/var/lib/univention-ldap/listener/listener"
 58d25cee shadowbind_db_init
 58d25cee shadowbind_db_config
 58d25cee shadowbind_db_open
 58d25cee OVER: db_close
 58d25cee shadowbind_db_destroy
 58d25cee OVER: db_destroy
Comment 14 Florian Best univentionstaff 2017-03-22 17:36:27 CET
Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-web-server", line 1530, in <module>
    http_daemon.do_action()
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 186, in do_action
    func(self)
  File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 121, in _start
    self.daemon_context.open()
  File "/usr/lib/pymodules/python2.7/daemon/daemon.py", line 344, in open
    self.pidfile.__enter__()
  File "/usr/lib/pymodules/python2.7/lockfile.py", line 223, in __enter__
    self.acquire()
  File "/usr/lib/pymodules/python2.7/daemon/pidlockfile.py", line 109, in acquire
    super(TimeoutPIDLockFile, self).acquire(timeout, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/daemon/pidlockfile.py", line 59, in acquire
    super(PIDLockFile, self).acquire(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/lockfile.py", line 261, in acquire
    raise LockTimeout
lockfile.LockTimeout
Comment 15 Florian Best univentionstaff 2017-03-22 17:37:05 CET
Workaround:
# rm /var/run/umc-web-server.pid.lock
Comment 16 Nico Stöckigt univentionstaff 2017-03-23 14:52:53 CET
Created attachment 8631 [details]
univention-management-console-web-server.log.1 vom 23.03.2017

here it's spaming TraceBacks!
Comment 17 Nico Stöckigt univentionstaff 2017-03-23 14:54:19 CET
(In reply to Nico Stöckigt from comment #16)
> Created attachment 8631 [details]
> univention-management-console-web-server.log.1 vom 23.03.2017
> 
> here it's spaming TraceBacks!

after another UMC-Software-Update (webfrontend) the UMC hangs again.
Comment 19 Stefan Gohmann univentionstaff 2017-03-24 05:56:03 CET
I think it is a same problem as described in Bug #44052.

*** This bug has been marked as a duplicate of bug 44052 ***
Comment 20 Florian Best univentionstaff 2017-03-24 15:38:04 CET
Yes, duplicate.
Comment 21 Stefan Gohmann univentionstaff 2017-04-04 18:29:11 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".