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

Exception: Error occurred in the document service: Error while downloading the document file to be converted.
/www/wwwroot/nextcloud/apps/onlyoffice/lib/documentservice.php - line 97:

OCA\Onlyoffice\DocumentService->ProcessConvServResponceError()

/www/wwwroot/nextcloud/apps/onlyoffice/controller/settingscontroller.php - line 333:

OCA\Onlyoffice\DocumentService->GetConvertedUri()

/www/wwwroot/nextcloud/apps/onlyoffice/controller/settingscontroller.php - line 171:

OCA\Onlyoffice\Controller\SettingsController->checkDocServiceUrl()

/www/wwwroot/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:

OCA\Onlyoffice\Controller\SettingsController->SaveAddress()

/www/wwwroot/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:

OC\AppFramework\Http\Dispatcher->executeController()

/www/wwwroot/nextcloud/lib/private/AppFramework/App.php - line 137:

OC\AppFramework\Http\Dispatcher->dispatch()

/www/wwwroot/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main()

<<closure>>

OC\AppFramework\Routing\RouteActionHandler->__invoke()

/www/wwwroot/nextcloud/lib/private/Route/Router.php - line 297:

call_user_func()

/www/wwwroot/nextcloud/lib/base.php - line 1007:

OC\Route\Router->match()

/www/wwwroot/nextcloud/index.php - line 37:

OC::handleRequest()

I use onlyoffice installed by docker.
I don’t understand what I set up wrong.
I used a reverse proxy server to proxy nexcloud and onlyoffice
os --version ubuntu20.04
php --version php7.4
nextcloud --version 19.0.1

docker pull onlyoffice/documentserver

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