Clamav container starts in AIO, then changes to "starting"

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12
  • Web server and version (e.g, Apache 2.4.25):
    • 2.4.62
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • NGINX through linuxserver.io SWAG
  • PHP version (e.g, 8.3):
    • whatever AIO 10.0.0 uses
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • About 2 months ago
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • AIO 10.0.0
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

[This started before upgrading AIO to v10. I noticed that pictures and videos were no longer getting thumbnails in the photos tab. Old pictures and videos still had theirs, but nothing newly uploaded. In the AIO management page I noticed ClamAV was “starting.” I saw that an old version of docker might cause this, so I upgraded. No change. When I restart all the containers, clamav will start, but within a few minutes it changes back to yellow/starting. I think this is what is keeping Imaginary from creating the thumbnails, because the one time I got Clamav to start for more than a few minutes, the thumbnails appeared. Then the problem returned, and those thumbnails are gone again. In the Nextcloud Admin logs there are a millions Runtime Exceptions from clamav]

Steps to replicate it (hint: details matter!):

  1. Start up the server
  2. Let everything boot
  3. Watch the clamav container change to “starting”

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"x80BJefomfj3bbovZcZ5","level":3,"time":"2024-11-25T19:24:03+00:00","remoteAddr":"192.168.10.5","user":"e4062f22-7e69-3f77-8a46-c95312a8c834","app":"index","method":"GET","url":"/apps/photos/api/v1/preview/180463?etag=e3a9037a149e2e22117e127076cc5f02&x=512&y=512","message":"Could not connect to ClamAV via nextcloud-aio-clamav:3310. Please check that ClamAV is running and reachable.","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.2.2","exception":{"Exception":"RuntimeException","Message":"Could not connect to ClamAV via nextcloud-aio-clamav:3310. Please check that ClamAV is running and reachable.","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/files_antivirus/lib/AvirWrapper.php","line":147,"function":"initScanner","class":"OCA\\Files_Antivirus\\Scanner\\ExternalClam","type":"->","args":[]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":240,"function":"file_put_contents","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->","args":["appdata_ociirvvusxvu/preview/8/d/a/3/f/a/d/180463/1024-576.jpg",null]},{"file":"/var/www/html/lib/private/Files/View.php","line":1134,"function":"file_put_contents","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["appdata_ociirvvusxvu/preview/8/d/a/3/f/a/d/180463/1024-576.jpg",null]},{"file":"/var/www/html/lib/private/Files/View.php","line":644,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["file_put_contents","/appdata_ociirvvusxvu/preview/8/d/a/3/f/a/d/180463/1024-576.jpg",["create","write"],null]},{"file":"/var/www/html/lib/private/Files/Node/Folder.php","line":167,"function":"file_put_contents","class":"OC\\Files\\View","type":"->","args":["/appdata_ociirvvusxvu/preview/8/d/a/3/f/a/d/180463/1024-576.jpg",null]},{"file":"/var/www/html/lib/private/Files/SimpleFS/NewSimpleFile.php","line":103,"function":"newFile","class":"OC\\Files\\Node\\Folder","type":"->","args":["1024-576.jpg",null]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":537,"function":"putContent","class":"OC\\Files\\SimpleFS\\NewSimpleFile","type":"->","args":[null]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":169,"function":"generatePreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"},{"__class__":"OCP\\Image"},1024,576,false,1920,1080,""]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":86,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":512,"height":512,"crop":false,"mode":"fill"}],"video/mp4"]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":167,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},512,512,false,"fill",null]},{"file":"/var/www/html/apps/photos/lib/Controller/PreviewController.php","line":161,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},512,512]},{"file":"/var/www/html/apps/photos/lib/Controller/PreviewController.php","line":127,"function":"fetchPreview","class":"OCA\\Photos\\Controller\\PreviewController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},512,512]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"index","class":"OCA\\Photos\\Controller\\PreviewController","type":"->","args":[180463,512,512]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Photos\\Controller\\PreviewController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Photos\\Controller\\PreviewController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Photos\\Controller\\PreviewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"fileId":"180463","_route":"photos.preview.index"}]},{"file":"/var/www/html/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/photos/api/v1/preview/180463"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/files_antivirus/lib/Scanner/ExternalClam.php","Line":47,"message":"Could not connect to ClamAV via nextcloud-aio-clamav:3310. Please check that ClamAV is running and reachable.","exception":[],"CustomMessage":"Could not connect to ClamAV via nextcloud-aio-clamav:3310. Please check that ClamAV is running and reachable."},"id":"6744cf6269515"}

Here’s the container log from the AIO panel:

2024-11-25T19:20:11.673597000Z Starting Freshclamd
2024-11-25T19:20:11.673880000Z Starting ClamAV
2024-11-25T19:20:11.690301000Z 
or clamd not found yet, retrying (0/90) ...ClamAV update process started at Mon Nov 25 13:20:11 2024
2024-11-25T19:20:11.705912000Z daily database available for update (local version: 27467, remote version: 27468)
2024-11-25T19:20:12.959039000Z 
or clamd not found yet, retrying (1/90) ...Testing database: '/var/lib/clamav/tmp.478202ad26/clamav-d67b7f6c357b86eec148e815c3db19b4.tmp-daily.cld' ...
2024-11-25T19:20:16.840131000Z 
or clamd not found yet, retrying (2/90) ...
or clamd not found yet, retrying (3/90) ...
or clamd not found yet, retrying (4/90) ...
or clamd not found yet, retrying (5/90) ...Database test passed.
2024-11-25T19:20:16.842798000Z daily.cld updated (version: 27468, sigs: 2068483, f-level: 90, builder: raynman)
2024-11-25T19:20:16.857721000Z main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
2024-11-25T19:20:16.857803000Z bytecode.cld database is up-to-date (version: 335, sigs: 86, f-level: 90, builder: raynman)
2024-11-25T19:20:16.858024000Z WARNING: Clamd was NOT notified: Can't connect to clamd through /tmp/clamd.sock: No such file or directory
2024-11-25T19:20:22.960117000Z 
or clamd not found yet, retrying (6/90) ...
or clamd not found yet, retrying (7/90) ...
or clamd not found yet, retrying (8/90) ...
or clamd not found yet, retrying (9/90) ...
or clamd not found yet, retrying (10/90) ...
or clamd not found yet, retrying (11/90) ...Mon Nov 25 13:20:22 2024 -> Limits: Global time limit set to 120000 milliseconds.
2024-11-25T19:20:22.960495000Z Mon Nov 25 13:20:22 2024 -> Limits: Global size limit set to 419430400 bytes.
2024-11-25T19:20:22.960551000Z LibClamAV Warning: Max file-size was set to 10737418240 bytes. Unfortunately, scanning files greater than 2147483647 bytes (2 GiB - 1) is not supported.
2024-11-25T19:20:22.960596000Z Mon Nov 25 13:20:22 2024 -> Limits: File size limit set to 2147483645 bytes.
2024-11-25T19:20:22.960643000Z Mon Nov 25 13:20:22 2024 -> Limits: Recursion level limit set to 17.
2024-11-25T19:20:22.960678000Z Mon Nov 25 13:20:22 2024 -> Limits: Files limit set to 10000.
2024-11-25T19:20:22.960726000Z Mon Nov 25 13:20:22 2024 -> Limits: MaxEmbeddedPE limit set to 41943040 bytes.
2024-11-25T19:20:22.960793000Z Mon Nov 25 13:20:22 2024 -> Limits: MaxHTMLNormalize limit set to 41943040 bytes.
2024-11-25T19:20:22.960824000Z Mon Nov 25 13:20:22 2024 -> Limits: MaxHTMLNoTags limit set to 8388608 bytes.
2024-11-25T19:20:22.960851000Z Mon Nov 25 13:20:22 2024 -> Limits: MaxScriptNormalize limit set to 20971520 bytes.
2024-11-25T19:20:22.960878000Z Mon Nov 25 13:20:22 2024 -> Limits: MaxZipTypeRcg limit set to 1048576 bytes.
2024-11-25T19:20:22.960906000Z Mon Nov 25 13:20:22 2024 -> Limits: MaxPartitions limit set to 50.
2024-11-25T19:20:22.960934000Z Mon Nov 25 13:20:22 2024 -> Limits: MaxIconsPE limit set to 100.
2024-11-25T19:20:22.960962000Z Mon Nov 25 13:20:22 2024 -> Limits: MaxRecHWP3 limit set to 16.
2024-11-25T19:20:22.961021000Z Mon Nov 25 13:20:22 2024 -> Limits: PCREMatchLimit limit set to 100000.
2024-11-25T19:20:22.961052000Z Mon Nov 25 13:20:22 2024 -> Limits: PCRERecMatchLimit limit set to 2000.
2024-11-25T19:20:22.961087000Z Mon Nov 25 13:20:22 2024 -> Limits: PCREMaxFileSize limit set to 10737418240.
2024-11-25T19:20:22.961123000Z Mon Nov 25 13:20:22 2024 -> Archive support enabled.
2024-11-25T19:20:22.961150000Z Mon Nov 25 13:20:22 2024 -> Image (graphics) scanning support enabled.
2024-11-25T19:20:22.961187000Z Mon Nov 25 13:20:22 2024 -> Detection using image fuzzy hash enabled.
2024-11-25T19:20:22.961231000Z Mon Nov 25 13:20:22 2024 -> AlertExceedsMax heuristic detection disabled.
2024-11-25T19:20:22.961287000Z Mon Nov 25 13:20:22 2024 -> Heuristic alerts enabled.
2024-11-25T19:20:22.961318000Z Mon Nov 25 13:20:22 2024 -> Portable Executable support enabled.
2024-11-25T19:20:22.961358000Z Mon Nov 25 13:20:22 2024 -> ELF support enabled.
2024-11-25T19:20:22.961388000Z Mon Nov 25 13:20:22 2024 -> Mail files support enabled.
2024-11-25T19:20:22.961433000Z Mon Nov 25 13:20:22 2024 -> OLE2 support enabled.
2024-11-25T19:20:22.961498000Z Mon Nov 25 13:20:22 2024 -> PDF support enabled.
2024-11-25T19:20:22.961531000Z Mon Nov 25 13:20:22 2024 -> SWF support enabled.
2024-11-25T19:20:22.961571000Z Mon Nov 25 13:20:22 2024 -> HTML support enabled.
2024-11-25T19:20:22.961617000Z Mon Nov 25 13:20:22 2024 -> XMLDOCS support enabled.
2024-11-25T19:20:22.961651000Z Mon Nov 25 13:20:22 2024 -> HWP3 support enabled.
2024-11-25T19:20:22.961678000Z Mon Nov 25 13:20:22 2024 -> OneNote support enabled.
2024-11-25T19:20:22.961714000Z Mon Nov 25 13:20:22 2024 -> Self checking every 600 seconds.
2024-11-25T19:20:22.961765000Z Mon Nov 25 13:20:22 2024 -> Set stacksize to 1048576
2024-11-25T19:20:23.682093000Z socket found, clamd started.

Here’s the docker inspect showing the unhealthy container:

[
    {
        "Id": "257cc84e40382389d247792a4b738001174da3d496cba16d48b4e3e4a06ed88d",
        "Created": "2024-11-25T19:20:05.969685242Z",
        "Path": "/init-unprivileged",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": true,
            "Dead": false,
            "Pid": 3886662,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-11-25T19:20:11.283518501Z",
            "FinishedAt": "0001-01-01T00:00:00Z",
            "Health": {
                "Status": "unhealthy",
                "FailingStreak": 30,
                "Log": [
                    {
                        "Start": "2024-11-25T13:35:58.282179101-06:00",
                        "End": "2024-11-25T13:35:58.320001534-06:00",
                        "ExitCode": 1,
                        "Output": "ERROR: Unable to contact server\n"
                    },
                    {
                        "Start": "2024-11-25T13:36:28.321083384-06:00",
                        "End": "2024-11-25T13:36:28.35526094-06:00",
                        "ExitCode": 1,
                        "Output": "ERROR: Unable to contact server\n"
                    },
                    {
                        "Start": "2024-11-25T13:36:58.356044387-06:00",
                        "End": "2024-11-25T13:36:58.395207506-06:00",
                        "ExitCode": 1,
                        "Output": "ERROR: Unable to contact server\n"
                    },
                    {
                        "Start": "2024-11-25T13:37:28.396260067-06:00",
                        "End": "2024-11-25T13:37:28.430474413-06:00",
                        "ExitCode": 1,
                        "Output": "ERROR: Unable to contact server\n"
                    },
                    {
                        "Start": "2024-11-25T13:37:58.430813244-06:00",
                        "End": "2024-11-25T13:37:58.460218498-06:00",
                        "ExitCode": 1,
                        "Output": "ERROR: Unable to contact server\n"
                    }
                ]
            }
        },
        "Image": "sha256:13bb15e8f878618a478c7463de437c427ff8196826521f63f3974dbd7e2090bc",
        "ResolvConfPath": "/var/lib/docker/containers/257cc84e40382389d247792a4b738001174da3d496cba16d48b4e3e4a06ed88d/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/257cc84e40382389d247792a4b738001174da3d496cba16d48b4e3e4a06ed88d/hostname",
        "HostsPath": "/var/lib/docker/containers/257cc84e40382389d247792a4b738001174da3d496cba16d48b4e3e4a06ed88d/hosts",
        "LogPath": "",
        "Name": "/nextcloud-aio-clamav",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "nextcloud_aio_clamav:/var/lib/clamav:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "journald",
                "Config": {}
            },
            "NetworkMode": "nextcloud-aio",
            "PortBindings": null,
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": [
                "NET_RAW"
            ],
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": true,
            "SecurityOpt": [
                "label:disable"
            ],
            "Tmpfs": {
                "/tmp": "",
                "/var/lock": "",
                "/var/log/clamav": ""
            },
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ],
            "Init": false
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/19095cd72c276f67e47e40dc22c96ae0902df99db8011e64f7ebb126dfe51050-init/diff:/var/lib/docker/overlay2/cd725dd9aeafbf0a98e93b8ca458e62e784ae3b303136f14227cf4a597aac687/diff:/var/lib/docker/overlay2/3f6115cfeecdac26cb539e25e9447e01a8c4bf900eabb3b8e69e258ee88b1e6e/diff:/var/lib/docker/overlay2/6eee4058070d7b6c7a7e83efad33357cce58fa0c8ac2b630bd88f83fc6f85d46/diff:/var/lib/docker/overlay2/4e206e5fde0abbcf30f2d039e36b73e6263445f9f752c10fe365e7f1aeb825ce/diff:/var/lib/docker/overlay2/dffe1af8ce679bcdac4f39bc1d8196dd9b88be4d55b76f35b494cbea3200570a/diff:/var/lib/docker/overlay2/1da7b76976e0d13b7ff87209c4be1c37d9b45cffa1e1e06d7deedf3bcbee62cc/diff:/var/lib/docker/overlay2/a941fc434b53187291bea27ef21f289bc70d1b6650c5a60a509d8ed5d1a60034/diff:/var/lib/docker/overlay2/2720f29d4284a35b83e458a7331bd880d87c5d866a7f748d20e7ad5957a12b7e/diff:/var/lib/docker/overlay2/29631771e87234ef5b3c64d7d8ff4c39c49dfd9be012adaaa6ae66dc033dab3d/diff:/var/lib/docker/overlay2/1931a3bb925e95e8c2f0b70cba5183ba4d4b6f3bc2296679d05683e7210c1922/diff",
                "MergedDir": "/var/lib/docker/overlay2/19095cd72c276f67e47e40dc22c96ae0902df99db8011e64f7ebb126dfe51050/merged",
                "UpperDir": "/var/lib/docker/overlay2/19095cd72c276f67e47e40dc22c96ae0902df99db8011e64f7ebb126dfe51050/diff",
                "WorkDir": "/var/lib/docker/overlay2/19095cd72c276f67e47e40dc22c96ae0902df99db8011e64f7ebb126dfe51050/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "volume",
                "Name": "nextcloud_aio_clamav",
                "Source": "/var/lib/docker/volumes/nextcloud_aio_clamav/_data",
                "Destination": "/var/lib/clamav",
                "Driver": "local",
                "Mode": "rw",
                "RW": true,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "257cc84e4038",
            "Domainname": "",
            "User": "100",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "3310/tcp": {},
                "7357/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "TZ=America/Chicago",
                "MAX_SIZE=10G",
                "CLAMD_STARTUP_TIMEOUT=90",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": null,
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "clamdcheck.sh"
                ],
                "StartPeriod": 360000000000
            },
            "Image": "nextcloud/aio-clamav:latest",
            "Volumes": {
                "/var/lib/clamav": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/init-unprivileged"
            ],
            "OnBuild": null,
            "Labels": {
                "com.centurylinklabs.watchtower.enable": "false",
                "maintainer": "ClamAV bugs <clamav-bugs@external.cisco.com>"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "1465a3b74a6d0f64bd4932651c73f46226b568891bb82d73e0d22ae92018d09c",
            "SandboxKey": "/var/run/docker/netns/1465a3b74a6d",
            "Ports": {
                "3310/tcp": null,
                "7357/tcp": null
            },
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "nextcloud-aio": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "MacAddress": "02:42:ac:13:00:06",
                    "DriverOpts": null,
                    "NetworkID": "50616600212ff5bc885eef3aaea438a2ce90e675ac1fd0f7201c4814156e1ac6",
                    "EndpointID": "033dda92d064f33f144ee0a3edbddd7cdde6c5ef8225b5201c0dd80852db3f70",
                    "Gateway": "172.19.0.1",
                    "IPAddress": "172.19.0.6",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "nextcloud-aio-clamav",
                        "257cc84e4038"
                    ]
                }
            }
        }
    }
]

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

no errors

I’m obviously not sure where to look. I’m only partially sure that this is what is causing the lack of thumbnails. Maybe Nextcloud won’t let Imaginary make thumbnails until the file is scanned? The video files are big, larger than 3gb, which is causing a log entry in ClamAV but shouldn’t be killing it, right?

Thanks!

For further info, disabling ClamAV in the AIO dashboard fixes the problem with the missing thumbnails.

Obviously I would rather have ClamAV enabled.

Has anyone else seen this issue?

I have been experiencing a similar issue. Though for me the time between ClamAV “Running”, and it reverting to “Starting” varies. Sometimes it runs fine for 2-3 days, sometimes less than a day.
Perhaps not incidentally, synching notes on mobile also fails whenever this occurs. Restarting the server entirely resolves it again. Other functionality appears unaffected though I have not done extensive testing.
The ClamAV logfiles stop logging “SelfCheck: Database status OK.” after a while. Whenever the database update occurs, it ends with “WARNING: Clamd was NOT notified: Can’t connect to clamd through /tmp/clamd.sock: Connection refused”.

As I’m writing this, I realize that for a service I’m hosting on another machine I ran into docker issues, and apparently just the “apt-get install docker” is not the proper way to install docker on Debian 12. While the installation of Nextcloud AIO went fine, perhaps the issue is related.
I’ll try to install docker using this method somewhere this week. I’ll report back if this helps anything.
The “proper” method: Debian | Docker Docs

2 Likes

Interesting. However this started happening to me on a system where docker was untouched for months. The problem has only recently arisen after everything being fine for over a year.

I have auto updates enabled on AIO, so I assume some update is what broke ClamAV. But that’s a guess.

Sounds reasonable. I had a relatively fresh install of AIO so I can’t draw any conclusions.
I changed my setup yesterday morning. I believe I made the mistake previously by installing docker as root, this time I made sure to use a non-root account. I don’t have enough experience to tell if that affects anything, but seems worth noting.

For reference, running “sudo dpkg -l | grep -i docker” before → after updates.
docker-buildx-plugin: 0.17.1-1 → 0.19.2-1
docker-ce: 5:27.3.1-1 → 5:27.4.0-1
docker-ce-cli: 5:27.3.1-1 → 5:27.4.0-1
docker-ce-rootless-extras: 5:27.3.1-1 → 5:27.4.0-1
docker-compose-plugin: 2.29.7-1 → 2.31.0-1

Edit: Darn… this did not solve it for me. After ~ 45 hours I am experiencing the same issues again. Back to the drawing board.