- Nextcloud Server version (e.g., 29.x.x):
30.0.4
- Operating system and version (e.g., Ubuntu 24.04):
Debian 12 (OMV7
)- Linuxserver.io nextcloud docker image + mariadb
- When did this problem seem to first start?
After installation of collabora container
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Linuxserver.io nextcloud docker image + mariadb + swag
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
no
Summary of the issue you are facing:
I am not sure if I have set-up collabora correctly. It works but I have frequent errors in the logs. I am concerned that this is causing performance issues.
This error appears in batches of about 5 when I use collabora, and then stops for a while:(see log section)
Steps to replicate it:
- Install collabora docker-compose
- Open file
- See log
Log entries
[richdocuments] Info: Failed to convert preview: cURL error 28: Resolving timed out after 5002 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://collabora.xxxxxxxxxxxxxxxxx/cool/convert-to/png GET /core/preview?fileId=1710799&x=128&y=128&mimeFallback=true&v=9d6f1d&a=0 from 192.168.1.1 by xxxxxxx at Jan 7, 2025, 2:27:34 PM
[richdocuments] Error: Failed to convert preview: cURL error 28: Resolving timed out after 5002 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://collabora.xxxxxxxxxxxxxxxxxxx/cool/convert-to/png GET /core/preview?fileId=1710799&x=128&y=128&mimeFallback=true&v=9d6f1d&a=0 from 192.168.1.1 by xxxxxxx at Jan 7, 2025, 2:27:34 PM
Nextcloud RAW Log
{"reqId":"SyMKjOaNl0RPVoGbW4ji","level":1,"time":"2025-01-07T14:27:34+00:00","remoteAddr":"192.168.1.1","user":"rowan","app":"richdocuments","method":"GET","url":"/core/preview?fileId=1710799&x=128&y=128&mimeFallback=true&v=9d6f1d&a=0","message":"Failed to convert preview: cURL error 28: Resolving timed out after 5002 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://collabora.nc28.duckdns.org/cool/convert-to/png","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","exception":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 28: Resolving timed out after 5002 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://collabora.nc28.duckdns.org/cool/convert-to/png","Code":0,"Trace":[{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":142,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->"},{"file":"/app/www/public/lib/private/Http/Client/DnsPinMiddleware.php","line":109,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":64,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->"},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":66,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Client.php","line":333,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->"},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Client.php","line":169,"function":"transfer","class":"GuzzleHttp\\Client","type":"->"},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Client.php","line":189,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/lib/private/Http/Client/Client.php","line":276,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/Service/RemoteService.php","line":92,"function":"post","class":"OC\\Http\\Client\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/apps/richdocuments/lib/Service/RemoteService.php","line":72,"function":"convertTo","class":"OCA\\Richdocuments\\Service\\RemoteService","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/Preview/Office.php","line":41,"function":"convertFileTo","class":"OCA\\Richdocuments\\Service\\RemoteService","type":"->"},{"file":"/app/www/public/lib/private/Preview/GeneratorHelper.php","line":44,"function":"getThumbnail","class":"OCA\\Richdocuments\\Preview\\Office","type":"->"},{"file":"/app/www/public/lib/private/Preview/Generator.php","line":337,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/app/www/public/lib/private/Preview/Generator.php","line":313,"function":"generateProviderPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/app/www/public/lib/private/Preview/Generator.php","line":119,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/app/www/public/lib/private/Preview/Generator.php","line":86,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/app/www/public/lib/private/PreviewManager.php","line":167,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/app/www/public/core/Controller/PreviewController.php","line":159,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/app/www/public/core/Controller/PreviewController.php","line":123,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/www/public/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/app/www/public/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/app/www/public/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"message":"Failed to convert preview: cURL error 28: Resolving timed out after 5002 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://collabora.nc28.duckdns.org/cool/convert-to/png","exception":[],"CustomMessage":"Failed to convert preview: cURL error 28: Resolving timed out after 5002 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://collabora.nc28.duckdns.org/cool/convert-to/png"},"id":"677d3eea4cda8"}
Configuration
Nextcloud Compose
services:
nextcloud:
image: ghcr.io/linuxserver/nextcloud:latest
container_name: nextcloud
network_mode: swag_default
environment:
- PUID=1001
- PGID=100
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_HOST_PASSWORD=xxxxxxxxxxxxxxxx
volumes:
- /srv/dev-disk-by-uuid-c3060981-d75c-4ea9-8285-2333c24522df/nextcloud:/config
- /srv/dev-disk-by-uuid-c3060981-d75c-4ea9-8285-2333c24522df/nextcloud-data:/data
- /srv/dev-disk-by-uuid-98804e17-cc15-4de0-bd6d-db601baa8792/ncpreviews:/data/appdata_ocrue0s1tf5r/preview
- /etc/localtime:/etc/localtime:ro
depends_on:
- mariadb
restart: unless-stopped
mariadb:
image: ghcr.io/linuxserver/mariadb:latest
container_name: nextclouddb
network_mode: swag_default
environment:
- PUID=1001
- PGID=100
- MYSQL_ROOT_PASSWORD=xxxxxxxxxxx
- TZ=Etc/GMT
volumes:
- /srv/dev-disk-by-uuid-c3060981-d75c-4ea9-8285-2333c24522df/mariadb:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
redis:
image: redis
container_name: redis
hostname: redis
network_mode: swag_default
environment:
- PUID=1001
- PGID=100
- TZ=Etc/GMT
command: redis-server --requirepass xxxxxxxxxxxxxxxxx
restart: unless-stopped
go-vod:
image: radialapps/go-vod
restart: always
init: true
depends_on:
- nextcloud
environment:
- NEXTCLOUD_HOST=https://nextcloud.xxxxxxxxxxxxxxx.org
- NEXTCLOUD_ALLOW_INSECURE=1 # (self-signed certs or no HTTPS)
- NVIDIA_VISIBLE_DEVICES=all
network_mode: swag_default
volumes:
- /srv/dev-disk-by-uuid-c3060981-d75c-4ea9-8285-2333c24522df/nextcloud-data:/data:ro
runtime: nvidia # (NVENC)
Collabora Compose
services:
collabora:
image: collabora/code
container_name: collabora
network_mode: swag_default #Adjust
environment:
- PUID=1001
- PGID=100
- domain=nextcloud\.xxxxxxxxxxxx\.org
- username=admin
- password=xxxxxxxxxxxxxx
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
cap_add:
- MKNOD
ports:
- 9980:9980
restart: unless-stopped
privileged: true
Would you be able to help identify the issues in the logs and how to resolve them? Could you also help to explain if I have set-up collabora correctly?
Thanks a lot!