Onlyoffice 8.3.3.1

The Nextcloud language settings should be used in Onlyoffice, but I didn’t test…

Perfect!! That worked. Good you found that, during my search I only found difficult settings in config files and templates :slight_smile:

1 Like

Error connecting ONLYOFFICE 8.0.1.31
“Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 8.0.1.31)”

NethServer 8 core - 2.9.1
Nextcloud and ONLYOFFICE are installed on the same Nodes
TLS certificates - Obtained
Clean installation, parameters:

Nextcloud environment
IMAGE_URL=Package nextcloud · GitHub
MARIADB_IMAGE=docker.io/mariadb:10.6.17
MODULE_ID=nextcloud1
NEXTCLOUD_APP_IMAGE=Package nextcloud-app · GitHub
NGINX_IMAGE=docker.io/nginx:1.25.4-alpine
NODE_ID=1
REDIS_IMAGE=docker.io/redis:6.2.12-alpine
TCP_PORT=20010
TCP_PORTS=20010

HTTP route details
Name - nextcloud1
URL - http://127.0.0.1:20010
Skip certificate validation - Disabled
Host - next.domain.com
Request Let’s Encrypt certificate - Enabled
HTTP to HTTPS - Enabled
Node - Node 1
Traefik instance - traefik1

ONLYOFFICE environment
IMAGE_URL=Package onlyoffice · GitHub
MODULE_ID=onlyoffice1
NODE_ID=1
TCP_PORT=20011
TCP_PORTS=20011
TRAEFIK_HOST=office.domain.com
TRAEFIK_HTTP2HTTPS=True
TRAEFIK_LETS_ENCRYPT=True

HTTP route details
Name - onlyoffice1
URL - http://127.0.0.1:20011
Skip certificate validation - Disabled
Host - office.domain.com
Request Let’s Encrypt certificate - Enabled
HTTP to HTTPS - Enabled
Node - Node 1
Traefik instance - traefik1

System logs app ONLYOFFICE:

2024-08-15T13:29:52+03:00 [1:onlyoffice1:onlyoffice-app] ==> /var/log/onlyoffice/documentserver/converter/out.log <==

2024-08-15T13:29:52+03:00 [1:onlyoffice1:onlyoffice-app] [2024-08-15T10:29:52.409] [ERROR] [localhost] [conv_check_906136302_docx] [userId] nodeJS - error downloadFile:url=https://next.domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.lxSjcxxebOQd9mHeFOrHm6ilAOdpJq_yCgigriZG1Z0;attempt=1;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 127.0.1.1:443

2024-08-15T13:29:52+03:00 [1:onlyoffice1:onlyoffice-app] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

2024-08-15T13:29:53+03:00 [1:onlyoffice1:onlyoffice-app] [2024-08-15T10:29:53.414] [ERROR] [localhost] [conv_check_906136302_docx] [userId] nodeJS - error downloadFile:url=https://next.domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.lxSjcxxebOQd9mHeFOrHm6ilAOdpJq_yCgigriZG1Z0;attempt=2;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 127.0.1.1:443

2024-08-15T13:29:53+03:00 [1:onlyoffice1:onlyoffice-app] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

2024-08-15T13:29:54+03:00 [1:onlyoffice1:onlyoffice-app] [2024-08-15T10:29:54.419] [ERROR] [localhost] [conv_check_906136302_docx] [userId] nodeJS - error downloadFile:url=https://next.domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.lxSjcxxebOQd9mHeFOrHm6ilAOdpJq_yCgigriZG1Z0;attempt=3;code:ECONNREFUSED;connect:null Error: connect ECONNREFUSED 127.0.1.1:443

2024-08-15T13:29:54+03:00 [1:onlyoffice1:onlyoffice-app] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

System logs app Nextcloud:

2024-08-15T13:29:56+03:00 [1:nextcloud1:nextcloud-app] NOTICE: PHP message: [nextcloud][onlyoffice][3] {“reqId”:“5p7VRytxbOp9wVVX9awc”,“level”:3,“time”:“2024-08-15T10:29:56+00:00”,“remoteAddr”:“10.11.185.100”,“user”:“admin”,“app”:“onlyoffice”,“method”:“PUT”,“url”:“/apps/onlyoffice/ajax/settings/address”,“message”:“{"Exception":"Exception","Message":"\u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0441\u043b\u0443\u0436\u0431\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432: Error while downloading the document file to be converted.","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/onlyoffice/lib/DocumentService.php","line":104,"function":"processConvServResponceError","class":"OCA\\Onlyoffice\\DocumentService","type":" → ","args":["-4"]},{"file":"/var/www/html/custom_apps/onlyoffice/lib/DocumentService.php","line":452,"function":"getConvertedUri","class":"OCA\\Onlyoffice\\DocumentService","type":" → ","args":["https://next.domain.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.lxSjcxxebOQd9mHeFOrHm6ilAOdpJq_yCgigriZG1Z0\“,\“docx\”,\“docx\”,\“check_906136302\”]},{\“file\”:\”/var/www/html/custom_apps/onlyoffice/lib/Controller/SettingsController.php\“,\“line\”:192,\“function\”:\“checkDocServiceUrl\”,\“class\”:\“OCA\\\\Onlyoffice\\\\DocumentService\”,\“type\”:\”->","args":[["OC\\URLGenerator",["OC\\User\\Session"]],["OCA\\Onlyoffice\\Crypt"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"saveAddress","class":"OCA\\Onlyoffice\\Controller\\SettingsController","type":" → ","args":["https://office.domain.com/\“,\”\“,\”\“,false,\“hbiWMtpPbgxImV4R2IhCGzrqgHKGhXzn\”,\”\“,false]},{\“file\”:\”/var/www/html/lib/private/AppFramework/Http/Dispatcher.php\“,\“line\”:137,\“function\”:\“executeController\”,\“class\”:\“OC\\\\AppFramework\\\\Http\\\\Dispatcher\”,\“type\”:\”->","args":[["OCA\\Onlyoffice\\Controller\\SettingsController"],"saveAddress"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":" → ","args":[["OCA\\Onlyoffice\\Controller\\SettingsController"],"saveAddress"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["SettingsController","saveAddress",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["onlyoffice.settings.save_address"]]},{"file":"/var/www/html/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":" → ","args":["/apps/onlyoffice/ajax/settings/address"]},{"file":"/var/www/html/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":}],"File":"/var/www/html/custom_apps/onlyoffice/lib/DocumentService.php","Line":257,"message":"getConvertedUri on check error","CustomMessage":"getConvertedUri on check error"}”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36”,“version”:“27.1.11.3”}

Hi @Bulat ,

did you enter the right jwt secret in the Nextcloud onlyoffice app setting?

Which distro are you using?

Updated Onlyoffice to 8.1.1.2.
The Nextcloud OnlyOffice app settings need to be saved (via “Save” button) once to make it work.

1 Like

Thanks @mrmarkuz. Works as expected.

Regards…

Uwe

1 Like

Thanks for testing!

I can confirm.

One note tho, please allow a minute after updating before going to the Nextcloud OnlyOffice app and press save. If you are too fast it will result in an error, trying to save again after a minute will result in success.

1 Like

Thanks for testing and yes, Onlyoffice needs some time until it’s up and running again.

@LayLow

Good things take time. :smiley:

2 Likes

I use: NS8 image ns8-rocky-linux-9-ns8-stable.qcow2

I got the key from the instructions: runagent -m onlyoffice1 grep JWT_SECRET environment

After updating Onlyoffice to version 8.1.1.26

The error remains “Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 8.1.1.26)”

By trial and error I think I figured out the cause of the problem. :upside_down_face:

When I first launched NS8 image
I issued Hostname Node - next.domain.com

Now I changed Hostname Node to - box.domain.com
The rest remained the same:
Nextcloud application Hostname - next.domain.com
Onlyoffice application Hostname - office.domain.com

And now everything works :+1:
This needs to be taken into account or warnings added to the documentation.

1 Like

I added a sentence about using an unique FQDN to the NS8 Onlyoffice docs on Github.

1 Like

Update to OnlyOffice 8.3.0.1, see also ONLYOFFICE Docs 8.3 released | ONLYOFFICE Blog

App updated to 1.0.4: Release 1.0.4 · mrmarkuz/ns8-onlyoffice · GitHub

There’s an update issue regarding rabbitmq, see also OnlyOffice DocumentServer won't start after commit 0de5714 (5th Feb 2025) · Issue #792 · ONLYOFFICE/Docker-DocumentServer · GitHub

If Onlyoffice doesn’t start after the update, please delete the rabbitmq volume:

Enter onlyoffice instance:

runagent -m onlyoffice1

Stop Onlyoffice:

systemctl --user stop onlyoffice

Remove the rabbitmq volume:

podman volume rm onlyoffice-rabbitmq

Start Onlyoffice:

systemctl --user start onlyoffice
3 Likes

Updated to app version 1.0.5 and OnlyOffice 8.3.1, see also DocumentServer/CHANGELOG.md at master · ONLYOFFICE/DocumentServer · GitHub

2 Likes

App updated to 1.0.6: Release 1.0.6 · mrmarkuz/ns8-onlyoffice · GitHub
Onlyoffice updated to 8.3.3.1, see also DocumentServer/CHANGELOG.md at master · ONLYOFFICE/DocumentServer · GitHub

2 Likes