Collabora update from 6.4 to 21 has made initialisation in Nextcloud very slow

I have Collabora install on the same server as a nextcloud instance. Both are installed natively (not docker), nextcloud from source, Collabora from the official debian packages.

Collabora worked quite well at version 6.4, but since upgrading Collabora is super slow to initialize when you click on a file in the nextcloud file browser. It gets stuck on this page:

I timed this at just over one minute, which almost makes me think it’s waiting for something else to time out for one minute.

Server configuration

Operating system:

Ubuntu 20.04.3 LTS

Web server:

Apache/2.4.41 (Ubuntu)

Nextcloud version:

22.2.3

Can you try this in Chrome, press F12, and attach some shots of the Network tab - and/or console errors. What happens after a minute ? does the document load or ? just timeout.

Thanks !

I just tried in Chromium and lo and behold, there is no delay, the doc loaded almost instantly. I went back and checked again in Firefox, and it still has the very slow load time. It seems therefore to be a Firefox specific problem.

To answer your question and be absolutely clear, the document does eventually load as normal after the long wait.

Thanks @crobar but could you please paste here what you see when accessing the Network tab in the web dev tools?

  1. ctrl + shift + i or simply F12
  2. Select Network tab
  3. probably you need to reload the page now

Is there any error anything that doesn’t load or keep forever trying to load?

Also maybe it would help if you paste here your console errors:

  1. ctrl + shift + i or simply F12
  2. Select Console tab
  3. You can filter by Errors only ( by deselecting all the others Warnings, logs, Info,Debug

Here is the errors from the instant of clicking on an odt file in Nextcloud:

15:00:25.567 Content Security Policy: The page's settings blocked the loading of a resource at inline ("script-src"). moz-extension:33:9
15:00:31.365 Content Security Policy: The page's settings blocked the loading of a resource at eval ("script-src"). 2 blob:27:22
15:01:14.057
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 603ms]

15:01:14.667 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:14.404
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 225ms]

15:02:14.635 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:22.217
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 637ms]

15:02:22.860 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:24.240
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 402ms]

15:02:24.647 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:25.771
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 489ms]

15:02:26.265 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:27.414
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 382ms]

15:02:27.800 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:29.147
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 390ms]

15:02:29.542 Firefox can’t establish a connection to the server at15:00:25.567 Content Security Policy: The page's settings blocked the loading of a resource at inline ("script-src"). moz-extension:33:9
15:00:31.365 Content Security Policy: The page's settings blocked the loading of a resource at eval ("script-src"). 2 blob:27:22
15:01:14.057
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 603ms]

15:01:14.667 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:14.404
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 225ms]

15:02:14.635 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:22.217
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 637ms]

15:02:22.860 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:24.240
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 402ms]

15:02:24.647 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:25.771
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 489ms]

15:02:26.265 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:27.414
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 382ms]

15:02:27.800 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:29.147
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 390ms]

15:02:29.542 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:31.557
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 645ms]

15:02:32.208 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:35.225
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 663ms]

15:02:35.899 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:40.415
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 132ms]

15:02:40.554 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:47.327
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 445ms]

15:02:47.777 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:57.934
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 694ms]

15:02:58.641 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:03:13.868
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 834ms]

15:03:14.709 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:31.557
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 645ms]

15:02:32.208 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:35.225
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 663ms]

15:02:35.899 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:40.415
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 132ms]

15:02:40.554 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:47.327
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 445ms]

15:02:47.777 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:02:57.934
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 694ms]

15:02:58.641 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws. index.js:96:45
15:03:13.868
GETwss://nextcloud.mydomain_redacted.tld/push/ws
[HTTP/1.1 503 Service Unavailable 834ms]

15:03:14.709 Firefox can’t establish a connection to the server at wss://nextcloud.mydomain_redacted.tld/push/ws.

One diff between Chromium and Firefox on my system is that firefox has adblock and Privacy badger installed, in case it is relevant.

Thanks for the follow up, it seems that somehow your FF is being blocked or unable to access the normal end points that your other browser is able to connect to. It can be some obscure issue and I think it makes sense to further investigate this. Meanwhile could you please test it with:

1 Like

It was sufficient to disable adblock for my nextcloud instance domain for this problem to go away on Firefox. Documents now load immediately again.

2 Likes

I’m glad that worked out for you : )