Installation of OnlyOffice

NethServer Version: 8
Module: Nextcloud + Onlyoffice

Hi i have install onlyoffice and i read the wiki GitHub - mrmarkuz/ns8-onlyoffice

I have configured the install. It’s call onlyoffice3. I have setup a unique fqdn and request a certificate.

But when i want to set up the jwt secret on the onlyonffice panel from nextcloud app i don’t see the link for “onlyoffice”.

Whats do i wrong ?

Did you install and enable the Onlyoffice app in Nextcloud?

1 Like

I go to the application and it was already activate.

I have desactivate it and now i can see the option.

But when i wrote the jwt_secret and save i have this message

Erreur durant la tentative de connexion (Client error: `GET https://myadresse.domain.fr:8082/healthcheck\` resulted in a `404 Not Found` response:
404 page not found

Port 8082 isn’t needed anymore in NS8, just enter the Onlyoffice FQDN like https://myadresse.domain.fr

Hi.

now Onlyoffice is ok.

But in nextcloud ==> Application i have this error :

Error during connection attempt (An error occurred in the document service: Error while downloading the document file to be converted.

i Think you need to insert the JWT_SECRET in Nextcloud server parameter

to get it if the app is onlyoffice1

runagent -m onlyoffice1 grep JWT_SECRET environment

1 Like

Do Nextcloud and Onlyoffice use a valid certificate?
Is the latest Onlyoffice 1.1.4 installed?

Yes i do that and i write the secret jwt on the administration page, it’s waiting about 20second and this message appear.

Do Nextcloud and Onlyoffice use a valid certificate?
Is the latest Onlyoffice 1.1.4 installed?

Yes i have request a let’s encrypt certificate on the settings and force http to https

It’s the version 1.1.4 .

in the log of onlyoffice i have this error :

2026-02-20T06:53:13+01:00 [1:onlyoffice4:onlyoffice-app]     at async Object.downloadUrlPromise (/snapshot/server/Common/sources/utils.js)
2026-02-20T06:53:14+01:00 [1:onlyoffice4:onlyoffice-app] [2026-02-20T05:53:14.460] [ERROR] [localhost] [check_1074138877] [userId] nodeJS - error downloadFile:url=https://mysrv.mydomain.fr/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.aps19vsnBKajaBWqgNYlekMqpQT2yCkTfBmR-mjA4Fg;attempt=3;code:ECONNREFUSED;connect:undefined Error: connect ECONNREFUSED 127.0.1.1:443

My secret key is aRG0VRQEg4GvXLK1KgaHcXp3HNHXOodZ

the domain mysrv.mydomain.fr is not my real domain i have delete him on the post.

oh i have read two time but in the log the domain is not the good domain.

The domain for nextcloud is nextcloudv8.mydomain.fr

but the domain for onlyoffice is nextcloud.mydomain.fr

and the log say that it’s pointing to nextcloudv8. That strange ? On the settings of onlyoffice in nextcloud i write nextcloud.mydomain.fr

2026-02-20T06:53:13+01:00 [1:onlyoffice4:onlyoffice-app]     at async Object.downloadUrlPromise (/snapshot/server/Common/sources/utils.js)
2026-02-20T06:53:14+01:00 [1:onlyoffice4:onlyoffice-app] [2026-02-20T05:53:14.460] [ERROR] [localhost] [check_1074138877] [userId] nodeJS - error downloadFile:url=https://nextcloudv8.mydomain.fr/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.aps19vsnBKajaBWqgNYlekMqpQT2yCkTfBmR-mjA4Fg;attempt=3;code:ECONNREFUSED;connect:undefined Error: connect ECONNREFUSED 127.0.1.1:443

Did you set the node FQDN to the same name as the Nextcloud FQDN nextcloudv8.mydomain.fr?
In that case the Nextcloud URL isn’t reachable from the onlyoffice container because the node FQDN resolves to localhost.
Please check the node FQDN at the nodes page, see also Cluster management — NS8 documentation

yes it’s the same FQDN for the node and nextcloud.

it’s nextcloudv8.mydomain.fr

Now i have Erreur durant la tentative de connexion (cURL error 7: Failed to connect to onlyoffice.mydomain.fr port 443 after 1 ms: Could not connect to server (see https://curl

But when i go to onlyoffice.mydomain.fr/heathcheck its write true.

I think that’s the issue.
Please try to use another node FQDN like node.mydomain.fr. You can change it on the nodes page, see Cluster management — NS8 documentation

1 Like

Ok. I have ask to my isp to create an another subdomain and i reboot nethserver when it’s create.

1 Like

Thank you very much. that was the problem after restart all be fine !! :smile:

2 Likes