Troubleshooting
Solutions for common OnlyOffice integration problems including connectivity, authentication, and document opening issues.
Debug Mode (Recommended First Step)
The easiest way to troubleshoot OnlyOffice issues is to use the built-in debug mode:
Enable Debug Mode:
- Navigate to Profile Settings → File Viewer Options
- Toggle “Debug OnlyOffice Editor” to ON
- Open any document with OnlyOffice
- View the debug tooltip that appears automatically
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
The diagram shows the communication flow:
- Browser ↔ OnlyOffice Server: Editor interface
- OnlyOffice → FileBrowser (download URL): Fetches document
- OnlyOffice → FileBrowser (callback URL): Saves changes
Quick Diagnostics
Verify OnlyOffice is Running
# Check health endpoint
curl http://localhost/healthcheck
# Expected response:
{"status":"ok"}
# Check welcome page
curl http://localhost/welcome
Test Network Connectivity
From FileBrowser container:
# Test connection to OnlyOffice
docker exec filebrowser curl http://onlyoffice/healthcheck
Check Browser Console
Open browser developer tools (F12) and look for:
Successful Config:
OnlyOffice config request: source=downloads, path=/doc.docx, isShare=false
OnlyOffice: built download URL=http://localhost:8080/api/raw?...
OnlyOffice: successfully generated config for file=doc.docx
Successful Save:
OnlyOffice callback: source=downloads, path=/doc.docx, status=2
OnlyOffice: successfully saved updated document
Common Issues
OnlyOffice Server Not Found
Problem: Documents don’t open, connection refused errors
Symptoms:
Error messages about connection refused
Can’t reach OnlyOffice server
Documents fail to load
Empty preview screen when opening documents
Solutions:
Verify OnlyOffice is running:
# Check Docker container status
docker ps | grep onlyoffice
# Check service health
curl http://localhost:80/healthcheck
Expected response:
{"status":"ok"}
If not running, start OnlyOffice:
docker-compose up -d onlyoffice
FileBrowser needs correct URLs:
integrations:
office:
url: "http://onlyoffice.yourdomain.com" # Must be accessible from browser
secret: "your-jwt-secret"
localhost
will NOT work if services are in separate containers. Use Docker service name or IP address.
Test the URL from your browser: Navigate to the OnlyOffice URL - you should see a welcome page.
JWT Authentication Errors
Problem: “JWT verification failed” or “Invalid token” errors
Symptoms:
Documents won’t open
Authentication errors in logs
Token validation failures
Step 1: Generate JWT Secret
Create a strong random secret:
# Generate 32-byte base64 secret
openssl rand -base64 32
# Or use uuidgen
uuidgen
Step 2: Configure FileBrowser
integrations:
office:
url: "http://onlyoffice"
secret: "your-generated-secret" # Use the secret from Step 1
Step 3: Configure OnlyOffice
onlyoffice:
environment:
- JWT_ENABLED=true
- JWT_SECRET=your-generated-secret # MUST match FileBrowser exactly
- JWT_HEADER=Authorization
The JWT secret must be identical in both configurations, including capitalization and special characters. Any mismatch will cause authentication failures.
Documents Won’t Open
Problem: Clicking document shows error or nothing happens
Symptoms:
No response when clicking document
Blank screen or error message
Document viewer doesn’t load
Solutions:
1. Check File Format Support
OnlyOffice supports these formats:
Document Type | Supported Formats |
---|---|
Documents | .doc , .docm , .docx , .dot , .dotm , .dotx , .epub , .fb2 , .fodt , .htm , .html , .mht , .odt , .ott , .rtf , .txt , .xml |
Spreadsheets | .csv , .et , .ett , .fods , .ods , .ots , .sxc , .xls , .xlsb , .xlsm , .xlsx , .xlt , .xltm , .xltx |
Presentations | .dps , .dpt , .fodp , .odp , .otp , .pot , .potm , .potx , .pps , .ppsm , .ppsx , .ppt , .pptm , .pptx , .sxi |
Other | .djvu , .docxf , .oform , .oxps , .pdf , .xps |
Use disableOnlyOfficeExt
in user defaults to exclude specific extensions from opening in OnlyOffice.
2. Verify File Permissions
# Check file permissions
ls -l /path/to/document.docx
# FileBrowser user must have read access
-rw-r--r-- 1 user group 12345 date document.docx
3. Check File Size Limits
Large files may timeout. Increase limits:
onlyoffice:
environment:
- MAX_FILE_SIZE=100 # MB
4. Review Logs
# FileBrowser logs
docker logs filebrowser --tail 100
# OnlyOffice logs
docker logs onlyoffice --tail 100
# Follow logs in real-time
docker-compose logs -f
HTTPS and SSL/TLS Issues
Problem: Mixed content errors, SSL handshake failures
Symptoms:
“Mixed content” warnings in browser
Documents load partially then fail
SSL certificate errors
CORS errors with HTTPS
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
Required for v0.8.4+: Both externalUrl
and internalUrl
must be set in server configuration for OnlyOffice to work properly.
server:
externalUrl: "https://files.yourdomain.com" # Accessible from browser
internalUrl: "http://filebrowser:80" # Accessible from OnlyOffice container
integrations:
office:
url: "https://office.yourdomain.com" # Accessible from browser
internalUrl: "https://files.yourdomain.com" # For OnlyOffice → FileBrowser callbacks
secret: "your-jwt-secret"
Why two URLs?
- Browser → OnlyOffice: Uses
integrations.office.url
- OnlyOffice → FileBrowser: Uses
internalUrl
for downloading/saving files - Internal URLs can use Docker service names for better performance
Performance Issues
Slow Document Loading
Problem: Documents take long time to open or edit
Symptoms:
Long delays before document loads
Laggy editing experience
Frequent timeouts
Solutions:
1. Increase OnlyOffice Resources
onlyoffice:
deploy:
resources:
limits:
memory: 4G
cpus: '2.0'
reservations:
memory: 2G
cpus: '1.0'
2. Use Persistent Storage
onlyoffice:
volumes:
- onlyoffice_data:/var/www/onlyoffice/Data
- onlyoffice_logs:/var/log/onlyoffice
volumes:
onlyoffice_data:
onlyoffice_logs:
3. Optimize Timeouts
# Traefik
serversTransport:
forwardingTimeouts:
dialTimeout: "60s"
responseHeaderTimeout: "75s"
idleConnTimeout: "90s"
# nginx
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
Connection Timeouts
Problem: Gateway timeout or connection timeout errors
Check and increase timeouts at multiple levels:
Traefik:
http:
serversTransports:
default:
forwardingTimeouts:
dialTimeout: "30s"
responseHeaderTimeout: "60s"
idleConnTimeout: "90s"
OnlyOffice:
environment:
- TIMEOUT=300
Test Network Latency:
# Test response time
time curl http://onlyoffice/healthcheck
# Check network path
docker exec filebrowser ping onlyoffice
Troubleshooting Checklist
Use this checklist when debugging OnlyOffice issues:
- Enable debug mode in FileBrowser profile settings
- Check OnlyOffice is running:
docker ps | grep onlyoffice
- Verify health endpoint:
curl http://onlyoffice/healthcheck
- Test from browser: Navigate to OnlyOffice URL, see welcome page
- Check JWT secrets match in both configurations
- Verify network connectivity between containers
- Check browser console for JavaScript errors
- Review logs from both FileBrowser and OnlyOffice
- Verify file format is supported
- Check file permissions and size limits
- Test with HTTPS disabled (if using SSL)
- Verify externalUrl and internalUrl are set correctly
Getting Help
Gather Information
When asking for help, provide:
- FileBrowser version:
docker exec filebrowser ./filebrowser version
- OnlyOffice version:
docker exec onlyoffice /var/www/onlyoffice/documentserver/npm/json -f /var/www/onlyoffice/documentserver/package.json version
- Configuration (sanitized - remove secrets):
integrations:
office:
url: "https://office.example.com"
secret: "REDACTED"
- Logs:
docker logs onlyoffice --tail 100
docker logs filebrowser --tail 100
Debug mode output (screenshot from browser)
Browser console errors (F12 → Console tab)
Test OnlyOffice Independently
Verify OnlyOffice works standalone:
# Visit welcome page
curl http://localhost/welcome
# Should return HTML with OnlyOffice welcome page
Enable Verbose Logging
onlyoffice:
environment:
- LOG_LEVEL=DEBUG
Community Resources
- GitHub Issues - Report bugs
- GitHub Discussions - Ask questions
- OnlyOffice Documentation - Official OnlyOffice docs
- Community Configurations - Working examples
Next Steps
- Configuration - Set up OnlyOffice integration
- Office guides - Usage examples and best practices
- About OnlyOffice - Features and capabilities