Bug 127750 - LibreOffice Online latest Docker images failed lokit preinit because of missing dependencies for libmergedlo.so
Summary: LibreOffice Online latest Docker images failed lokit preinit because of missi...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.4.0.0.alpha1+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-24 21:13 UTC by Bertrand Presles
Modified: 2020-04-24 18:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Fixed Dockerfile that installs the missing dependencies (1.67 KB, patch)
2019-10-09 20:10 UTC, Bertrand Presles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Presles 2019-09-24 21:13:15 UTC
Description:
Using recent build of libreoffice/online:master Docker images results to error:

Failed to load /opt/libreoffice/program/libmergedlo.so: libxcb-shm.so.0: cannot open shared object file: No such file or directory
frk-00032-00032 2019-09-24 21:02:57.310378 [ forkit ] FTL  Failed to load /opt/libreoffice/program/libmergedlo.so:
Failed to preinit lokit.
frk-00032-00032 2019-09-24 21:02:57.310488 [ forkit ] FTL  Failed to preinit lokit.| kit/ForKit.cpp:543

The missing dependencies are:

- libxcb-shm0
- libxcb-render0
- libxrender1
- libxext6

Resolution:

Add the above dependencies in the "apt install" command in Dockerfile for libreoffice/online docker image.

Steps to Reproduce:
1.Pull latest docker image for libreoffice/online:master: docker pull libreoffice/online:master
2. Run a container from this image: docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=yourdomain\\.com' --restart always --name libreoffice --cap-add MKNOD libreoffice/online:master
3.View the container log: docker logs libreoffice

Actual Results:
Upon startup the container based on libreoffice/online:master image reports the following error:

Failed to load /opt/libreoffice/program/libmergedlo.so: libxcb-shm.so.0: cannot open shared object file: No such file or directory
frk-00032-00032 2019-09-24 21:02:57.310378 [ forkit ] FTL  Failed to load /opt/libreoffice/program/libmergedlo.so:
Failed to preinit lokit.
frk-00032-00032 2019-09-24 21:02:57.310488 [ forkit ] FTL  Failed to preinit lokit.| kit/ForKit.cpp:543

Expected Results:
Container base on libreoffice/online:master is starting correctly.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Bertrand Presles 2019-10-09 20:10:23 UTC
Created attachment 154870 [details]
Fixed Dockerfile that installs the missing dependencies
Comment 2 Buovjaga 2020-04-24 18:28:54 UTC
Looking at the current dockerfile, these all seem to be included https://git.libreoffice.org/online/+/master/docker/Dockerfile