Error while downloading the document file to be converted. - Vers: 7.5.0

Ask a how-to question

Document Server version: 7.5.0
Type of installation of the Document Server (docker, deb/rpm, exe) Deb
OS: Debian 11
Browser version: Brave 1.59
Nextcloud: 27.1.2

Started getting this error while trying to connect to new instance of docs server.


[onlyoffice] Error: Exception: Error occurred in the document service: Error while downloading the document file to be converted. at <<closure>>

0. /var/www/html/nextcloud/apps/onlyoffice/lib/DocumentService.php line 95
   OCA\Onlyoffice\DocumentService->ProcessConvServResponceError()
1. /var/www/html/nextcloud/apps/onlyoffice/lib/DocumentService.php line 446
   OCA\Onlyoffice\DocumentService->GetConvertedUri()
2. /var/www/html/nextcloud/apps/onlyoffice/lib/Controller/SettingsController.php line 181
   OCA\Onlyoffice\DocumentService->checkDocServiceUrl()
3. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
   OCA\Onlyoffice\Controller\SettingsController->SaveAddress()
4. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
   OC\AppFramework\Http\Dispatcher->executeController()
5. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch()
6. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
7. /var/www/html/nextcloud/lib/base.php line 1068
   OC\Route\Router->match()
8. /var/www/html/nextcloud/index.php line 36
   OC::handleRequest()

Config in NC:

"onlyoffice": {
            "verify_peer_off": true,
            "jwt_secret": "xxxxxxxxmy_keyxxxxxx6A",
            "jwt_header": "AuthorizationJwt"
        },

I have the header set in local.json:

        "inbox": {
          "header": "AuthorizationJwt"
          "inBody": false
        },
        "outbox": {
          "header": "AuthorizationJwt"
          "inBody": false
        }

It was working fine on a 7.4 instance of OO, so not sure what I missed, but I made sure the key matches. Any tips I haven’t found with searching? The example ds-example works fine browsing direct.
Thank you

Another clue here:

root@office:/var/log/onlyoffice/documentserver/docservice# cat out.log
[2023-10-19T18:46:14.098] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-10-19T18:46:14.101] [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
[2023-10-19T18:46:14.383] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.5.0. Build: 125
[2023-10-19T19:12:02.549] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-10-19T19:12:02.552] [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
[2023-10-19T19:12:02.567] [ERROR] [localhost] [docId] [userId] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)

So made some changes (set the header to ‘Authorization’ from AuthorizationJwt, and made an IP change) with no success. So set everything back for now.

The error changed to a 502 bad gateway when trying to browse to http://192.168.51.31/healthcheck

If I browse to http://192.168.51.31/example/ it comes up fine in a browser when I have the ds-example running. So it seems to work fine for editing documents, just does not connect to the /healthcheck. So I think I am close. On my old (7.4) instance of OO, I would see “true” on the healthcheck, the new 7.5 instance just gives the 502 error.

Here are the ds units output:

root@office:~# sudo systemctl list-units | grep ds
  ds-converter.service                                                        loaded activating auto-restart Docs Converter
  ds-docservice.service                                                       loaded activating auto-restart Docs Docservice
  ds-example.service                                                          loaded active     running      Docs Example
  ds-metrics.service                                                          loaded active     running      Docs Metrics

Shouldn’t ds-docservice be in running state?

Ok I got docservice to running state:

root@office:~# sudo systemctl list-units | grep ds
  ds-converter.service                                                        loaded active     running   Docs Converter
  ds-docservice.service                                                       loaded active     running   Docs Docservice
  ds-metrics.service                                                          loaded active     running   Docs Metrics

Both /welcome and /healthcheck are working now. Progress!

New error im troubleshooting:

[onlyoffice] Error: GuzzleHttp\Exception\ClientException: Client error: `GET https://docs.jewettfarm.com/cache/files/data/conv_check_303516845_docx/output.docx/check_303516845.docx?md5=jzHl7mLiH5ZanAt3XxuSQA&expires=1697812380&filename=check_303516845.docx` resulted in a `403 Forbidden` response:
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</c (truncated...)
 at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 69
    GuzzleHttp\Exception\RequestException::create("*** sensitive parameters replaced ***")
 1. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 204
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 2. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 153
    GuzzleHttp\Promise\Promise::callHandler()
 3. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php line 48
    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensitive parameters replaced ***")
 4. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 248
    GuzzleHttp\Promise\TaskQueue->run()
 5. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 224
    GuzzleHttp\Promise\Promise->invokeWaitFn()
 6. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 269
    GuzzleHttp\Promise\Promise->waitIfPending()
 7. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 226
    GuzzleHttp\Promise\Promise->invokeWaitList()
 8. /var/www/html/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 62
    GuzzleHttp\Promise\Promise->waitIfPending()
 9. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Promise\Promise->wait()
10. /var/www/html/nextcloud/lib/private/Http/Client/Client.php line 230
    GuzzleHttp\Client->request()
11. /var/www/html/nextcloud/apps/onlyoffice/lib/DocumentService.php line 374
    OC\Http\Client\Client->get()
12. /var/www/html/nextcloud/apps/onlyoffice/lib/DocumentService.php line 458
    OCA\Onlyoffice\DocumentService->Request()
13. /var/www/html/nextcloud/apps/onlyoffice/lib/Controller/SettingsController.php line 181
    OCA\Onlyoffice\DocumentService->checkDocServiceUrl()
14. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Onlyoffice\Controller\SettingsController->SaveAddress()
15. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
16. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
17. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
18. /var/www/html/nextcloud/lib/base.php line 1068
    OC\Route\Router->match()
19. /var/www/html/nextcloud/index.php line 36
    OC::handleRequest()

PUT /apps/onlyoffice/ajax/settings/address
from 192.168.50.20 by derek at 2023-10-20T14:17:59+00:00

The NC connector app is 8.2.2. Set the headers back to AuthorizationJwt and set the correct key.

Ok, looks like giving the new instance: bash /usr/bin/documentserver-update-securelink.sh

Has fixed the issue for me. Nextcloud can connect fine now.

Hello @dj423

We are glad to know that you’ve managed to solve the issue yourself.
I’m locking the tread. If you still have any questions in this regard, please contact me via PM so we can re-open it.

1 Like