Installation complete, but example run fails with error

Document Server version:
OnlyOffice Document Server 8.2.2

Type of installation of the Document Server:
Docker, using the following Docker Compose file:

services:
  onlyoffice-documentserver:
    image: onlyoffice/documentserver:8.2.2
    container_name: onlyoffice-documentserver
    ports:
      - '12700:80'
    environment:
      - DB_TYPE=mariadb
      - DB_HOST
      - DB_PORT
      - DB_NAME
      - DB_USER
      - DB_PWD
      - AMQP_URI
      - REDIS_SERVER_HOST
      - REDIS_SERVER_PORT
      - REDIS_SERVER_PASS
      - JWT_ENABLED=true
      - JWT_SECRET
      - JWT_HEADER=Authorization
      - JWT_IN_BODY=true
      - ALLOW_META_IP_ADDRESS=true
      - ALLOW_PRIVATE_IP_ADDRESS=true
    volumes:
      - smb_onlyoffice_logs_volume:/var/log/onlyoffice
      - smb_onlyoffice_data_volume:/var/www/onlyoffice/Data
      - smb_onlyoffice_lib_volume:/var/lib/onlyoffice
      - smb_onlyoffice_conf_volume:/etc/onlyoffice/documentserver
    stdin_open: true
    stop_grace_period: 60s
    restart: always

volumes:
  smb_onlyoffice_data_volume:
    driver: local
    driver_opts:
      type: cifs
      o: username=${SMB_USERNAME},password=${SMB_PASSWORD},uid=0,gid=0,file_mode=0777,dir_mode=0777,vers=3.0
      device: "//192.168.1.201/OnlyOffice/data"
  smb_onlyoffice_logs_volume:
    driver: local
    driver_opts:
      type: cifs
      o: username=${SMB_USERNAME},password=${SMB_PASSWORD},uid=0,gid=0,file_mode=0777,dir_mode=0777,vers=3.0
      device: "//192.168.1.201/OnlyOffice/logs"
  smb_onlyoffice_lib_volume:
    driver: local
    driver_opts:
      type: cifs
      o: username=${SMB_USERNAME},password=${SMB_PASSWORD},uid=0,gid=0,file_mode=0777,dir_mode=0777,vers=3.0
      device: "//192.168.1.201/OnlyOffice/lib"
  smb_onlyoffice_conf_volume:
    driver: local
    driver_opts:
      type: cifs
      o: username=${SMB_USERNAME},password=${SMB_PASSWORD},uid=0,gid=0,file_mode=0777,dir_mode=0777,vers=3.0
      device: "//192.168.1.201/OnlyOffice/conf"

OS:
debian 12 (LXC in PVE 8.3.2)
docker 27.4.1

Browser version:
latest Edge Chrome

Additional information:
Redis, RabbitMQ, and MariaDB are installed in a TrueNAS VM hosted on a PVE server. I’ve confirmed that OnlyOffice can successfully connect to these services. OnlyOffice Document Server is installed in a PVE LXC container using Docker.
When I completed the installation of OnlyOffice and enabled the example test, I encountered an error when trying to open a file:
“An error has occurred while opening the file.”



From the browser’s developer tools, I can see that all requests return with a status of 200 without any exceptions. However, there are issues logged in the browser console:

Server logs show the following:
nginx.error.log:


docservice.out.log:

converter.out.log:

Hello @rock
Please bear in mind that we haven’t tested installation on LXC containers, so we cannot predict possible issues. However, the error entries are related to lack of permissions and I recommend to check your LXC container settings. Just for a test, please try to use separate server (or VM) and check the result.

Also I’ll leave here useful links for our well-tested compose file and system requirements:
https://helpcenter.onlyoffice.com/installation/docs-community-docker-compose.aspx

1 Like

Thanks for the reminder. After checking, I found the issue was due to CIFS mount permissions. Adding the noperm option resolved it. However, I noticed some configuration inconsistencies: while I’ve set up external PostgreSQL, Redis, and RabbitMQ services, I found those Docker volumes internally:


/var/lib/rabbitmq
/var/lib/redis
/usr/share/fonts/truetype/custom
/var/lib/postgresql

Is this by design?

Also, can Redis be configured to use different databases? All my applications are stuck on database 0 :disappointed:

Yes, according to official guides these dependencies (PostgreSQL, Redis, and RabbitMQ services) are pre-installed in the docker container to ensure proper operation of Document server. The entire docker container is provided as ready-to-go solution:
https://helpcenter.onlyoffice.com/installation/docs-community-install-docker.aspx
https://helpcenter.onlyoffice.com/installation/docs-community-install-script.aspx
However, we haven’t checked your installation type (LXC container in TrueNas server), so we cannot guarantee stable work. Please bear in mind that we always recommend following the official guides.

Also, can Redis be configured to use different databases? All my applications are stuck on database 0 :disappointed:

It’s possible for docker installation on the installation step to specify external Redis database:
https://helpcenter.onlyoffice.com/installation/docs-enterprise-install-docker.aspx#:~:text=to%20rabbitmq.-,REDIS_SERVER_HOST,-%3A%20The%20IP%20address

Are you using commercial license? Redis is required by Docs Enterprise edition, this dependency doesn’t exist in Community edition. If you have commercial license, it’s better to contact colleagues of mine at https://onlyofficesupport.zendesk.com/ to get prompt replies.