[Solved] Upgrade to 9.0.2 Pro - almost done - Office preview failed: docker-compose error

Just upgraded to 9.0.2 and found few hurdles to overcome:

Install of new python library “cffi” failed.
sudo apt-get install python3-dev
sudo apt-get install libffi-dev

Run upgrade script, restart, all work fine. Office preview does not work. In the upgrade instructions there is only mentioned that this is now done with a docker image. A hint that how this is installed would have been nice. But found it then in the manual under “office document previews” - there is a new chapter for 9.x.
Followed instruction until “docker-compose” - which failed with "service office-preview uses an undefined network ‘seafile-network’.

Any idea how to overcome this?

What Linux distribution and version do you use?

We will give it a check.

I’m using Ubuntu 21.10

Try this:
sudo docker network create seafile-net

Then use the following for your docker-compose.yml configuration:
version: ‘3.0’

external: true

image: seafileltd/office-preview:latest
container_name: seafile-office-preview
- “8089:8089”
command: bash start.sh
- /opt/office-preview/shared:/shared
- seafile-net

1 Like

Many thanks! That was the trick. Now office preview works for all extensions!

1 Like

The document has been updated. You can remove network part in the docker-compose.yml to solve the problem.