Skip to content

[Bug] Antivirus/Postprocessing Service with ICAP ClamAV stuck when sending many files #1561

Closed

Description

@suse-coder

Describe the bug

When I use icap to send from antivirus service in opencloud to clamav, then at around more than 100 files its get stuck. The clamav is working fine, but it seems that no new request is done to icap. Cant remove files also with cli (only in session deleted, but still in UI).

	 opencloud storage-users uploads sessions \
     --expired=false \
     --clean

Is it maybe that the concurrency: 10 for the workers in antivirus service needs to be much higher that clamav answers faster than the antivirus service can handle it or is it postprocessing that make the problem?

  postprocessing:
    events:
      consumer:
        # -- Number of event consumers to be started that concurrently consume events
        concurrency: 3

  antivirus:
    events:
      consumer:
        # -- Number of event consumers to be started that concurrently consume events.
        concurrency: 10

Image

Steps to reproduce

  1. Extract this zip and upload only like 10 items -> will work.

WindowsUpdate2.zip

  1. Upload all 300 items -> "this item is in processing" -> stuck.

These are antivirus service logs:

{"level":"info","service":"antivirus","uploadid":"bdee87d0-d135-43db-870b-ce441427c93d","resourceID":{"opaque_id":"5e330d2c-25cb-4935-affc-3f33127e6772","space_id":"530a5314-1fd6-4cf3-a9c7-11f28fbbf7bd"},"virus":"","outcome":"continue","filename":"WindowsUpdate.20250828.190027.923.1 - Copy (2).etl","user":"6f50824e-b056-4bba-8a09-b7467cc173ce","infected":false,"duration":57.066961,"time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:241","message":"File scanned"}
{"level":"info","service":"antivirus","traceID":"3ec89fb75a39fa751da4b9b08b62bb2e","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"47e64958-7a61-43e2-b074-7417cde89eb1","filename":"WindowsUpdate.20250828.190027.923.1 - Copy.etl","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"47e64958-7a61-43e2-b074-7417cde89eb1","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","uploadid":"47e64958-7a61-43e2-b074-7417cde89eb1","resourceID":{"opaque_id":"11bb1323-4909-4e71-aca0-fa3a5516e346","space_id":"530a5314-1fd6-4cf3-a9c7-11f28fbbf7bd"},"virus":"","outcome":"continue","filename":"WindowsUpdate.20250828.190027.923.1 - Copy.etl","user":"6f50824e-b056-4bba-8a09-b7467cc173ce","infected":false,"duration":56.222019,"time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:241","message":"File scanned"}
{"level":"info","service":"antivirus","traceID":"d3219628876c621766f4cf61f249a7cc","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"ab3bab56-833e-49b5-9398-b42b57b9c567","filename":"WindowsUpdate.20250817.212238.054.1 - Copy (2).etl","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"ab3bab56-833e-49b5-9398-b42b57b9c567","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","traceID":"d02362ab9ec9443d5443a3dcd4b97578","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"cfa80a23-33f4-4775-a6d7-33b6f73e4128","filename":"WindowsUpdate.20250817.212238.054.1.etl","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"cfa80a23-33f4-4775-a6d7-33b6f73e4128","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","uploadid":"ab3bab56-833e-49b5-9398-b42b57b9c567","resourceID":{"opaque_id":"9b212f24-eda8-44dd-b3c1-0b5695831cbb","space_id":"530a5314-1fd6-4cf3-a9c7-11f28fbbf7bd"},"virus":"","outcome":"continue","filename":"WindowsUpdate.20250817.212238.054.1 - Copy (2).etl","user":"6f50824e-b056-4bba-8a09-b7467cc173ce","infected":false,"duration":65.625068,"time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:241","message":"File scanned"}
{"level":"error","service":"antivirus","error":"read tcp 10.244.1.54:53422->10.108.44.209:1344: use of closed network connection\nclose tcp 10.244.1.54:53422->10.108.44.209:1344: use of closed network connection","uploadid":"cfa80a23-33f4-4775-a6d7-33b6f73e4128","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:307","message":"error scanning file"}
{"level":"info","service":"antivirus","uploadid":"cfa80a23-33f4-4775-a6d7-33b6f73e4128","resourceID":{"opaque_id":"6226bcf1-3b3e-42af-8e39-333a0ec9670b","space_id":"530a5314-1fd6-4cf3-a9c7-11f28fbbf7bd"},"virus":"","outcome":"retry","filename":"WindowsUpdate.20250817.212238.054.1.etl","user":"6f50824e-b056-4bba-8a09-b7467cc173ce","infected":false,"duration":30.179749,"time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:241","message":"File scanned"}
{"level":"info","service":"antivirus","traceID":"a3ddd9911655af36400ed22ba52bd848","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"68ca19a7-2344-4f23-a2cc-26c16a085148","filename":"WindowsUpdate.20250828.190027.923.1.etl","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"info","service":"antivirus","traceID":"a145d7db437d4561f7a067c833cf4aa5","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"b14b0bc1-4b44-498a-a4ca-bbe83901eb8d","filename":"WindowsUpdate.20250825.054454.334.1.etl","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"info","service":"antivirus","traceID":"4fc8ef24e80c2f8f614b7a44d73d0ac6","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"9ceac52c-d7f3-43e2-9376-287c200e9958","filename":"WindowsUpdate.20250828.212228.086.1 - Copy (2).etl","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"68ca19a7-2344-4f23-a2cc-26c16a085148","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"debug","service":"antivirus","uploadid":"9ceac52c-d7f3-43e2-9376-287c200e9958","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"debug","service":"antivirus","uploadid":"b14b0bc1-4b44-498a-a4ca-bbe83901eb8d","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","traceID":"821185a691152964cc6aec1f2ffd1675","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"0b50806b-104c-4d82-a994-bf7ed4129df9","filename":"WindowsUpdate.20250828.212228.086.1 - Copy.etl","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"0b50806b-104c-4d82-a994-bf7ed4129df9","time":"2025-09-24T22:50:00Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","traceID":"3c5696e6887a36c9d23537c976dc7a3e","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"231d9992-dc3f-417c-8238-7ce49999f8fc","filename":"WindowsUpdate.20250828.212228.086.1.etl","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"231d9992-dc3f-417c-8238-7ce49999f8fc","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","traceID":"f6b1a9e8caba7032f25c413a63474a92","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"379eac2c-65c7-4c64-8057-f920d0d2c9f4","filename":"WindowsUpdate.20250825.104203.157.1 - Copy.etl","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"379eac2c-65c7-4c64-8057-f920d0d2c9f4","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","traceID":"fa1dd9cd67a043502f96bf2a2f85b5f5","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"10f12e35-419a-4165-bbcc-3ea222816859","filename":"WindowsUpdate.20250828.213724.117.1 - Copy (2).etl","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"10f12e35-419a-4165-bbcc-3ea222816859","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","traceID":"87f8e57a595a2ab11abf02bf5de2976c","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"9461f075-9643-4c6f-9db7-c39647cda484","filename":"WindowsUpdate.20250828.213724.117.1 - Copy.etl","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"9461f075-9643-4c6f-9db7-c39647cda484","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","traceID":"0069b755dae7ca752b2fdac567668bd2","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"aa001d9f-f632-4857-bcd4-2021a7c58664","filename":"WindowsUpdate.20250828.213724.117.1.etl","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"aa001d9f-f632-4857-bcd4-2021a7c58664","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}
{"level":"info","service":"antivirus","traceID":"b0a5e6e809e8c0a74295e9d8d6f0c9b4","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:190","message":"TraceID"}
{"level":"debug","service":"antivirus","uploadid":"d02cd025-bf2e-44da-8b80-4cc46da93fa6","filename":"WindowsUpdate.20250829.065916.172.1 - Copy (2).etl","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:218","message":"Starting virus scan."}
{"level":"debug","service":"antivirus","uploadid":"d02cd025-bf2e-44da-8b80-4cc46da93fa6","time":"2025-09-24T22:50:01Z","line":"github.com/opencloud-eu/opencloud/services/antivirus/pkg/service/service.go:303","message":"Downloaded file successfully, starting virusscan"}

Settings for clamav:
CLAMAV_REPLICA_COUNT: "1"
CLAMAV_RESOURCES_LIMITS_CPU: "500m"
CLAMAV_RESOURCES_LIMITS_MEMORY: "512Mi"
CLAMAV_RESOURCES_REQUESTS_CPU: "250m"
CLAMAV_RESOURCES_REQUESTS_MEMORY: "256Mi"
CLAMAV_PERSISTENCE_SIZE: "10Gi"
CLAMAV_FRESHCLAM_IMAGE_TAG: "1.4.3"
CLAMAV_CLAMD_IMAGE_TAG: "1.4.3"
CLAMAV_ICAP_IMAGE_TAG: "0.5.10"
CLAMAV_ICAP_IMAGE_REPOSITORY: "bmi/opendesk/components/platform-development/images/clamav-icap"
CLAMAV_ICAP_IMAGE_REGISTRY: "registry.opencode.de"
CLAMAV_ICAP_CLAMD_HOST: "clamav-clamd"
CLAMAV_MILTER_CLAMD_HOST: "clamav-clamd"

antivirus service:

apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: "2025-09-25T12:50:34Z"
  generateName: antivirus-7f8c47cf84-
  labels:
    app: antivirus
    app.kubernetes.io/instance: opencloud
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: opencloud-microservices
    app.kubernetes.io/version: 3.5.0
    helm.sh/chart: opencloud-microservices-0.3.4_2c427ac9a815
    pod-template-hash: 7f8c47cf84
  name: antivirus-7f8c47cf84-kwln9
  namespace: opencloud
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: antivirus-7f8c47cf84
    uid: ec7c6d64-f3ba-4755-abdb-e73b61f80602
  resourceVersion: "22359964"
  uid: 270c8031-6b8c-4551-8136-63229f50592d
spec:
  containers:
  - args:
    - antivirus
    - server
    command:
    - opencloud
    env:
    - name: MICRO_REGISTRY
      value: nats-js-kv
    - name: MICRO_REGISTRY_ADDRESS
      value: nats:9233
    - name: OC_EVENTS_ENDPOINT
      value: nats:9233
    - name: ANTIVIRUS_LOG_COLOR
      value: "false"
    - name: ANTIVIRUS_LOG_LEVEL
      value: debug
    - name: ANTIVIRUS_LOG_PRETTY
      value: "false"
    - name: ANTIVIRUS_DEBUG_ADDR
      value: 0.0.0.0:9277
    - name: ANTIVIRUS_DEBUG_PPROF
      value: "false"
    - name: ANTIVIRUS_INFECTED_FILE_HANDLING
      value: abort
    - name: ANTIVIRUS_SCANNER_TYPE
      value: icap
    - name: ANTIVIRUS_ICAP_SCAN_TIMEOUT
      value: "300"
    - name: ANTIVIRUS_ICAP_URL
      value: http://clamav-icap.clamav:1344
    - name: ANTIVIRUS_ICAP_SERVICE
      value: avscan
    - name: ANTIVIRUS_MAX_SCAN_SIZE
    - name: ANTIVIRUS_WORKERS
      value: "10"
    image: opencloudeu/opencloud-rolling:3.5.0
    imagePullPolicy: IfNotPresent
    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /healthz
        port: metrics-debug
        scheme: HTTP
      initialDelaySeconds: 60
      periodSeconds: 20
      successThreshold: 1
      timeoutSeconds: 10
    name: antivirus
    ports:
    - containerPort: 9277
      name: metrics-debug
      protocol: TCP
    resources: {}
    securityContext:
      readOnlyRootFilesystem: true
      runAsGroup: 1000
      runAsNonRoot: true
      runAsUser: 1000
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /etc/opencloud/messaging-system-ca
      name: messaging-system-ca
      readOnly: true
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-qzqs5
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  nodeName: talos-u29-csd
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    fsGroup: 1000
    fsGroupChangePolicy: OnRootMismatch
  serviceAccount: default
  serviceAccountName: default
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  volumes:
  - emptyDir: {}
    name: messaging-system-ca
  - name: kube-api-access-qzqs5
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2025-09-25T12:50:37Z"
    status: "True"
    type: PodReadyToStartContainers
  - lastProbeTime: null
    lastTransitionTime: "2025-09-25T12:50:34Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2025-09-25T12:50:37Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2025-09-25T12:50:37Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2025-09-25T12:50:34Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://5f47acd6c752000edab178ad77540849ac16a1d29150c99a4cbd52e59dd3aeb6
    image: docker.io/opencloudeu/opencloud-rolling:3.5.0
    imageID: docker.io/opencloudeu/opencloud-rolling@sha256:15963603ee31edf92317dea6ccd420afd9c40caf95d5ebc9901e42eb339789ef
    lastState: {}
    name: antivirus
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2025-09-25T12:50:36Z"
    volumeMounts:
    - mountPath: /etc/opencloud/messaging-system-ca
      name: messaging-system-ca
      readOnly: true
      recursiveReadOnly: Disabled
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-qzqs5
      readOnly: true
      recursiveReadOnly: Disabled
  hostIP: 192.168.178.108
  hostIPs:
  - ip: 192.168.178.108
  phase: Running
  podIP: 10.244.1.200
  podIPs:
  - ip: 10.244.1.200
  qosClass: BestEffort
  startTime: "2025-09-25T12:50:34Z"

postprocessing service:

{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"5242106d-32ad-49f3-80d1-3a8efc3a80ad","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"9d80e801-6e7d-42eb-aaca-87772696595f","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"f82f1444-8e4a-4e1c-af13-c92b4da61609","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"5deb61d7-61ba-413b-8d40-83620a16ad55","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"524e745f-7b0e-4cef-bf2b-7f07045066a5","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"2dba5eb2-f6bd-494f-96d4-e006116dbd29","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"e4f825f9-db2c-4306-a23a-5d1a5d814005","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"7ae05ea5-5b8f-4fea-bb8e-4068cd274537","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"ebf5ea23-95e7-400c-a1e5-a92d96584b62","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"57d7ccd9-63e6-42f9-973d-22ce711825da","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"f4d0aeb4-a92f-4d20-9541-538bd67994d3","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"dd157c7e-5d9a-44dd-9af7-f4e105218ce9","time":"2025-09-25T12:54:16Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"95cc59a9-020e-40bf-961e-eeecd10961dd","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"426517c9-c726-48ab-b2c6-449b06cd01e0","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"520017f2-4aa6-48d0-9ae3-4dbeba65c010","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"f9932874-de91-40d9-966f-fa30b5235766","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"84f97e4e-de1e-45d8-b1d5-d890704ee12d","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"b8616be1-c692-4984-8317-d2bbae1c326b","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"8f5b9ec6-a744-4947-a094-0fabb35a8190","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"d8283446-1232-414d-b6b5-f803d4af142a","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"9c49323b-10fc-4df5-9602-2494ebc78bb5","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"0fbe1dc3-f4bb-4a03-a863-0a9953e99b71","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"23ad4814-3f89-47b2-849c-c32b74c9e7cf","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.BytesReceived","ID":"ca89f6b6-da9d-43ef-8f30-07a233bb7108","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"58adfd6c-a46d-4b87-bf56-4cff9242f24e","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}
{"level":"debug","service":"postprocessing","Type":"events.StartPostprocessingStep","ID":"3b3314ad-64ba-4784-84bb-64a0ad02e901","time":"2025-09-25T12:54:17Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:173","message":"processing event received"}

the icap container (receives the files) works until suddenly no new files are coming from antivirus service:

25/Sep/2025:12:53:50 +0000, 10.244.1.254 10.244.1.200 REQMOD avscan?allow204=on&sizelimit=off&mode=simple 204
25/Sep/2025:12:53:50 +0000, 10.244.1.254 10.244.1.200 OPTIONS avscan?allow204=on&sizelimit=off&mode=simple 200
25/Sep/2025:12:53:50 +0000, 10.244.1.254 10.244.1.200 REQMOD avscan?allow204=on&sizelimit=off&mode=simple 204
25/Sep/2025:12:53:50 +0000, 10.244.1.254 10.244.1.200 OPTIONS avscan?allow204=on&sizelimit=off&mode=simple 200
25/Sep/2025:12:53:50 +0000, 10.244.1.254 10.244.1.200 REQMOD avscan?allow204=on&sizelimit=off&mode=simple 204
25/Sep/2025:12:53:51 +0000, 10.244.1.254 10.244.1.200 OPTIONS avscan?allow204=on&sizelimit=off&mode=simple 200

Expected behavior

All files should go through

Opencloud Image: 3.5.0

Activity

  1. suse-coder commented on Sep 24, 2025

    @suse-coder
    Author

    When I delete opencloud fully and only let clamav stay, and recreate opencloud, then everything works again (what speaks that the problem is on opencloud side and not on clamav). When I only recreate clamav, then it is still stuck.

  2. changed the title [-][Bug] Antivirus Service ICAP stuck in sending many files[/-] [+][Bug] Antivirus/Postprocessing Service ICAP stuck when sending many files[/+] on Sep 24, 2025
  3. changed the title [-][Bug] Antivirus/Postprocessing Service ICAP stuck when sending many files[/-] [+][Bug] Antivirus/Postprocessing Service with ICAP ClamAV stuck when sending many files[/+] on Sep 24, 2025
  4. micbar commented on Sep 26, 2025

    @micbar
    Member

    @fschade Does that have a smell for an issue with establishing a connection to clamav?

  5. micbar commented on Sep 26, 2025

    @micbar
    Member
  6. self-assigned this
    on Sep 26, 2025
  7. fschade commented on Sep 26, 2025

    @fschade
    Member

    thanks, ill try to reproduce that behavior!

  8. fschade commented on Sep 29, 2025

    @fschade
    Member

    @suse-coder can confirm its buggy, i will provide a fix

  9. moved this from Qualification to In Progress in OpenCloud Team Boardon Sep 29, 2025
  10. suse-coder commented on Oct 27, 2025

    @suse-coder
    Author

    @fschade Thanks for the fix, tested it today. But I would like to use https://truecharts.org/charts/stable/clamav/
    But from what I see: https://github.com/trueforge-org/truecharts/blob/master/charts/stable/clamav/values.yaml it has no icap.
    Do you know if this will work when I would just point the opencloud antivirus container to that service?

    service:
      main:
        ports:
          main:
            port: 3310
            protocol: http
            targetPort: 3310
    
  11. fschade commented on Oct 27, 2025

    @fschade
    Member

    If tcp is an option you can try to use the clamav Scanner Type (default) and configure the ANTIVIRUS_CLAMAV_SOCKET env with your address

    https://github.com/dutchcoders/go-clamd/blob/b970184f4d9e88ff402581ec3dd3b9d074cfb90c/clamd.go#L66

  12. suse-coder commented on Oct 28, 2025

    @suse-coder
    Author

    Thanks a lot, works now beautiful. But i used that chart instead as it is better:
    https://artifacthub.io/packages/helm/wiremind/clamav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions