Hello, we are experiencing strange problem with onlyoffice connector (last version 9.2.0) to onlyoffice server, which run on different server. It keep disconnecting every few seconds for a +/- second.
Nextcloud last version 28.0.5
Disconnects like this one:
root@:/var/www/# sudo -u www-data php occ onlyoffice:documentserver --check
Document server https://URL/ version 8.0.0.99 is successfully connected
root@:/var/www/# sudo -u www-data php occ onlyoffice:documentserver --check
Error connection: Error occurred in the document service: Error while downloading the document file to be converted.
root@:/var/www/# sudo -u www-data php occ onlyoffice:documentserver --check
Document server https://URL/ version 8.0.0.99 is successfully connected
root@:/var/www/# sudo -u www-data php occ onlyoffice:documentserver --check
Error connection: Error occurred in the document service: Error while downloading the document file to be converted.
root@:/var/www/# sudo -u www-data php occ onlyoffice:documentserver --check
Document server https://URL/ version 8.0.0.99 is successfully connected
Any idea what to check? Also when I connect different onlyoffice server, it is the same. From different nextcloud to same problematic onlyoffice there is no problem. Very strange. Ping to onlyoffice server is 100% ok. Also firewall at https is not rejecting anything.
Can you tell us what the resources are of the NC instance and the OnlyOffice instance?
What NC deployment did you use?
Are you running the NC instances in Virtual Machines or installed bare metal?
Are you running OnlyOffice on a virtual machine or installed bare metal?
Maybe checking for network congestions could help you analyzing this behaviour.
[Managing multiple NC instances on 28.0.5 with OO connector 9.2.0. Once in a while only one specific instance disconnects from OnlyOffice]
Hello,
All NC instances are running as VMs. Also Onlyoffice is running as VM.
Only one difference I can see between same two NC instances is PHP version (8.3 vs 8.1) I will update it and let you know.
NC has been installed manually, not SNAP etc.
Network congestions seems unlikely, we are hosting many network Apps without any problem. Just this one NC instance vs onlyoffice
Thanks
Thanks.
I am running OnlyOffice on PHP 8.1 and like you, I experience with only On OnlyOffice instance disconnections.
FYI: the NC instance that is showing disconnections with OnlyOffice is recently upgraded from PHP8.1 to PHP8.2. Still the same experience with disconnections.
Could the total amount of (possible) users causing the issue?
With only one NC instance, which could be the last NC instance configured with OO?.. (just wondering)
I had the same problem here. Connection sometimes worked, sometimes not. If I repeatedly checked the connection via occ like above, I got more errors than successful connections.
I have a second instance of nextcloud running in the same network which was working fine.
Then I stumbled in the logs of the OnlyOffice-Connector on the faulty nextcloud server over an entry like
{“Exception”:“Firebase\JWT\BeforeValidException”,“Message”:“Cannot handle token prior to 2024-05-31T07:45:51+0000”
Well, the clocks of the two virtual machines differed by a few seconds, enough to cause the authentication between nextcloud and onlyoffice to fail.
I’ve made sure that the clocks are now synchronized regularly, not just at startup. So far (found this out half an hour ago) it seems to be working, I hope the error will not rise again.
Regarding this, I have found references to a configuration setting called jwt_leeway that allows you to set the allowed time difference in seconds. But I have no idea where to set this.
Edit/Update: Three days later and its still working fine