Closed sebastiaanveld closed 3 months ago
Anyone know how to troubleshoot this in the docker container?
@Rash419 please would you like to share some thoughts?
Hello, Thanks for reporting
You can get the logs of container by running the following command:
sudo docker ps
docker logs <container_name> > ./code.log
This command will create file in your current working directory please share it with usI suspect the coolwsd.xml that you are copying to container doesn't have enough permission
If so you will see this log entry
Failed to initialize COOLWSD: Access to file denied: /etc/coolwsd/coolwsd.xml
To fix this please do
chmod 644 path/to/coolwsd.xml
Thanks @Rash419 for the follow up. Other rights were not set on /etc/coolwsd/coolwds.xml as you expected. This solves the restarting issue of the container.
After starting the container: Within the container I see coolwsd.cfg is now replaced with the file I mount starting the container. But I cannot find the tahoma font in the container and it's not listed in /var/log/fontconfig.log, I guess is should correct?
Additionally when I now edit a document the Fontmenu dropdown is gone for a while in the menubar before it appears after opening a document.
When it appears the tahoma font is not listed:
Here is the code.log: code.log
Not seen this issue in recent builds, closing for now.
Describe the Bug
Docker container keeps restarting after setting up fonts in coolwsd.xml
Steps to Reproduce
-v /etc/coolwsd/coolwsd.xml:/etc/coolwsd/coolwsd.xml
so it should pickup the ajusted config file.Starting the container (without the -v section):
docker run -t -d -p 127.0.0.1:9980:9980 --add-host="www.myserver.nl:10.10.10.10" --add-host="code.myserver.nl:10.10.10.11" -e aliasgroup1=https://www.myserver.nl:443 -e "username=admin" -e "password=mypassword" -e server_name=code.myserver.nl --restart=unless-stopped collabora/code:latest
Mind --add-host="www.myserver.nl:10.10.10.10" makes sure the container can resolve NC locally as there is no local DNS server for the VM's to use, else the record would resolve to the external internet IP address.Same problem happens if I copy the coolwsd.xml into the container itself and publish it as a new version. On starting the container keeps restarting as well.
Expected Behavior
Container shoud pick up the ajusted config and download fonts from NC if available.
Actual Behavior
Container keeps restarting.
Screenshots
-
Environment
Docker running openSUSE LEAP 15.4, latest patches COOLWSD version: 23.05.5.1 (git hash: 1fea227 (E)) LOKit version: Collabora Office 23.05.5.1 (git hash: c8d84f5) Served by: Debian GNU/Linux 12 (bookworm) Server ID: 16832339
Nextcloud 27.1.2 running op Ubuntu.
Both VM's run behind a HAproxy VM.
Additional Context
Fonts.json
{"kind":"fontconfiguration","server":"MyServer (https:\/\/www.myserver.nl)","fonts":[]}
Or if I upload a fonts for testing into NC fonts.json get into containing:
{"kind":"fontconfiguration","server":"MyServer (https:\/\/www.myserver.nl)","fonts":[{"uri":"https:\/\/www.myserver.nl\/apps\/richdocuments\/settings\/fonts\/tahoma.ttf","stamp":"c7fba35618f2406097db8702aeaea5a4"}]}
coolwds.xml as in /etc/coolwds/coolwsd/xml `
`