Skip to content

Nextcloud Collabora Online Not Working

DodaTech Updated 2026-06-24 3 min read

In this tutorial, you'll learn about Nextcloud Collabora Online Not Working. We cover key concepts, practical examples, and best practices.

Hook

You install Collabora Online and the Nextcloud Office app. You click on a document and see "Loading Collabora Online..." for a minute, then "Collabora Online failed to load." Your document stays locked and uneditable.

The Wrong Way

Some users point Nextcloud's Office settings to the Collabora server's domain without specifying the correct port or protocol, which causes a WOPI connection failure.

# BAD: Wrong server URL
sudo -u www-data php occ config:app:set richdocuments wopi_url --value="http://collabora.local"
Collabora Online: "Failed to load — 404 Not Found"

The WOPI endpoint requires the full path including the port (9980 by default).

The Right Way

Set the correct Collabora server URL with port and verify connectivity.

# 1. Check if Collabora is running
curl -s http://localhost:9980/hosting/discovery | head -c 500
<?xml version="1.0" encoding="UTF-8"?>
<wopi-discovery>

If the discovery page loads, Collabora is working. Configure Nextcloud:

# 2. Set the correct WOPI URL
sudo -u www-data php occ config:app:set richdocuments wopi_url --value="http://192.168.1.100:9980"
# 3. Verify the configuration
sudo -u www-data php occ richdocuments:check-config
Collabora Online: URL is reachable
WOPI discovery: OK
SSL: Not configured (use HTTPS for production)
# 4. If behind a reverse proxy, set the public URL
sudo -u www-data php occ config:app:set richdocuments wopi_url --value="https://collabora.yourdomain.com"
# 5. Restart the office app
sudo -u www-data php occ app:disable richdocuments
sudo -u www-data php occ app:enable richdocuments

Try opening a document again — it should load within seconds.

Prevention

  • Always test Collabora's discovery endpoint before configuring Nextcloud.
  • Use a reverse proxy (Nginx, Caddy) with HTTPS for production Collabora deployments.
  • Keep both Nextcloud Office app and Collabora CODE/Enterprise updated to matching versions.
  • Set COLLABORA_SECCOMP_POLICY=--o:security.seccomp=false if using Docker and the container crashes.
  • Monitor Collabora logs with docker logs (CODE) or journalctl (package install).

Advanced Troubleshooting

Check the Logs

Most TOOL errors are logged to stdout or a dedicated log file. Check your logs first:

# Check system logs
journalctl -u tool --since "1 hour ago"

# Or check the application log
tail -50 ~/.tool/logs/error.log

Test with a Minimal Example

Create the simplest possible tool configuration to verify the base setup works:

tool --version
tool --help

If the minimal test passes, add configuration options one at a time until you find the breaking change.

Common Configuration Mistakes

  • Using the wrong file path or URL in configuration
  • Forgetting to restart TOOL after changing config files
  • Mixing tabs and spaces in YAML configuration files
  • Setting incorrect permissions on configuration directories

When to Reinstall

If none of the above resolves the issue, consider a clean reinstall:

# Backup your configuration
cp -r ~/.tool ~/.tool.bak

# Remove and reinstall
# Follow the official TOOL installation guide

This ensures you start from a known good state and can isolate the issue.

Common Mistakes with collabora online

  1. Forgetting that lazy evaluation defers computation until the value is forced, causing space leaks with unevaluated thunks
  2. Using return to exit a function early instead of wrapping a pure value in the monad
  3. Mixing let bindings with <- bindings in do notation, producing type errors

These mistakes appear frequently in real-world NEXTCLOUD code. DodaTech's contributors have identified these patterns through analysis of open-source projects and production systems.

Practice Exercise

Write a pure function that safely divides two integers using Maybe, then test it with edge cases like division by zero and negative numbers.

This exercise reinforces the concepts covered in this guide. Try implementing it before checking online solutions.

FAQ

What is WOPI?

WOPI (Web Application Open Platform Interface) is the protocol Nextcloud and Collabora use to communicate. Nextcloud acts as the WOPI host, serving files to Collabora for editing.

Can I use Collabora CODE without HTTPS?

For local network testing, yes. For internet-facing deployments, HTTPS is required — most browsers block editing features (clipboard, drag-and-drop) on insecure origins.

Why does Collabora say 'No compatible image found'?

The document format is not supported. Collabora supports ODF (ODT, ODS, ODP), DOCX, XLSX, PPTX, and a few others. Older binary formats (DOC, XLS) have limited support.


DodaTech — edit documents on your terms.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro