Error OnlyOffice Update on 8.2.1

Hello,

We are using official docker image from hub.docker.com/r/onlyoffice/documentserver/tags
Currently on 8.1 everything is ok, we would like update on 8.2.1, and after that our app OnlyOffice got this error on Nextcloud.

  • Cannot GET /8.2.1/-468XXXX/web-apps/apps/documenteditor/main/index_loader.html

I launched update with (.update sh)

#!/bin/bash

cd /srv/onlyoffice
docker compose pull
docker compose up -d

Docker Compose

services:
    documentserver-ee:
        ports:
            - 80:80
            - 443:443
        restart: always
        volumes:
            - ./logs:/var/log/onlyoffice
            - ./data:/var/www/onlyoffice/Data
            - ./lib:/var/lib/onlyoffice
            - ./db:/var/lib/postgresql
            - ./ds-docservice.conf:/etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf
            - ./fonts:/usr/share/fonts/uness 
        environment:
            - JWT_SECRET=XXXX
#            - JWT_HEADER=AuthorizationJwt
        image: onlyoffice/documentserver-ee:8.1
systemctl list-units | grep ds
  run-credentials-systemd\x2dsysctl.service.mount                                                       loaded active mounted   /run/credentials/systemd-sysctl.service
  run-credentials-systemd\x2dsysusers.service.mount                                                     loaded active mounted   /run/credentials/systemd-sysusers.service
  run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount                                            loaded active mounted   /run/credentials/systemd-tmpfiles-setup.service
  run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev.service.mount                                     loaded active mounted   /run/credentials/systemd-tmpfiles-setup-dev.service

From docker Onlyoffice Log

root@9342393d7010:/# tail -f /var/log/onlyoffice/documentserver/docservice/out.log
[2024-11-19T07:50:49.641] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.2.1. Build: 38
[2024-11-19T07:53:24.854] [WARN] [localhost] [docId] [userId] nodeJS - start shutdown:true
[2024-11-19T07:53:24.855] [WARN] [localhost] [docId] [userId] nodeJS - active connections: 0
[2024-11-19T07:53:24.855] [WARN] [localhost] [docId] [userId] nodeJS - end shutdown
[2024-11-19T07:53:48.024] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2024-11-19T07:53:48.039] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2024-11-19T07:53:48.294] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.1.3. Build: 4
[2024-11-19T07:54:23.531] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2024-11-19T07:54:23.534] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2024-11-19T07:54:23.670] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 8.1.3. Build: 4

  • ONLYOFFICE Docs Enterprise Edition installed
  • Starting from version 7.2, JWT is enabled by default
  • Nextcloud 30.0.2

Thanks,
Regards

Hello @JeanBon,
- ./ds-docservice.conf:/etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf
please note that it is incorrect to mount any of the Document Server configs including Nginx configs to the host, as it leads to Document Server malfunction. We changed anti-caching mechanism since version 8.2 that is set exactly in ds-docservice.conf. Please remove this mount from the deployment and check if the issue still persists.

2 Likes

Sound good !
Thanks

was there a time in the past that this was recommended?
my docker-compose setup also had a mount for /etc/onlyoffice/documentserver/nginx

maybe there was a need to customize it in the past?

anyway, disabling that mount also fixed it for me!
thanks

Hello,

was there a time in the past that this was recommended?
my docker-compose setup also had a mount for /etc/onlyoffice/documentserver/nginx
maybe there was a need to customize it in the past?

No, we have never recommended that as the config might be changed in the newer versions of the Document Server.

I am glad the issue has been resolved.