An error occurred while connecting onlyOffice 7.2 using owncloud

[2023-01-15T20:58:17.049] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-01-15T20:58:17.062] [WARN] [localhost] [docId] [userId] nodeJS - worker 1138 started.
[2023-01-15T20:58:17.069] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-01-15T20:58:17.655] [ERROR] [localhost] [docId] [userId] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)
[2023-01-15T20:58:18.661] [ERROR] [localhost] [docId] [userId] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)
[2023-01-15T20:58:58.037] [ERROR] [localhost] [conv_check_1042994227_docx] [userId] nodeJS - error downloadFile:url=https://mydomainname/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.92kih2M6YOPAgsnaUBHO3ZNzsxzXB2XTG_qIwcPKc4E;attempt=1;code:ECONNREFUSED;connect:undefined Error: connect ECONNREFUSED x.x.x.x:24433
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)
[2023-01-15T20:58:59.051] [ERROR] [localhost] [conv_check_1042994227_docx] [userId] nodeJS - error downloadFile:url=https://mydomainname/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.92kih2M6YOPAgsnaUBHO3ZNzsxzXB2XTG_qIwcPKc4E;attempt=2;code:ECONNREFUSED;connect:undefined Error: connect ECONNREFUSED x.x.x.x:24433
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)
[2023-01-15T20:59:00.059] [ERROR] [localhost] [conv_check_1042994227_docx] [userId] nodeJS - error downloadFile:url=https://mydomainname/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.92kih2M6YOPAgsnaUBHO3ZNzsxzXB2XTG_qIwcPKc4E;attempt=3;code:ECONNREFUSED;connect:undefined Error: connect ECONNREFUSED x.x.x.x:24433
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)

Hello @Jackson
Please point me to the guide which you used for Document server installation. Also let us know ownCloud and connector app version.
If it’s possible, please reproduce the issue (click Save button in the connector app page) and provide us with whole Document server logs folder. It’s located here:
docker: /app/onlyoffice/DocumentServer/logs/documentserver/
deb\rpm: /var/log/onlyoffice/documentserver/
Windows: Program Files\ONLYOFFICE\DocumentServer\log

One more thing. Please double check mutual availability between servers (wget\telnet commands). According to provided log, something is going wrong.

Thank you for your patience @Alexandre
I have solved the problem and successfully completed the link between onlyoffice version 7.2 and owncloud version 10.11! All I use are the latest version!
One thing I want to say is that the configuration file of the onlyoffice plug-in in owncloud needs to change the $leeway=0 in JWT.php to a higher value, otherwise the 403 error will be displayed in the onlyoffice log file, because the effective time of JWT is a month and a year in 1980! I don’t know if this is a bug? :grinning:

Hello @Jackson
We are glad that the issue is solved.

the effective time of JWT is a month and a year in 1980!

It’s a little bit strange. But in general, leeway parameter is used in case of time difference between servers. We have discussed it in other topic recently: Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 7.2.1.34) - #25 by Alexandre

Anyway, please feel free to contact us if you face any issues.

1 Like