richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

Collabora online loads indefinitely: $expVer is different to $actVer, restart of coolwsd fails

Open flow10 opened this issue 1 year ago • 1 comments

I have Nextcloud 30.0.5 and Collabora Online Code Server 24.4.1103. In the Nextcloud Office Settings everything is working okay (Collabora Online Server is reachable). No error shown here.

Symptoms: If I try to open a document, it loads indefinitely.

Breakdown: I enabled the debug_log in the proxy.php and could break the error down to:

  • The error log shows the error "Old server found, restarting. Expected hash b6712dc6c4 but found 9f2e55c" multiple times
  • So the check for the coolwsd version hash fails because $expVer is different to $actVer (if I set $expVer manually to the value of $actVer, documents load fine and I can edit documents)
  • The next thing proxy.php does is trying to stop coolwsd server and restart it
  • However this fails (error thrown: "Coolwsd server is not running."). I guess this has to do with the function getCoolwsdPid() which does not return a pid. The reason for that is probably, that there is no coolwsd.pid file in any of the tmp folders.
  • If I try to look for a process called coolwsd by calling "exec('ps aux | grep coolwsd | grep -v grep', $output);" there is no such process found.
  • I also tried to replace the AppImage with the one that should correspond to Collabora Online Code Server 24.4.1103 to make sure it returns the right Version hash. This also did not work.
  • the error log remains in listing the message "Coolwsd server is not running." indefinitely

As I am on a Webhosting, I do not have the possibility to restart the server or to list and kill processes in the command line.

Workaround In proxy.php on line 273 change if ($actVer !== $expVer && $expVer !== '%' . 'COOLWSD_VERSION_HASH' . '%') { to if (false) {

Then it works.

Any ideas how to fix this problem?

flow10 avatar Jan 23 '25 16:01 flow10

same here, fix for now.

tazeverywhere avatar Feb 23 '25 00:02 tazeverywhere