# \[onlyonffice\]Exception: Error occurred in the document service: Error while downloading the document file to be converted

**URL:** <https://help.nextcloud.com/t/onlyonffice-exception-error-occurred-in-the-document-service-error-while-downloading-the-document-file-to-be-converted/88017>\
**Category:** 📄 Office\
**Tags:** onlyoffice\
**Created:** [July 23, 2020, 8:10am UTC](https://help.nextcloud.com/t/onlyonffice-exception-error-occurred-in-the-document-service-error-while-downloading-the-document-file-to-be-converted/88017 "2020-07-23T08:10:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alexbal](https://help.nextcloud.com/letter_avatar/alexbal/32/5_5575768a8748004e209b776fc1b2916d.png) [@alexbal](https://help.nextcloud.com/u/alexbal)\
**Post date:** [December 12, 2020, 11:29am UTC](https://help.nextcloud.com/t/onlyonffice-exception-error-occurred-in-the-document-service-error-while-downloading-the-document-file-to-be-converted/88017/2 "2020-12-12T11:29:24Z")

</div>

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](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](https://help.nextcloud.com/t/after-update-to-nextcloud-18-05-from-18-04-onlyoffice-stops-working/83948)).

I then decide to run OnlyOffice in a dedicated docker container using OnlyOffice official image : onlyoffice/documentserver.

Extract of my docker-compose :

```auto
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 :

```auto
Error occurred in the document service: Error while downloading the document file to be converted.

```

Extract of my configuration :

 ![image](https://help.nextcloud.com/uploads/default/original/3X/9/8/9888baffe7e88359fdd01c6bafa79a6db9285446.png)

I added “‘allow\_local\_remote\_servers’ =\> true” to php.ini

Then i got the following error :

```auto
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

---

_[View the full topic](https://help.nextcloud.com/t/onlyonffice-exception-error-occurred-in-the-document-service-error-while-downloading-the-document-file-to-be-converted/88017)._
