Skip to content

[ISSUE] Zeebe exporters dir mounted as read-only  #1220

@rohits123

Description

@rohits123

Describe the issue:

I am adding custom kafka exporter the "Adding dynamic exporters to Zeebe Broker" - way, using Helm charts (version 8.3.3) into Kubernetes.
Zeebe config in values file

zeebe:
  pvcAccessModes:
  - ReadWriteMany
  pvcStorageClassName: "efs-sc"
  env:
  - name: ZEEBE_BROKER_EXPORTERS_KAFKAEXPORTER_CLASSNAME
    value: au.th.zeebe.boundary.CamundaExporter
  - name: ZEEBE_BROKER_EXPORTERS_KAFKAEXPORTER_JARPATH
    value: /exporters/zeebe-kafka-exporter.jar
  initContainers:
  - name: init-exporters-kafka
    image: amazon/aws-cli:2.15.8
    securityContext:
      runAsNonRoot: true
      runAsUser: 1000
    command: ["sh", "-c", "aws s3 cp s3://my-bucket/polaris-zeebe-exporter-1.0.0.jar /exporters/zeebe-kafka-exporter.jar && ls -al /exporters"]
    volumeMounts:
    - name: exporters
      mountPath: /exporters/
    env:
    - name: AWS_ACCESS_KEY_ID
      valueFrom:
        secretKeyRef:
          name: my-secret
          key: access-key-id
    - name: AWS_SECRET_ACCESS_KEY
      valueFrom:
        secretKeyRef:
          name: my-secret
          key: secret-access-key   

Actual behavior:

mkdir: cannot create directory ‘/usr/local/zeebe/exporters/’: Read-only file system     

Expected behavior:

The custom kafka exporter integration should work

How to reproduce:

Logs:

zeebe pod logs:

│ + export ZEEBE_BROKER_CLUSTER_NODEID=2                                                                                                                                                              │
│ + ZEEBE_BROKER_CLUSTER_NODEID=2                                                                                                                                                                     │
│ ++ ls -A /exporters/                                                                                                                                                                                │
│ + '[' zeebe-kafka-exporter.jar ']'                                                                                                                                                                  │
│ + mkdir -p /usr/local/zeebe/exporters/                                                                                                                                                              │
│ mkdir: cannot create directory ‘/usr/local/zeebe/exporters/’: Read-only file system                                                                                                                 │
│ Stream closed EOF for bpm/camunda-platform-dev-zeebe-2 (zeebe)    

initcontainer logs:

│ Completed 6.2 MiB/14.0 MiB (18.3 MiB/s) with 1 file(s) remaining Completed 6.5 MiB/14.0 MiB (19.0 MiB/s) with 1 file(s) remaining Completed 6.8 MiB/14.0 MiB (18.1 MiB/s) with 1 file(s) remaining  │
│ Completed 7.0 MiB/14.0 MiB (18.7 MiB/s) with 1 file(s) remaining Completed 7.2 MiB/14.0 MiB (19.3 MiB/s) with 1 file(s) remaining Completed 7.5 MiB/14.0 MiB (20.0 MiB/s) with 1 file(s) remaining  │
│ Completed 7.8 MiB/14.0 MiB (20.6 MiB/s) with 1 file(s) remaining Completed 8.0 MiB/14.0 MiB (21.2 MiB/s) with 1 file(s) remaining Completed 8.2 MiB/14.0 MiB (21.8 MiB/s) with 1 file(s) remaining  │
│ Completed 8.5 MiB/14.0 MiB (22.4 MiB/s) with 1 file(s) remaining Completed 8.8 MiB/14.0 MiB (23.0 MiB/s) with 1 file(s) remaining Completed 9.0 MiB/14.0 MiB (23.5 MiB/s) with 1 file(s) remaining  │
│ Completed 9.2 MiB/14.0 MiB (24.1 MiB/s) with 1 file(s) remaining Completed 9.5 MiB/14.0 MiB (24.7 MiB/s) with 1 file(s) remaining Completed 9.8 MiB/14.0 MiB (25.2 MiB/s) with 1 file(s) remaining  │
│ Completed 10.0 MiB/14.0 MiB (22.6 MiB/s) with 1 file(s) remainingCompleted 10.2 MiB/14.0 MiB (23.1 MiB/s) with 1 file(s) remainingCompleted 10.5 MiB/14.0 MiB (23.6 MiB/s) with 1 file(s) remaining │
│ Completed 10.8 MiB/14.0 MiB (24.1 MiB/s) with 1 file(s) remainingCompleted 11.0 MiB/14.0 MiB (24.6 MiB/s) with 1 file(s) remainingCompleted 11.2 MiB/14.0 MiB (25.2 MiB/s) with 1 file(s) remaining │
│ Completed 11.5 MiB/14.0 MiB (25.7 MiB/s) with 1 file(s) remainingCompleted 11.8 MiB/14.0 MiB (26.2 MiB/s) with 1 file(s) remainingCompleted 12.0 MiB/14.0 MiB (26.7 MiB/s) with 1 file(s) remaining │
│ Completed 12.2 MiB/14.0 MiB (22.5 MiB/s) with 1 file(s) remainingCompleted 12.5 MiB/14.0 MiB (22.9 MiB/s) with 1 file(s) remainingCompleted 12.8 MiB/14.0 MiB (23.4 MiB/s) with 1 file(s) remaining │
│ Completed 13.0 MiB/14.0 MiB (23.8 MiB/s) with 1 file(s) remainingCompleted 13.2 MiB/14.0 MiB (24.2 MiB/s) with 1 file(s) remainingCompleted 13.5 MiB/14.0 MiB (24.7 MiB/s) with 1 file(s) remaining │
│ Completed 13.8 MiB/14.0 MiB (25.1 MiB/s) with 1 file(s) remainingCompleted 14.0 MiB/14.0 MiB (25.5 MiB/s) with 1 file(s) remainingCompleted 14.0 MiB/14.0 MiB (25.6 MiB/s) with 1 file(s) remaining │
│ download: s3://my-bucket/polaris-zeebe-exporter-1.0.0.jar to ../exporters/zeebe-kafka-exporter.jar                                                              │
│ total 14384                                                                                                                                                                                         │
│ drwxrwsrwx 2 root 1000       38 Jan 10 23:35 .                                                                                                                                                      │
│ drwxr-xr-x 1 root root       45 Jan 10 23:35 ..                                                                                                                                                     │
│ -rw-r--r-- 1 1000 1000 14726752 Jan 10 00:59 zeebe-kafka-exporter.jar                                                                                                                               │
│ Stream closed EOF for bpm/camunda-platform-dev-zeebe-2 (init-exporters-kafka)  

Environment:

Please note: Without the following info, it's hard to resolve the issue and probably it will be closed.

  • Platform: AWS, EKS
  • Helm CLI version: 3.12.3
  • Chart version: 8.3.3
  • Values file:

Metadata

Metadata

Assignees

Labels

kind/issueUnidentified issue, it could be a bug, misconfig, or anything in betweenplatform/awsIssues related to AWSpossibly-outdatedFor github issues over a year oldsize/xs1-2 days

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions