Solutions for common OnlyOffice integration problems including connectivity, authentication, and document opening issues.

Enable Debug logging and Debug Mode

If you are having persistent issues with OnlyOffice, the first thing should be to enable debugger mode.

Enable Frontend Debug Mode

Enable Debug Mode:

  1. Navigate to Profile SettingsFile Viewer Options
  2. Toggle “Debug OnlyOffice Editor” to ON
  3. Open any document with OnlyOffice
  4. View the debug tooltip that appears automatically

Debug Mode Example

What Debug Mode Shows

The debug tooltip provides:

  • Real-time trace of the integration process
  • Network flow analysis between components
  • Configuration details including URLs and domains
  • Specific error detection with troubleshooting advice
  • Connectivity testing to OnlyOffice server

Network Flow Diagram

File System(Storage)OnlyOffice Server(Document Server)FileBrowser API(Go Backend)Frontend(Vue Component)File System(Storage)OnlyOffice Server(Document Server)FileBrowser API(Go Backend)Frontend(Vue Component)OnlyOffice Integration FlowClean parameters insteadof complex URL parsing/api/raw or /public/api/rawwith auth tokenOnlyOffice JavaScript APIUser edits document in browserStatus codes:2=closed with changes4=closed no changes6=force savealt[Document has changes]GET /api/onlyoffice/config?source=X&path=Y[&hash=Z]Validate parameters(source, path, hash)Resolve file scope& check permissionsGet file info & generatedocument IDFile metadataBuild download URL& callback URL internallyOnlyOffice client config(includes download & callback URLs)Initialize document editorwith configGET download URL(to fetch file content)Read file contentFile dataFile content(with rate limiting if configured)POST /api/onlyoffice/callback?source=X&path=Y[&hash=Z](document changes)Include updated document URLin callback payloadDownload updated documentUpdated file contentSave updated fileSave confirmationClean up document ID(if document closed)Success response{"error": 0}

The diagram shows the communication flow:

  1. BrowserOnlyOffice Server: Editor interface
  2. OnlyOfficeFileBrowser (download URL): Fetches document
  3. OnlyOfficeFileBrowser (callback URL): Saves changes

Enable FileBrowser server debug logs

Configure filebrowser to run with debug logging

Enable OnlyOffice service debug logs

YAML
1
2
3
onlyoffice:
  environment:
    - LOG_LEVEL=DEBUG

Quick Diagnostics

Verify OnlyOffice is Running

BASH
1
2
3
4
5
6
7
8
# Check health endpoint
curl http://<onlyoffice-server>/healthcheck

# Expected response:
{"status":"ok"}

# Check welcome page
curl http://<onlyoffice-server>/welcome

Common Issues

OnlyOffice Server Not Found

Solutions:

Verify OnlyOffice is running:

BASH
1
2
3
4
5
# Check Docker container status
docker ps | grep onlyoffice

# Check service health
curl http://<onlyoffice-server>/healthcheck

Expected response:

JSON
1
{"status":"ok"}

FileBrowser needs correct URLs:

YAML
1
2
3
4
integrations:
  office:
    url: "http://<onlyoffice-server>"       # Must be accessible from browser
    secret: "your-jwt-secret"

Test the URL from your browser: Navigate to the OnlyOffice URL - you should see a welcome page.

JWT Authentication Errors

Step 1: Generate JWT Secret

Create a strong random secret:

BASH
1
2
3
4
5
# Generate 32-byte base64 secret
openssl rand -base64 32

# Or use uuidgen
uuidgen

Step 2: Configure FileBrowser

YAML
1
2
3
4
integrations:
  office:
    url: "http://onlyoffice"
    secret: "your-generated-secret"  # Use the secret from Step 1

Step 3: Configure OnlyOffice

YAML
1
2
3
4
5
onlyoffice:
  environment:
    - JWT_ENABLED=true
    - JWT_SECRET=your-generated-secret  # MUST match FileBrowser exactly
    - JWT_HEADER=Authorization

HTTPS and SSL/TLS Issues

OnlyOffice does not work with HTTPS out of the box when behind a reverse proxy. You need proper SSL configuration.

Advanced Configuration

External and Internal URLs

See Configuration

Why two URLs?

  • Browser → The browser always uses integrations.office.url to connect from your browser to only office server.
  • OnlyOffice → Uses either server.externalUrl or server.internalUrl for downloading/saving files to FileBrowser server.
  • FileBrowser → Uses either integratons.office.internalUrl or integrations.office.url to connect from the filebrowser server to OnlyOffice server.

Performance Issues

Slow Document Loading

Document loading can be quite slow because of the many components onlyoffice needs to talk to. The best way to improve document loading times it to set server.internalUrl so OnlyOffice can communicate directly with filebrowser (it’s possible on same private network).

Getting Help

Gather Information

When asking for help, provide:

  1. Logs: Most imprtantly relevant debug logs from the server, as well as OnlyOffice server logs.
  2. Debug mode output (screenshot from browser)
  3. Browser console errors (F12 → Console tab)

Community Resources

Next Steps