OnlyOffice install work, but impossible to load the interface/document when trying to use it

What app is this about, and its version: OnlyOffice 9.4.0~YNH1
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: VPS bought online

Describe your issue

I just updated OnlyOffice to the last version (9.4.0~YNH1). Everything went well, when I check the OnlyOffice homepage, it says that “Document Server is running”. The onlyoffice service is also running without any issue. The connector in Nextcloud is reaching the onlyoffice server without any problem.

But when I try to open a document, the OnlyOffice editor doesn’t load. Only the basic elements of the interface are loading (the blank document in the middle of the page, the main zoning squares,…), but the document itself and the buttons never load.

I tried to use another browser (Firefox, and Chromium), and checked my browser debugger, but I don’t really have the skills to understand it. I still share the warnings I get below.

Since I didn’t have any problem before the update, I assume it is maybe a problem with the update rather than a problem on my side ? If you have ideas on how to investigate the problem further and how I can share relevant information to identify it, feel free to ask me.

Thanks in advance for yout help !

Share relevant logs or error messages

[WARN] @nextcloud/vue: You need to fill either the text or the ariaLabel props in the button component.
Object { uid: “marin_bisson”, app: “@nextcloud/vue”, level: 2, text: undefined, ariaLabel: null, instance: {…} }
​app: “@nextcloud/vue”
​ariaLabel: null
​instance: Object { _uid: 17, _isVue: true, __v_skip: true, … }
​level: 2
​text: undefined
​uid: “[uid]”
​: Object { … }

Feature Policy : nom de fonctionnalité non prise en charge ignoré « autoplay ». api.js:1300:16

Feature Policy : nom de fonctionnalité non prise en charge ignoré « clipboard-write ». api.js:1300:16

Feature Policy : nom de fonctionnalité non prise en charge ignoré « autoplay ». api.js:626:52

Feature Policy : nom de fonctionnalité non prise en charge ignoré « clipboard-write ». api.js:626:52

Content-Security-Policy : « x-frame-options » ignoré en raison de la directive « frame-ancestors ».

La mise en page a été forcée avant le chargement complet de la page. Si les feuilles de style ne sont pas encore chargées, cela peut provoquer un flash de contenu non stylisé. index.html

Échec du chargement pour l’élément dont la source est « [URL]/web-apps/apps/common/Analytics.js ». index.html:1:1
unreachable code after return statement sdk-all-min.js:21477:2
unreachable code after return statement sdk-all-min.js:55629:54
unreachable code after return statement sdk-all-min.js:55630:42
unreachable code after return statement sdk-all-min.js:56429:4
unreachable code after return statement sdk-all-min.js:56715:4
unreachable code after return statement sdk-all-min.js:56722:4

Erreur dans les liens source : request failed with status 404
URL de la ressource : [URL]/web-apps/vendor/socketio/socket.io.min.js
URL du lien source : socket.io.min.js.map

Erreur dans les liens source : request failed with status 404
URL de la ressource : [URL]/web-apps/vendor/underscore/underscore.js
URL du lien source : underscore-umd.js.map

Erreur dans les liens source : No sources are declared in this source map.
URL de la ressource : [URL]/apps/notifications/js/vite-preload-helper-DxYC2qmj.chunk.mjs
URL du lien source : vite-preload-helper-DxYC2qmj.chunk.mjs.map

Hello @marinB
Do you have an ad blocker ? If so, could you try disabling it ?

Hi, thanks for answering ! Yes, I have uBlockOrigin, but I already tried to disable it and it still didn’t work. I also tried to desactivate the tracking protections in each browser I tried (Zen, Firefox and Chromium)…

Any error or trace related to this issue in onlyoffice logs and nextcloud logs ?

Hi,
I bumped into a very similar error after the exact same update done yesterday (I also have yunohost version 12.1.40.1 and updated to onlyoffice 9.4.0)

However, it works on chrome and on firefox when I’m in private navigation.

When I’m on regular navigation(I use firefox 151.0.2 on manjaro), I have the same behaviour you describe:
nextcloud open a new tab, load the basic interface and not the document.

If I unregister all the service workers related to the domain yunohost is running on:

  • the preview service worker for nextcloud
  • the document editor service worker for only office
    I can load once a document, but then I have to unregister them again to be able to load a second one.

Otherwise I get an error:
Failed to load ‘/9.4.0-05a51311b392713c36758d3cc071949a/web-apps/apps/common/Analytics.js’. A ServiceWorker passed a promise to FetchEvent.respondWith() that rejected with ‘TypeError: NetworkError when attempting to fetch resource.’.
in firefox.

Same thing after clearing cache, cookies and restarting firefox ?

yes, really the only thing that works is unregistering the service workers, but it works once… then I have to do it again

Note:
when I try to load directly the
/9.4.0-05a51311b392713c36758d3cc071949a/web-apps/apps/common/Analytics.js

(I removed the first part with my domain) directly from firefox, it displays the js code

I have this issue too. It gets stuck like this indefinitely if I try to open a document:

I normally use Librewolf so I tested opening a document in Chromium and got a different result–I get this “refused to connect” error instead:

I also have the AppImage of OnlyOffice installed (the desktop application). It can open and edit files just fine, unless I connect to my NextCloud server. It can browse files on the server normally but when I try to open one it just spins and spins, and the file never opens.

Trying to summarize… Feel free to add whatever could be relevant

Sorry I missed this suggestion the first time around. I do use uBlock Origin, and sure enough if I add my web server URL to the whitelist (open the extension > open the dashboard > “trusted sites” tab) it appears to resolve the issue. Thanks for the tip!

Thanks for the tip, it works, I missed it originally because ublock (and privacy badger) were whitelisting the domain nextcloud runs on but not the domain only office runs on. With both whitelisted, it’s fine.
Thanks for your help!