Docker office preview timeout

Hi,

I upgraded our pro server to 9.0.7 last week and installed the office converter as a docker container. Now every few days there is a timeout when clients try to preview office documents that can only be resolved by restarting the docker container.
In the seahub.log of the seafile server I find entries like that:

Traceback (most recent call last):
  File "/home/seafile/seafile-pro-server-9.0.7/seahub/thirdpart/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/home/seafile/seafile-pro-server-9.0.7/seahub/thirdpart/urllib3/connectionpool.py", line 788, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/seafile/seafile-pro-server-9.0.7/seahub/thirdpart/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='office.x.y.z', port=8089): Max retries exceeded with url: /add-task?file_id=ec3c0bef077692365703f32fb8a06951ff68e43b&doctype=docx&raw_path=https%3A%2F%2Fseafile.x.y.z%2Fseafhttp%2Ffiles%2F68b026d5-210a-4c23-b582-a5f64f346acf%2FPhD1_%252009092022.docx (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f496d56b048>: Failed to establish a new connection: [Errno 110] Connection timed out',))

How can this be resolved?
Dirk

Please post the office-preview error log.
The path is /your-office-preview-path/shared/convert.log, eg: /opt/office-preview/shared/convert.log

Also, please check the docker contanier log. The command is docker logs seatable-office-preview

Hi,

the convert.log ends yesterday at 16:00. since then the clients report timeout errors.
The last message in convert.log is:

131.x.y.z - - [14/Sep/2022 16:00:50] "GET /get-converted-page?static_filename=bd6cd....pdf&file_id=bd6cd... HTTP/1.1" 200 -

The docker logs give no valuable information:

# docker logs seafile-office-preview
HOSTNAME=8db... PWD=/opt/office_convertor HOME=/root PYTHONPATH=/shared SHLVL=0 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DEBIAN_FRONTEND=noninteractive _=/usr/bin/env
HOSTNAME=8db... PWD=/opt/office_convertor HOME=/root PYTHONPATH=/shared SHLVL=0 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DEBIAN_FRONTEND=noninteractive _=/usr/bin/env
HOSTNAME=8db... PWD=/opt/office_convertor HOME=/root PYTHONPATH=/shared SHLVL=0 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DEBIAN_FRONTEND=noninteractive _=/usr/bin/env
HOSTNAME=8db... PWD=/opt/office_convertor HOME=/root PYTHONPATH=/shared SHLVL=0 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DEBIAN_FRONTEND=noninteractive _=/usr/bin/env

Thank you for your feedback. We just update the office-preview docker image.

Please use the command docker pull seafileltd/office-preview:latest to update the docker image.

And then execute docker-compose down, docker-compose up -d to restart the office-preview.