Getting error while starting collabora with docker

Hi There,
i’m trying to run collabora office locally just starting docker using collabora server i got this errors could anyone help me to debug this.
Error message: kit-00034-00034 2025-03-21 07:09:24.895319 +0000 [ kit_spare_002 ] ERR Failed to get the realpath of [/opt/cool/child-roots/1-713ffaae/tmp/sharedpresets/template] (ENOENT: No such file or directory)| common/FileUtil.cpp:284
kit-00034-00034 2025-03-21 07:09:24.895381 +0000 [ kit_spare_002 ] ERR linkOrCopy: nftw() failed for ‘/opt/cool/child-roots/1-713ffaae/tmp/sharedpresets/template’| kit/Kit.cpp:594
kit-00035-00035 2025-03-21 07:09:24.901232 +0000 [ kit_spare_003 ] ERR Failed to get the realpath of [/opt/cool/child-roots/1-713ffaae/tmp/sharedpresets/template] (ENOENT: No such file or directory)| common/FileUtil.cpp:284
kit-00035-00035 2025-03-21 07:09:24.901274 +0000 [ kit_spare_003 ] ERR linkOrCopy: nftw() failed for ‘/opt/cool/child-roots/1-713ffaae/tmp/sharedpresets/template’| kit/Kit.cpp:594
kit-00036-00036 2025-03-21 07:09:24.902316 +0000 [ kit_spare_004 ] ERR Failed to get the realpath of [/opt/cool/child-roots/1-713ffaae/tmp/sharedpresets/template] (ENOENT: No such file or directory)| common/FileUtil.cpp:284
kit-00036-00036 2025-03-21 07:09:24.902350 +0000 [ kit_spare_004 ] ERR linkOrCopy: nftw() failed for ‘/opt/cool/child-roots/1-713ffaae/tmp/sharedpresets/template’| kit/Kit.cpp:594
wsd-00001-00032 2025-03-21 07:10:33.982772 +0000 [ websrv_poll ] ERR FileServerRequestHandler::NotAuthenticated: No authentication information found| wsd/FileServer.cpp:1130

Hii @Kishore-github23 welcome to collabora online forum

Can you please first check the following points ?

Check Docker Capabilities

  • Collabora requires the MKNOD capability to create device nodes in its jail environment. Ensure your Docker run command includes:
--cap-add MKNOD

Verify Storage Permissions

  • If you’re using a volume or bind mount for persistence, ensure the host directory has the right permissions. Run:
chmod -R 755 /path/to/your/storage
chown -R 998:998 /path/to/your/storage

Then:

  1. Reset the Container
  • Stop and remove the container, then restart it to rule out a corrupted state:
docker stop <container_id>
docker rm <container_id>
docker run -t -d -p 9980:9980 --cap-add MKNOD collabora/code
  1. Check Image Version
  • Ensure you’re using a recent version of the collabora/code image. Pull the latest:
docker pull collabora/code

Thanks
Darshan

Actually i’m trying to run this collabora office in local environment with docker using spring boot application without any cloud integration i just wanna run this locally can you tell me the setup steps and is it possible to run like this? the issues here running is 1.having error running docker with collabora server, the error message i have already shared
2.but i can get response from collabora “OK” even it has error
3.integration part is not working (which is returns like 404 error contact administrator and the collabora url - http://localhost:9980/loleaflet/dist/loleaflet.html?)
these issues are running into my project can you help me to resolve this? and i have checked your points which is all correct i’m using it

Explanation: Integrating Collabora with Spring Boot

Since you’re not using Nextcloud, your Spring Boot app must act as a basic WOPI host or bypass Collabora’s WOPI needs for local testing. The 404 Contact Administrator error at http://localhost:9980/loleaflet/dist/loleaflet.html happens because Collabora expects a WOPI client to provide a file URL and access token, which your app isn’t doing yet.

Why the Error Occurs

  • Collabora’s Loleaflet editor needs a WOPISrc URL with a file and token.
  • Without these, it can’t load a file and shows the 404 Contact Administrator error.

Integration Approach

  1. Run Collabora Locally

    • Use Docker to host Collabora on port 9980.
    • Configure it to trust your Spring Boot app as a file source.
  2. Set Up Spring Boot as a WOPI Host

    • Create an endpoint for file metadata (name, size, etc.).
    • Create another for file content (raw bytes).
    • Include a file ID and token in requests.
  3. Connect Them

    • Load Collabora’s editor with a URL linking to your Spring Boot endpoints.

Hint to Fix the 404 Error

  • Ensure Spring Boot provides file details and content Collabora expects.
  • Test your endpoints separately, then use them in Collabora’s URL.

@Kishore-github23
It’d be awesome if you could add a Java example based on this setup to the Collabora Online SDK Examples project here: https://github.com/CollaboraOnline/collabora-online-sdk-examples. If you do, let us know how it goes or if there’s anything we can improve—your contribution would be a great addition!

Thanks
Darshan

Hi darshan
for now let us ignore integration, i’m trying to install the collabora without ssl and no volume mapping. i have attached docker compose file, hence why am i getting below error. Am i missing anything else?
Error message:
kit-00035-00035 2025-03-24 08:42:29.441904 +0000 [ kit_spare_003 ] ERR Failed to get the realpath of [/opt/cool/child-roots/1-cee655ae/tmp/sharedpresets/template] (ENOENT: No such file or directory)| common/FileUtil.cpp:284
kit-00034-00034 2025-03-24 08:42:29.441904 +0000 [ kit_spare_002 ] ERR Failed to get the realpath of [/opt/cool/child-roots/1-cee655ae/tmp/sharedpresets/template] (ENOENT: No such file or directory)| common/FileUtil.cpp:284
kit-00035-00035 2025-03-24 08:42:29.441956 +0000 [ kit_spare_003 ] ERR linkOrCopy: nftw() failed for ‘/opt/cool/child-roots/1-cee655ae/tmp/sharedpresets/template’| kit/Kit.cpp:594
kit-00034-00034 2025-03-24 08:42:29.441956 +0000 [ kit_spare_002 ] ERR linkOrCopy: nftw() failed for ‘/opt/cool/child-roots/1-cee655ae/tmp/sharedpresets/template’| kit/Kit.cpp:594
kit-00036-00036 2025-03-24 08:42:29.443057 +0000 [ kit_spare_004 ] ERR Failed to get the realpath of [/opt/cool/child-roots/1-cee655ae/tmp/sharedpresets/template] (ENOENT: No such file or directory)| common/FileUtil.cpp:284
kit-00036-00036 2025-03-24 08:42:29.443095 +0000 [ kit_spare_004 ] ERR linkOrCopy: nftw() failed for ‘/opt/cool/child-roots/1-cee655ae/tmp/sharedpresets/template’| kit/Kit.cpp:594
wsd-00001-00022 2025-03-24 08:46:45.331949 +0000 [ asyncdns ] WRN Waking up dead poll thread [main], started: false, finished: false| net/Socket.hpp:826
wsd-00001-00001 2025-03-24 08:46:45.332035 +0000 [ coolwsd ] WRN Waking up dead poll thread [main], started: false, finished: false| net/Socket.hpp:826
docker-compose file.txt (343 Bytes)

Hey @Kishore-github23,

Please check the SDK documentation for setup:

Thanks,
Darshan