Hey, I got the same issue. I don’t know much about PHP but I finished by make it work.
I am running NextCloud 19 using Nginx proxy + fpm, based on the following docker-compose : https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/with-nginx-proxy/mariadb/fpm .
I started by installing Community Document Server NextCloud app, but having an error probably due to Docker security restrictions : (Error settings Exception: …/…/tools/allfontsgen, cf this post).
I then decide to run OnlyOffice in a dedicated docker container using OnlyOffice official image : onlyoffice/documentserver.
Extract of my docker-compose :
onlyoffice-document-server:
container_name: onlyoffice-document-server
image: onlyoffice/documentserver:latest
stdin_open: true
tty: true
restart: always
environment:
- VIRTUAL_HOST=office.XXX.fr
- LETSENCRYPT_HOST=office.XXX.fr
- LETSENCRYPT_EMAIL=yyy@XXX.fr
expose:
- '80'
- '443'
volumes:
- document_data:/var/www/onlyoffice/Data
- document_log:/var/log/onlyoffice
networks:
- proxy-tier
- default
After settings OnlyOffice app configuration in NextCloud, I got this error :
Error occurred in the document service: Error while downloading the document file to be converted.
Extract of my configuration :
I added “‘allow_local_remote_servers’ => true” to php.ini
Then i got the following error :
Error occurred in the document service: Error while downloading the document file to be converted.
I add a in “trusted_domains” of php.ini “web”, the docker service name exposing Nextcloud FPM.
Then it works.
Hope It can help.
Alexandre
