Seafile CE 13.0.22 & OnlyOffice 9.4.0.129 document loading issues in Safari

Hey there,

I’ve got a weird issue with my Seafile Server & OnlyOffice. Whenever I load a document I only get a blank white screen (with the Seafile bar up top) in Safari. Any other browser works fine, it’s JUST Safari. I cannot resolve the issue by reloading the page. What works is to reset the User-Agent in the Developer Tools, when ever I do that, the document loads immediately. Once I reload the page, it’s gone again. To clarify: I don’t need to switch User-Agents, it’s sufficient to just reload the “standard” option by clicking on it. Anyone had anything similar? Any idea what the issue could be?

My setup:
Unraid 6.12.15
Seafile CE 13.0.22 Docker Container
OnlyOffice Document Server 9.4.0.129 Docker Container

It’s not exclusively a problem of this combination of versions. I’ve had the problem with OnlyOffice version 8 and Seafile 12, as well…

EDIT: It’s ONLY when OnlyOffice is supposed to load files. .md/.txt/.html etc. which load the Seafile Editor work just fine.

Greetings,
Thiemo

We will check the issue.

2 Likes

Might actually be an OnlyOffice issue (here reported for Nextcloud): Since update onlyoffice/documentserver to 9.4.0.1 (latest) dcuments don't open in nextcloud (33.0.3) · Issue #3696 · ONLYOFFICE/DocumentServer · GitHub

I have indeed narrowed it down now. It seems to be the document_editor_service_worker.js which is stored in the cache and returns a 404 error in the console. A hard reload will immediately fix the issue, but once the file is cached just once, it’ll stop working again. I have tested this with the current EuroOffice built, which is a OnlyOffice fork and the issue is identical. I’ve tried implementing a Response Header Transform Rule through Cloudflare, which aims to prevent caching. But the problem persists. I don’t really know why that is though. But it has to be something to do with caching, right?

Here’s what I know so far:

Summary

Opening any Office file (.docx / .xlsx / .pptx) in Safari on Seafile CE 13.0.24 with OnlyOffice 9.4.0.1 or Euro-Office 9.3.2-rc.1 results in a blank editor canvas. A hard reload (command + option + R) will render the editor immediately. The exact same file, account, and JWT configuration render the editor correctly in Chrome & Brave (MacOS); Firefox, Brave & Chrome (Windows). Could be a Seafile bug as well.

Steps to reproduce

  1. Deploy Seafile CE 13.0.24 via Docker (seafileltd/seafile-mc:13.0.24).
  2. Deploy OnlyOffice DocumentServer 9.4.0.1 (onlyoffice/documentserver:9.4.0.1) or Euro-Office DocumentServer 9.3.2-rc.1 (euro-office/documentserver:9.3.2-rc.1) on a separate origin, with JWT_ENABLED=true, JWT_HEADER=Authorization, JWT_IN_BODY=true, and a shared JWT secret.
  3. Configure seahub_settings.py exactly per the official integration guide:
    ENABLE_ONLYOFFICE = True
    ONLYOFFICE_APIJS_URL = 'https://onlyoffice.example.com/web-apps/apps/api/documents/api.js'
    ONLYOFFICE_JWT_SECRET = '<shared secret>'
    
  4. Open Safari 26.5 (21624.2.5.11.4) on macOS, log in to Seafile, click any .docx file in a library.

Expected behavior

The OnlyOffice editor mounts inside the file-view page and renders the document.

Observed behavior

  • The Seafile file-view toolbar (filename, star, share, info, comments) renders normally.
  • The editor area below the toolbar stays blank (white page, no loading indicators).
  • No errors or exceptions are caught.
  • OnlyOffice/Euro-Office only loads the this single asset: /web-apps/apps/api/documents/api.js – network activity stops there.
  • Reverting to Brave or Chrome (same session, same JWT, same docx, same or different machine) renders the editor immediately.
  • A hard reload (command + option + R) or switching user agents renders the editor immediately.
  • A normal reload causes the editor to stop loading again.

Error message

None at all. But behavior is consistent across files. Every single file, regardless of size, loads exactly 17 resources and 6,75MB.

Environment

Value
Seafile CE 13.0.24 (seafileltd/seafile-mc:13.0.24)
OnlyOffice DocumentServer 9.4.0.1 (onlyoffice/documentserver:9.4.0.1)
Euro-Office DocumentServer 9.3.2-rc.1 (euro-office/documentserver:9.3.2-rc.1 )
Reverse proxy Cloudflared Tunnel (Rocket Loader & Cache disabled)
Browser (broken) Safari 26.5 (21624.2.5.11.4) / macOS 26.5 (25F71) (Apple Silicon, M1 Pro)
Browsers (working) Brave 1.91.175 (arm64) (macOS 26.5); Chrome & Firefox working under Windows as well
JWT matching shared secret on both sides
Extensions Dashlane, AdBlock Pro; all disabled during testing

Hey there. I just wanted to give you an update, that the support at OnlyOffice strongly assumes this to be an issue at the Seafile end, NOT at their side…