Bug 42553 - Base system installations hangs after UMC-web-server removal
Base system installations hangs after UMC-web-server removal
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: System setup
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-4
Assigned To: Erik Damrose
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-04 15:45 CEST by Philipp Hahn
Modified: 2017-03-17 15:54 CET (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.137
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

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2016-10-04 15:45:07 CEST
When installing a UCS base system, USS removes the packages "univention-management-console-web-server" and then waits from them to restart, which no longer is possible. Thus USS hangs infinity.

> Warte auf den neustart der Server-Komponenten ...



$ dpkg -l univention-management-console-web-server
...
> rc  univention-management-console-web-server 5.0.63-48.1240 ...


/var/log/univention/setup.log
> = Running 90_remove_univention-system-setup_boot
...
> Entfernen von univention-management-console-web-server ...
...
> = Running 95_remove_setup_status_file


/var/log/apache2/access.log
...
> ::1 - - [04/Oct/2016:15:29:25 +0200] "POST /univention-management-console/get/ucr HTTP/1.1" 503 348 "http://localhost/univention-management-console/?username=__systemsetup__&password=NTjbsURmcxMbvFaXwdhy9IhBCMLZXJ&module=setup&flavor=wizard&overview=false&lang=de_DE&width=800" "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0"
> ::1 - - [04/Oct/2016:15:29:25 +0200] "GET /ucs_setup_process_status.json?request.preventCache=1475587765937 HTTP/1.1" 200 316 "http://localhost/univention-management-console/?username=__systemsetup__&password=NTjbsURmcxMbvFaXwdhy9IhBCMLZXJ&module=setup&flavor=wizard&overview=false&lang=de_DE&width=800" "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0"


$ ps axf
    1 ?        Ss     0:00 /bin/busybox init
   57 ?        Ss     0:00 udevd --daemon --resolve-names=never
 8794 ?        S      0:00  \_ udevd --daemon --resolve-names=never
 8795 ?        S      0:00  \_ udevd --daemon --resolve-names=never
  193 ?        Ss     0:00 /sbin/syslogd -m 0 -O /var/log/syslog -S
  195 ?        Ss     0:00 /sbin/klogd -c 2
 1265 tty2     Ss+    0:00 /bin/busybox init
 1266 tty3     Ss     0:00 -/bin/sh
10449 tty3     S+     0:00  \_ bin/bash
 1267 tty4     Ss+    0:00 /usr/bin/tail -f /var/log/syslog
 1282 tty5     Ss+    0:13 Xorg -noreset -nolisten tcp
 1288 tty1     Ss+    0:00 /bin/sh /sbin/debian-installer
 1307 tty1     Sl+    0:26  \_ debconf -o d-i /usr/bin/main-menu
 1314 tty1     S+     0:00      \_ /usr/bin/main-menu
27995 tty1     S+     0:00          \_ udpkg --configure --force-configure di-univention-system-setup
27996 tty1     S+     0:00              \_ /bin/sh /var/lib/dpkg/info/di-univention-system-setup.postinst configure
 9037 tty1     S+     0:00                  \_ /bin/bash /usr/share/univention-system-setup/startxwithfirefox --installer
 9470 tty1     S+     0:00                      \_ /bin/su nobody -m --login -c '/usr/share/univention-system-setup/startxwithfirefox' 'http://localhost/univention-management-console/?username=__systemsetup__&password=NTjbsURmcxMbvFaXwdhy9IhBCMLZXJ&module=setup&flavor=wizard&overview=false&lang=de_DE' --
 9471 ?        Ss     0:00                          \_ -su -c '/usr/share/univention-system-setup/startxwithfirefox' 'http://localhost/univention-management-console/?username=__systemsetup__&password=NTjbsURmcxMbvFaXwdhy9IhBCMLZXJ&module=setup&flavor=wizard&overview=false&lang=de_DE'
 9474 ?        S      0:00                              \_ /bin/bash /usr/share/univention-system-setup/startxwithfirefox http://localhost/univention-management-console/?username=__systemsetup__&password=NTjbsURmcxMbvFaXwdhy9IhBCMLZXJ&module=setup&flavor=wizard&overview=false&lang=de_DE
 9488 ?        S      0:00                                  \_ openbox --config-file /etc/xdg/openbox/rc_no_shortcuts.xml
 9489 ?        Sl     1:15                                  \_ /opt/firefox/firefox -profile /tmp/tmp.q2VsGggRGq/tmp.JlwoA5RdYC http://localhost/univention-management-console/?username=__systemsetup__&password=NTjbsURmcxMbvFaXwdhy9IhBCMLZXJ&module=setup&flavor=wizard&overview=false&lang=de_DE&width=800
 9165 ?        Ss     0:00 dhclient -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
 9318 ?        S      0:00 runsvdir -P /etc/service log: etc/service: warning: unable to stat /etc/service: file does not exist runsvdir /etc/service: warning: unable to stat /etc/service: file does not exist runsvdir /etc/service: warning: unable to stat /etc/service: file does not exist runsvdir /etc/service: warning: unable to stat /etc/service: file does not exist runsvdir /etc/service: warning: unable to stat /etc/service: file does not exist 
11797 ?        Ss     0:00 /usr/sbin/atd
11892 ?        SN     0:00 /usr/bin/python2.7 /usr/sbin/univention-management-console-server restart



$ isoinfo -i /dev/sr0 -d
...
Volume id: UCS 4.1-3 amd64 1
Data preparer id: XORRISO-1.2.2 2012.04.02.133001, LIBISOBURN-1.2.2, LIBISOFS-1.2.2, LIBBURN-1.2.2

# dd skip=32 bs=1k count=1 if=/dev/sr0 | xxd -g 1
0000000: 01 43 44 30 30 31 01 00 20 20 20 20 20 20 20 20  .CD001..        
0000010: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000020: 20 20 20 20 20 20 20 20 55 43 53 20 34 2e 31 2d          UCS 4.1-
0000030: 33 20 61 6d 64 36 34 20 31 20 20 20 20 20 20 20  3 amd64 1       
0000040: 20 20 20 20 20 20 20 20 00 00 00 00 00 00 00 00          ........
0000050: b8 80 09 00 00 09 80 b8 00 00 00 00 00 00 00 00  ................
0000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000070: 00 00 00 00 00 00 00 00 01 00 00 01 01 00 00 01  ................
0000080: 00 08 08 00 50 01 00 00 00 00 01 50 d3 00 00 00  ....P......P....
0000090: 00 00 00 00 00 00 00 d4 00 00 00 00 22 00 14 00  ............"...
00000a0: 00 00 00 00 00 14 00 10 00 00 00 00 10 00 74 08  ..............t.
00000b0: 09 09 24 24 00 02 00 00 01 00 00 01 01 00 20 20  ..$$..........  
00000c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00000d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00000e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00000f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000100: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000110: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000120: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000130: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000140: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000150: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000160: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000170: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000180: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000190: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00001a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00001b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 58 4f                XO
00001c0: 52 52 49 53 4f 2d 31 2e 32 2e 32 20 32 30 31 32  RRISO-1.2.2 2012
00001d0: 2e 30 34 2e 30 32 2e 31 33 33 30 30 31 2c 20 4c  .04.02.133001, L
00001e0: 49 42 49 53 4f 42 55 52 4e 2d 31 2e 32 2e 32 2c  IBISOBURN-1.2.2,
00001f0: 20 4c 49 42 49 53 4f 46 53 2d 31 2e 32 2e 32 2c   LIBISOFS-1.2.2,
0000200: 20 4c 49 42 42 55 52 4e 2d 31 2e 32 2e 32 20 20   LIBBURN-1.2.2  
0000210: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000220: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000230: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000240: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000250: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000260: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000270: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000280: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000290: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00002a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00002b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00002c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00002d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00002e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
00002f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000300: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000310: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0000320: 20 20 20 20 20 20 20 20 20 20 20 20 20 32 30 31               201
0000330: 36 30 38 30 39 30 39 33 36 34 31 30 30 00 32 30  6080909364100.20
0000340: 31 36 30 38 30 39 30 39 33 36 34 31 30 30 00 00  16080909364100..
0000350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000370: 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0000390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00003a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00003b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00003c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00003d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00003e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00003f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Comment 1 Florian Best univentionstaff 2016-10-04 15:52:26 CEST
Why was UMC-webserver package selected for removal? It should not be removed.
Comment 2 Philipp Hahn univentionstaff 2016-10-19 15:08:31 CEST
(In reply to Florian Best from comment #1)
> Why was UMC-webserver package selected for removal?

because not base-system-package depends on UMC.

> It should not be removed.

Yes, it should: <http://docs.software-univention.de/manual-4.1.html#domain-ldap:Base_system>

Our EC2 images also can't be used to setup a base-system - so it seems.
Comment 3 Stefan Gohmann univentionstaff 2016-10-24 06:54:02 CEST
As far as I remember it was possible to install UCS 4.0 and UCS 4.1 as Base System and UMC was always uninstalled. So, what did we change that a removal is no longer possible?
Comment 4 Philipp Hahn univentionstaff 2016-10-24 08:42:16 CEST
(In reply to Stefan Gohmann from comment #3)
> As far as I remember it was possible to install UCS 4.0 and UCS 4.1 as Base
> System and UMC was always uninstalled. So, what did we change that a removal
> is no longer possible?

My guess is Bug #40046
/mnt/omar/vmwares/kvm/iso/ucs/UCS_4.1-2-amd64.iso works
/mnt/omar/vmwares/kvm/iso/ucs/UCS_4.1-3-amd64.iso is broken
Comment 5 Stefan Gohmann univentionstaff 2016-10-31 06:26:17 CET
Erik, do you see a chance to fix it?
Comment 6 Erik Damrose univentionstaff 2016-11-03 16:27:55 CET
I could not reproduce the original error. I tried to install a basesystem with a current 4.1-4 DVD and appliance, which also did not work. I fixed these setup errors in univention-system-setup:

r74084 univention-system-setup 9.0.5-4.997.201611031621
r74085 changelog
r74086 Merge to UCS 4.2
Comment 7 Felix Botner univentionstaff 2016-11-03 19:25:19 CET
FAIL - univention-management-console-web-server is installed on basesystem 
       installed via ucs appliance

OK - install base system (rc univention-management-console-web-server)
Comment 8 Erik Damrose univentionstaff 2016-11-04 11:41:54 CET
(In reply to Felix Botner from comment #7)
> FAIL - univention-management-console-web-server is installed on basesystem 
>        installed via ucs appliance

We cannot use apt commands in our cleanup scripts, as possible errors in the sources.list files may prevent it, see bug 42808 and bug 42450. Setting back to resolved.
Comment 9 Erik Damrose univentionstaff 2016-11-04 11:45:29 CET
There already is a bug that to many univention-* packages are installed on a basesystem: bug 39944
Comment 10 Felix Botner univentionstaff 2016-11-04 11:53:29 CET
OK - installation of base systems works
Appliance base system have to many univention packages installed, but this will be fixed with bug #39944

OK - merged
OK - changelog
Comment 11 Stefan Gohmann univentionstaff 2016-11-08 13:26:38 CET
UCS 4.1-4 has been released:
 https://docs.software-univention.de/release-notes-4.1-4-en.html
 https://docs.software-univention.de/release-notes-4.1-4-de.html

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