Onlyoffice ne fonctionne plus avec Nextcloud

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1
What app is this about: Nextcloud et Onlyoffice

Describe your issue

Bonjour,

J’ai fait les nouvelle mise à jour pour passer yunohost en 12.1 et Nextcloud en version 31.0.8
Onlyoffice est en version 9.0.4~ynh4

Depuis onlyoffice ne fonctionne plus avec nextcloud.

J’ai l’erreur suivante lorsque j’essai de réenregister les parametre de onlyoffice dans Nextcloud :

Erreur durant la tentative de connexion (Une erreur s’est produite dans le service de document: Conversion error) (version 9.0.4.54)

onlyoffice et nextcloud sont tout les deux sur des sous domaine différent. Il chaque appli est seule sur son sous domaine.

J’ai fait des recherches mais le seul probleme similaire la solutioné tait justement de les mettre sur des sous domaine différent, ce qui est déjà mon cas.

J’ai essayé de désintaller et réinstaller onlyoffice, sans succès.

Je suis donc coincé. Si quelqu’un a une idée, je suis preneur.

Share relevant logs or error messages

Erreur durant la tentative de connexion (Une erreur s’est produite dans le service de document: Conversion error) (version 9.0.4.54)

Log Onlyoffice :

::1 - - [24/Aug/2025:20:04:10 +0200] “GET /healthcheck HTTP/1.1” 200 4 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:04:10 +0200] “POST /coauthoring/CommandService.ashx HTTP/1.1” 200 32 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:04:11 +0200] “POST /converter?shardKey=check_707217706 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:04:31 +0200] “GET /healthcheck HTTP/1.1” 200 4 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:04:31 +0200] “POST /coauthoring/CommandService.ashx HTTP/1.1” 200 32 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:04:32 +0200] “POST /converter?shardKey=check_1323479355 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:05:16 +0200] “GET /healthcheck HTTP/1.1” 200 4 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:05:16 +0200] “POST /coauthoring/CommandService.ashx HTTP/1.1” 200 32 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:05:17 +0200] “POST /converter?shardKey=check_1622464121 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:06:08 +0200] “GET /healthcheck HTTP/1.1” 200 4 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:06:08 +0200] “POST /coauthoring/CommandService.ashx HTTP/1.1” 200 32 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:06:09 +0200] “POST /converter?shardKey=check_418081451 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:15:20 +0200] “GET /healthcheck HTTP/1.1” 200 4 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:15:20 +0200] “POST /coauthoring/CommandService.ashx HTTP/1.1” 200 32 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:15:21 +0200] “POST /converter?shardKey=check_113245251 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:24 +0200] “GET /healthcheck HTTP/1.1” 200 4 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:24 +0200] “POST /coauthoring/CommandService.ashx HTTP/1.1” 200 32 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:25 +0200] “POST /converter?shardKey=check_226408035 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:44 +0200] “GET /healthcheck HTTP/1.1” 200 4 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:44 +0200] “POST /coauthoring/CommandService.ashx HTTP/1.1” 200 32 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:45 +0200] “POST /converter?shardKey=check_1787667705 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:48 +0200] “GET /healthcheck HTTP/1.1” 200 4 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:48 +0200] “POST /coauthoring/CommandService.ashx HTTP/1.1” 200 32 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:49 +0200] “POST /converter?shardKey=check_1796606341 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:52 +0200] “GET /healthcheck HTTP/1.1” 200 4 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:52 +0200] “POST /coauthoring/CommandService.ashx HTTP/1.1” 200 32 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:20:53 +0200] “POST /converter?shardKey=check_691105309 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”
::1 - - [24/Aug/2025:20:21:20 +0200] “POST /converter?shardKey=4271293817 HTTP/1.1” 200 12 “-” “Nextcloud Server Crawler”

1 Like

Same problem here.

J’ai essayé de désinstaller et réinstaller complètement Nextcloud et Onlyoffice

J’ai même changer Nextcloud de sous domaine.

J’ai fait toute les petites mises à jours qui sont sortie depuis dans yunohost

Rien ne fonctionne. Problème toujours présent.

J’ai avancé un peu mais sans résoudre le problème.

J’ai un second serveur yunohost, donc j’ai installé onlyoffice dessus et je me suis servit de celui la sur le nextcloud du premier.

Je n’ai plus d’erreur dans nextcloud lorsque je configure les paramtre…mais ça ne fonctionne toujours pas

Lorsque j’essai d’ouvrir un document, avec firefox j’ai le message : “Firefox ne peut pas ouvrir cette page”, avec edge j’ai “onlyoffice.******.fr a refusé de se connecter.”

Donc au final je suis toujours bloqué

Est-ce que vous avez suivis les 3 points précisés dans la FAQ ?

Je ne parviens pas à connecter mon application à ce serveur OnlyOffice

  • Vérifiez que vous disposez d’un certificat Let’s Encrypt (https) valide pour votre application et ce serveur OnlyOffice
  • Vérifiez que votre application et l’application OnlyOffice sont publiques (afin que le groupe de visiteurs puisse accéder à l’application ou au moins à l’API…).
  • Vérifiez que votre application ne contient pas de mécanisme interdisant les requêtes locales sur 127.0.0.1. Si c’est le cas, vous pouvez essayer de supprimer rm /etc/dsnmasq.d/DOMAIN et redémarrer le service dnsmasq systemctl restart dnsmasq.

Logs

Pour en savoir plus, il faut chercher l’erreur exacte:

  1. lancer tail -f /var/log/onlyoffice/converter.log
  2. en parrallèle, essayer de connecter onlyoffice à nextcloud
  3. récupérer l’erreur

Salut @stephanem @Guido

Etes-vous dans le cas de certificats autosignés ?
Si c’est le cas, la modification décrite ci-dessous rend OO fonctionnel et l’erreur blablabla Conversion error) (version 9.0.4.54)disparaît.

  • désactiver la vérification du certificat dans Nextcloud>Admin>Onlyoffice. C’est la manipulation évidente mais qui ne suffit pas:
  • dans /var/www/onlyoffice/config/local.json changer la valeur de “rejectUnauthorized” de “0” en false (dans le default.json la valeur est le booléen true et non “1” -“0” et “1” st interprétés comme chaînes de caractères, donc pb-).
      },
      "requestDefaults": {
        "rejectUnauthorized": false
      }

  • sudo systemctl restart onlyoffice
  • sauvegarde des paramètres dans Nextcloud>Admin>Onlyoffice

Thanks for the suggestions, ljf, but I will need some additional help here.

  • I have a valid Let’s Encrypt certificate for mydomain.tld, where nextcloud is installed, and for the subdomain office.mydomain.tld, where OnlyOffice is installed.

  • In Yunohost Web admin > Applications > OnlyOffice, I can see “all users” under “Users/groups with access”. I don’t know how to check this for the Nextcloud Onlyoffice application.

  • I don’t know how I can check if there is a mechanism interdicting local requests on 127.0.0.1. I looked at /etc/dnsmasq.d/DOMAIN, but I see nothing untoward there.

I do have valid Let’s Encrypt certificates, but I tried the suggestion of otm33 anyway, but no luck. Still the same error.

@stephanem

Vois-tu ton domaine nextcloud dans la ligne more_set_headers "Content-Security-Policy: frame-ancestors du fichier /etc/nginx/conf.d/onlyoffice.domain.tld/onlyoffice.conf ?

Could you share more info (logs and onlyoffice settings)?

Logs:

tail -f /var/log/onlyoffice/converter.log
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/src/Common/sources/utils.js)
[2025-09-21T03:45:36.059] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 4; availableParallelism: 4
[2025-09-21T03:45:36.092] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2025-09-21T03:45:36.119] [WARN] [localhost] [docId] [userId] nodeJS - worker 1822127 started.
[2025-09-21T08:17:09.430] [ERROR] [localhost] [check_1605193985] [userId] nodeJS - error downloadFile:url=https://cloud.crissp.be/nextcloud/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.0vthRVvkaQpqrr2aOQWsKHsGd8CWyFCnoOE5Unehd8s;attempt=1;code:EINVAL;connect:undefined Error: connect EINVAL fe80::4e72:b9ff:fe31:c342:443 - Local (:::0)
    at Function.from (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.handleRequestError (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.emit (node:events:529:35)
    at ClientRequest.<anonymous> (/snapshot/src/Common/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/src/Common/sources/utils.js)
[2025-09-21T08:17:10.442] [ERROR] [localhost] [check_1605193985] [userId] nodeJS - error downloadFile:url=https://cloud.crissp.be/nextcloud/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.0vthRVvkaQpqrr2aOQWsKHsGd8CWyFCnoOE5Unehd8s;attempt=2;code:EINVAL;connect:undefined Error: connect EINVAL fe80::4e72:b9ff:fe31:c342:443 - Local (:::0)
    at Function.from (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.handleRequestError (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.emit (node:events:529:35)
    at ClientRequest.<anonymous> (/snapshot/src/Common/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/src/Common/sources/utils.js)
[2025-09-21T08:17:11.452] [ERROR] [localhost] [check_1605193985] [userId] nodeJS - error downloadFile:url=https://cloud.crissp.be/nextcloud/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.0vthRVvkaQpqrr2aOQWsKHsGd8CWyFCnoOE5Unehd8s;attempt=3;code:EINVAL;connect:undefined Error: connect EINVAL fe80::4e72:b9ff:fe31:c342:443 - Local (:::0)
    at Function.from (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.handleRequestError (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.emit (node:events:529:35)
    at ClientRequest.<anonymous> (/snapshot/src/Common/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/src/Common/sources/utils.js)

I re-enabled the certificate checking while running the convertor.log command. Not sure if this is what you need, but do let me know if I can look elsewhere.

OnlyOffice settings are the default ones created at installation.

I guess you could try to upgrade on the testing branch, i have made some improvements:

yunohost app upgrade onlyoffice -u https://github.com/YunoHost-Apps/onlyoffice_ynh/tree/testing

The upgrade was succesful, but the problem persists. I checked the log by the same method, and the error seems gone:

tail -f /var/log/onlyoffice/converter.log
    at ClientRequest.<anonymous> (/snapshot/src/Common/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/src/Common/sources/utils.js)

But when I go to Nextcloud > Admin > OnlyOffice there is still the same error (Error while downloading the document file to be converted)

Your onlyoffice domain is now reachable over https : do you still get the same error ?

hi, same errors here, but
humhub works flawless with onlyoffice same server and nextcloud on an outside server works flawless too, connector and nextcloud - version are identic.

Could you return the result of

grep allowPrivateIPAddress /var/www/onlyoffice/config/local.json

There is no config directory and no local.json in that location. Do you mean /var/www/onlyoffice/config/local.json? There the out put is
"allowPrivateIPAddress": true,

And

grep reject /var/www/onlyoffice/config/local.json
"rejectUnauthorized": true

I also looked at the convertor.log again while saving the NC OnlyOffice app admin settings, and there is an error again:

sudo tail -f /var/log/onlyoffice/converter.log
    at ClientRequest.<anonymous> (/snapshot/src/Common/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/src/Common/sources/utils.js)
[2025-09-22T10:41:37.603] [ERROR] [localhost] [check_194448863] [userId] nodeJS - error downloadFile:url=https://cloud.crissp.be/nextcloud/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.0vthRVvkaQpqrr2aOQWsKHsGd8CWyFCnoOE5Unehd8s;attempt=1;code:EINVAL;connect:undefined Error: connect EINVAL fe80::4e72:b9ff:fe31:c342:443 - Local (:::0)
    at Function.from (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.handleRequestError (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.emit (node:events:529:35)
    at ClientRequest.<anonymous> (/snapshot/src/Common/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/src/Common/sources/utils.js)
[2025-09-22T10:41:38.610] [ERROR] [localhost] [check_194448863] [userId] nodeJS - error downloadFile:url=https://cloud.crissp.be/nextcloud/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.0vthRVvkaQpqrr2aOQWsKHsGd8CWyFCnoOE5Unehd8s;attempt=2;code:EINVAL;connect:undefined Error: connect EINVAL fe80::4e72:b9ff:fe31:c342:443 - Local (:::0)
    at Function.from (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.handleRequestError (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.emit (node:events:529:35)
    at ClientRequest.<anonymous> (/snapshot/src/Common/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/src/Common/sources/utils.js)
[2025-09-22T10:41:39.620] [ERROR] [localhost] [check_194448863] [userId] nodeJS - error downloadFile:url=https://cloud.crissp.be/nextcloud/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.0vthRVvkaQpqrr2aOQWsKHsGd8CWyFCnoOE5Unehd8s;attempt=3;code:EINVAL;connect:undefined Error: connect EINVAL fe80::4e72:b9ff:fe31:c342:443 - Local (:::0)
    at Function.from (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.handleRequestError (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at RedirectableRequest.emit (node:events:529:35)
    at ClientRequest.<anonymous> (/snapshot/src/Common/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/src/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.downloadUrlPromise (/snapshot/src/Common/sources/utils.js)


J’ai créé une issue pour ce problème Boolean wrap with double quote when we bind a json property to a config panel property · Issue #2671 · YunoHost/issues · GitHub

1 Like