CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.79k stars 681 forks source link

Ubuntu upgrade to 22.05.6-3 is broken #5353

Closed bernd-wechner closed 1 year ago

bernd-wechner commented 1 year ago

Describe the bug Specifically 14-collaboraofficebasis-ooofonts_22.05.6-3_amd64.deb fails to unpack

dpkg: error processing archive /tmp/apt-dpkg-install-XEOdGX/14-collaboraofficebasis-ooofonts_22.05.6-3_amd64.deb (--unpack):
 cannot copy extracted data for './opt/collaboraoffice/share/fonts/truetype/NotoSerifSC-Bold.otf' to '/opt/collaboraoffice/share/fonts/truetype/NotoSerifSC-Bold.otf.dpkg-new': unexpected end of file or stream

To Reproduce Steps to reproduce the behavior:

  1. On an Ubuntu 20.04 system running Collabora 22.05.6-1 with deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ in /etc/apt/sources.list
    1. run sudo apt upgrade
    2. This installs 22.05.6-3 which fails to unpack the library mentioned (and breaks the system)

Full Log

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  cloud-init collaboraoffice collaboraoffice-ure collaboraofficebasis-calc collaboraofficebasis-core collaboraofficebasis-draw collaboraofficebasis-en-us collaboraofficebasis-extension-pdf-import
  collaboraofficebasis-graphicfilter collaboraofficebasis-images collaboraofficebasis-impress collaboraofficebasis-math collaboraofficebasis-ooofonts collaboraofficebasis-ooolinguistic
  collaboraofficebasis-writer coolwsd libnss-systemd libpam-systemd libsystemd0 libudev1 nodejs systemd systemd-sysv systemd-timesyncd ubuntu-advantage-tools udev zlib1g
27 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 266 MB of archives.
After this operation, 233 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss-systemd amd64 245.4-4ubuntu3.18 [96.1 kB]
Get:2 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.18 [1367 kB]
Get:3 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 libudev1 amd64 245.4-4ubuntu3.18 [76.3 kB]
Get:4 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-sysv amd64 245.4-4ubuntu3.18 [10.3 kB]
Get:5 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-timesyncd amd64 245.4-4ubuntu3.18 [28.1 kB]
Get:6 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-systemd amd64 245.4-4ubuntu3.18 [186 kB]
Get:7 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd amd64 245.4-4ubuntu3.18 [3808 kB]
Get:8 https://deb.nodesource.com/node_16.x focal/main amd64 nodejs amd64 16.17.1-deb-1nodesource1 [27.0 MB]
Get:9 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 libsystemd0 amd64 245.4-4ubuntu3.18 [269 kB] 
Get:10 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 zlib1g amd64 1:1.2.11.dfsg-2ubuntu1.4 [53.9 kB]        
Get:11 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-advantage-tools amd64 27.11.2~20.04.1 [160 kB]                 
Get:12 http://au.archive.ubuntu.com/ubuntu focal-updates/main amd64 cloud-init all 22.3.4-0ubuntu1~20.04.1 [510 kB]                    
Get:13 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraoffice 22.05.6-3 [289 kB]         
Get:14 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-writer 22.05.6-3 [4168 kB]
Get:15 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-ooolinguistic 22.05.6-3 [2332 B]                                                                          
Get:16 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-math 22.05.6-3 [621 kB]                                                                                   
Get:17 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-impress 22.05.6-3 [658 kB]                                                                                
Get:18 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-images 22.05.6-3 [3720 kB]                                                                                
Get:19 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-graphicfilter 22.05.6-3 [1353 kB]                                                                         
Get:20 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-extension-pdf-import 22.05.6-3 [237 kB]                                                                   
Get:21 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-en-us 22.05.6-3 [79.7 kB]                                                                                 
Get:22 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-draw 22.05.6-3 [5654 B]                                                                                   
Get:23 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-calc 22.05.6-3 [9184 kB]                                                                                  
Get:24 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-core 22.05.6-3 [87.6 MB]                                                                                  
Get:25 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraoffice-ure 22.05.6-3 [10.9 MB]                                                                                        
Get:26 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ collaboraofficebasis-ooofonts 22.05.6-3 [103 MB]                                                                               
Get:27 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./ coolwsd 22.05.6.3-1 [10.1 MB]                                                                                                  
Fetched 266 MB in 5min 27s (814 kB/s)                                                                                                                                                                          
Preconfiguring packages ...
(Reading database ... 141806 files and directories currently installed.)
Preparing to unpack .../libnss-systemd_245.4-4ubuntu3.18_amd64.deb ...
Unpacking libnss-systemd:amd64 (245.4-4ubuntu3.18) over (245.4-4ubuntu3.17) ...
Preparing to unpack .../udev_245.4-4ubuntu3.18_amd64.deb ...
Unpacking udev (245.4-4ubuntu3.18) over (245.4-4ubuntu3.17) ...
Preparing to unpack .../libudev1_245.4-4ubuntu3.18_amd64.deb ...
Unpacking libudev1:amd64 (245.4-4ubuntu3.18) over (245.4-4ubuntu3.17) ...
Setting up libudev1:amd64 (245.4-4ubuntu3.18) ...
(Reading database ... 141806 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_245.4-4ubuntu3.18_amd64.deb ...
Unpacking systemd-sysv (245.4-4ubuntu3.18) over (245.4-4ubuntu3.17) ...
Preparing to unpack .../systemd-timesyncd_245.4-4ubuntu3.18_amd64.deb ...
Unpacking systemd-timesyncd (245.4-4ubuntu3.18) over (245.4-4ubuntu3.17) ...
Preparing to unpack .../libpam-systemd_245.4-4ubuntu3.18_amd64.deb ...
Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.18) over (245.4-4ubuntu3.17) ...
Preparing to unpack .../systemd_245.4-4ubuntu3.18_amd64.deb ...
Unpacking systemd (245.4-4ubuntu3.18) over (245.4-4ubuntu3.17) ...
Preparing to unpack .../libsystemd0_245.4-4ubuntu3.18_amd64.deb ...
Unpacking libsystemd0:amd64 (245.4-4ubuntu3.18) over (245.4-4ubuntu3.17) ...
Setting up libsystemd0:amd64 (245.4-4ubuntu3.18) ...
(Reading database ... 141806 files and directories currently installed.)
Preparing to unpack .../zlib1g_1%3a1.2.11.dfsg-2ubuntu1.4_amd64.deb ...
Unpacking zlib1g:amd64 (1:1.2.11.dfsg-2ubuntu1.4) over (1:1.2.11.dfsg-2ubuntu1.3) ...
Setting up zlib1g:amd64 (1:1.2.11.dfsg-2ubuntu1.4) ...
(Reading database ... 141806 files and directories currently installed.)
Preparing to unpack .../00-ubuntu-advantage-tools_27.11.2~20.04.1_amd64.deb ...
Unpacking ubuntu-advantage-tools (27.11.2~20.04.1) over (27.10.1~20.04.1) ...
Preparing to unpack .../01-collaboraoffice_22.05.6-3_amd64.deb ...
Unpacking collaboraoffice (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../02-collaboraofficebasis-writer_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-writer (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../03-collaboraofficebasis-ooolinguistic_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-ooolinguistic (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../04-collaboraofficebasis-math_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-math (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../05-collaboraofficebasis-impress_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-impress (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../06-collaboraofficebasis-images_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-images (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../07-collaboraofficebasis-graphicfilter_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-graphicfilter (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../08-collaboraofficebasis-extension-pdf-import_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-extension-pdf-import (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../09-collaboraofficebasis-en-us_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-en-us (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../10-collaboraofficebasis-draw_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-draw (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../11-collaboraofficebasis-calc_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-calc (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../12-collaboraofficebasis-core_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-core (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../13-collaboraoffice-ure_22.05.6-3_amd64.deb ...
Unpacking collaboraoffice-ure (22.05.6-3) over (22.05.6-1) ...
Preparing to unpack .../14-collaboraofficebasis-ooofonts_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-ooofonts (22.05.6-3) over (22.05.6-1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-XEOdGX/14-collaboraofficebasis-ooofonts_22.05.6-3_amd64.deb (--unpack):
 cannot copy extracted data for './opt/collaboraoffice/share/fonts/truetype/NotoSerifSC-Bold.otf' to '/opt/collaboraoffice/share/fonts/truetype/NotoSerifSC-Bold.otf.dpkg-new': unexpected end of file or stream
Preparing to unpack .../15-coolwsd_22.05.6.3-1_amd64.deb ...
Unpacking coolwsd (22.05.6.3-1) over (22.05.6.1-1) ...
Preparing to unpack .../16-nodejs_16.17.1-deb-1nodesource1_amd64.deb ...
Unpacking nodejs (16.17.1-deb-1nodesource1) over (16.17.0-deb-1nodesource1) ...
Preparing to unpack .../17-cloud-init_22.3.4-0ubuntu1~20.04.1_all.deb ...
Unpacking cloud-init (22.3.4-0ubuntu1~20.04.1) over (22.2-0ubuntu1~20.04.3) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-XEOdGX/14-collaboraofficebasis-ooofonts_22.05.6-3_amd64.deb
Updating coolwsd systemplate
E: Sub-process /usr/bin/dpkg returned an error code (1)
cirrus@nephele:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  collaboraofficebasis-ooofonts
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
23 not fully installed or removed.
Need to get 0 B/103 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up systemd-timesyncd (245.4-4ubuntu3.18) ...
Setting up systemd (245.4-4ubuntu3.18) ...
(Reading database ... 141856 files and directories currently installed.)
Preparing to unpack .../collaboraofficebasis-ooofonts_22.05.6-3_amd64.deb ...
Unpacking collaboraofficebasis-ooofonts (22.05.6-3) over (22.05.6-1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/collaboraofficebasis-ooofonts_22.05.6-3_amd64.deb (--unpack):
 cannot copy extracted data for './opt/collaboraoffice/share/fonts/truetype/NotoSerifSC-Bold.otf' to '/opt/collaboraoffice/share/fonts/truetype/NotoSerifSC-Bold.otf.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 /var/cache/apt/archives/collaboraofficebasis-ooofonts_22.05.6-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo service coolwsd restart
$ sudo service coolwsd status
● coolwsd.service - Collabora Online WebSocket Daemon
     Loaded: loaded (/lib/systemd/system/coolwsd.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-10-18 20:37:27 AEDT; 3s ago
   Main PID: 176808 (coolwsd)
      Tasks: 3 (limit: 18980)
     Memory: 48.8M
     CGroup: /system.slice/coolwsd.service
             └─176808 /usr/bin/coolwsd --version --o:sys_template_path=/opt/cool/systemplate --o:child_root_path=/opt/cool/child-roots --o:file_server_root_path=/usr/share/coolwsd

Oct 18 20:37:28 nephele coolwsd[176822]: frk-176822-176822 2022-10-18 20:37:28.496102 +1100 [ coolforkit ] ERR  Capability cap_sys_chroot is not set for the coolforkit program.| kit/ForKit.cpp:235
Oct 18 20:37:28 nephele coolwsd[176822]: frk-176822-176822 2022-10-18 20:37:28.496121 +1100 [ coolforkit ] ERR  Capability cap_mknod is not set for the coolforkit program.| kit/ForKit.cpp:235
Oct 18 20:37:28 nephele coolwsd[176822]: frk-176822-176822 2022-10-18 20:37:28.496138 +1100 [ coolforkit ] ERR  Capability cap_fowner is not set for the coolforkit program.| kit/ForKit.cpp:235
Oct 18 20:37:28 nephele coolwsd[176822]: frk-176822-176822 2022-10-18 20:37:28.496149 +1100 [ coolforkit ] ERR  Capability cap_chown is not set for the coolforkit program.| kit/ForKit.cpp:235
Oct 18 20:37:28 nephele coolwsd[176822]: Capabilities are not set for the coolforkit program.
Oct 18 20:37:28 nephele coolwsd[176822]: frk-176822-176822 2022-10-18 20:37:28.496160 +1100 [ coolforkit ] FTL  Capabilities are not set for the coolforkit program.| kit/ForKit.cpp:683
Oct 18 20:37:28 nephele coolwsd[176822]: Please make sure that the current partition was *not* mounted with the 'nosuid' option.
Oct 18 20:37:28 nephele coolwsd[176822]: frk-176822-176822 2022-10-18 20:37:28.496176 +1100 [ coolforkit ] FTL  Please make sure that the current partition was *not* mounted with the 'nosuid' option.| kit/Fo>
Oct 18 20:37:28 nephele coolwsd[176822]: If you are on SLES11, please set 'file_caps=1' as kernel boot option.
Oct 18 20:37:28 nephele coolwsd[176822]: frk-176822-176822 2022-10-18 20:37:28.496195 +1100 [ coolforkit ] FTL  If you are on SLES11, please set 'file_caps=1' as kernel boot option.| kit/ForKit.cpp:685

Additional context

22.05.6-1 was working fine.

bernd-wechner commented 1 year ago

Let me revise that. I rebooted the server, and it now works with 22.05.6-3:

$ sudo service coolwsd status
● coolwsd.service - Collabora Online WebSocket Daemon
     Loaded: loaded (/lib/systemd/system/coolwsd.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-10-18 20:49:29 AEDT; 31min ago
   Main PID: 3206 (coolwsd)
      Tasks: 8 (limit: 18980)
     Memory: 312.3M
     CGroup: /system.slice/coolwsd.service
             ├─ 3206 /usr/bin/coolwsd --version --o:sys_template_path=/opt/cool/systemplate --o:child_root_path=/opt/cool/child-roots --o:file_server_root_path=/usr/share/coolwsd
             ├─ 3561 /usr/bin/coolforkit --systemplate=/opt/cool/systemplate --lotemplate=/opt/collaboraoffice --childroot=/opt/cool/child-roots/ --clientport=9980 --masterport=coolwsd-76aSz6cA --rlimits=lim>
             └─15451 /usr/bin/coolforkit --systemplate=/opt/cool/systemplate --lotemplate=/opt/collaboraoffice --childroot=/opt/cool/child-roots/ --clientport=9980 --masterport=coolwsd-76aSz6cA --rlimits=lim>

Oct 18 21:20:01 nephele coolwsd[3206]: wsd-03206-03938 2022-10-18 21:20:01.743864 +1100 [ websrv_poll ] DBG  Wopi capabilities request: /hosting/capabilities| wsd/COOLWSD.cpp:3886
Oct 18 21:20:01 nephele coolwsd[3206]: wsd-03206-03938 2022-10-18 21:20:01.743895 +1100 [ websrv_poll ] INF  convert-to: Requesting address is allowed: ::ffff:127.0.0.1| wsd/COOLWSD.cpp:3497
Oct 18 21:20:01 nephele coolwsd[3206]: wsd-03206-03938 2022-10-18 21:20:01.743913 +1100 [ websrv_poll ] INF  convert-to: Requesting address is allowed: 192.168.0.14| wsd/COOLWSD.cpp:3530
Oct 18 21:20:01 nephele coolwsd[3206]: wsd-03206-03938 2022-10-18 21:20:01.743983 +1100 [ websrv_poll ] INF  Sent capabilities.json successfully.| wsd/COOLWSD.cpp:3895
Oct 18 21:20:17 nephele coolwsd[3206]: wsd-03206-03937 2022-10-18 21:20:17.013127 +1100 [ accept_poll ] DBG  Inserting socket #19, address [::ffff:127.0.0.1], into websrv_poll| net/Socket.hpp:743
Oct 18 21:20:17 nephele coolwsd[3206]: wsd-03206-03938 2022-10-18 21:20:17.013272 +1100 [ websrv_poll ] DBG  Handling request: /hosting/capabilities| wsd/COOLWSD.cpp:3584
Oct 18 21:20:17 nephele coolwsd[3206]: wsd-03206-03938 2022-10-18 21:20:17.013312 +1100 [ websrv_poll ] DBG  Wopi capabilities request: /hosting/capabilities| wsd/COOLWSD.cpp:3886
Oct 18 21:20:17 nephele coolwsd[3206]: wsd-03206-03938 2022-10-18 21:20:17.013365 +1100 [ websrv_poll ] INF  convert-to: Requesting address is allowed: ::ffff:127.0.0.1| wsd/COOLWSD.cpp:3497
Oct 18 21:20:17 nephele coolwsd[3206]: wsd-03206-03938 2022-10-18 21:20:17.013398 +1100 [ websrv_poll ] INF  convert-to: Requesting address is allowed: 192.168.0.14| wsd/COOLWSD.cpp:3530
Oct 18 21:20:17 nephele coolwsd[3206]: wsd-03206-03938 2022-10-18 21:20:17.013509 +1100 [ websrv_poll ] INF  Sent capabilities.json successfully.| wsd/COOLWSD.cpp:3895

I guess it survived the failed font upgrade. Still a bug in the fonts package

thebearon commented 1 year ago

@bernd-wechner did the most recent version install fine for you?

timur-g commented 1 year ago

This was one time problem that is not normally reproducible. Also, reported didn't respond further. So I close this.