Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/kafka] Invalid value for configuration message.max.bytes: Not a number of type INT #22552

Closed
Lucasor99 opened this issue Jan 22, 2024 · 10 comments
Assignees
Labels
kafka solved tech-issues The user has a technical issue about an application

Comments

@Lucasor99
Copy link

Lucasor99 commented Jan 22, 2024

Name and Version

bitnami/kafka:3.4

What architecture are you using?

None

What steps will reproduce the bug?

I am experiencing an issue with a Kafka container that was working fine before but has started failing to start after the image update to Bitnami Kafka 3.4. The container fails to start with the following error:

org.apache.kafka.common.config.ConfigException: Invalid value for configuration message.max.bytes: Not a number of type INT

Are you using any custom parameters or values?

apiVersion: apps/v1
kind: Deployment
metadata:
  name: kafka-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: kafka
  template:
    metadata:
      labels:
        app: kafka
    spec:
      containers:
        - name: kafka
          image: docker.io/bitnami/kafka:3.4
          env:
            - name: KAFKA_CFG_ZOOKEEPER_CONNECT
              value: "zookeeper-service:2181"
          ports:
            - containerPort: 9092
          volumeMounts:
            - name: kafka-data
              mountPath: /bitnami
      volumes:
        - name: kafka-data
          emptyDir: {}

What do you see instead?

kafka 16:40:33.25 INFO  ==> 
kafka 16:40:33.25 INFO  ==> Welcome to the Bitnami kafka container
kafka 16:40:33.25 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
kafka 16:40:33.25 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
kafka 16:40:33.26 INFO  ==> 
kafka 16:40:33.26 INFO  ==> ** Starting Kafka setup **
kafka 16:40:33.35 INFO  ==> ** Kafka setup finished! **

kafka 16:40:33.36 INFO  ==> ** Starting Kafka **
[2024-01-22 16:40:34,591] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log4jControllerRegistration$)
[2024-01-22 16:40:35,055] ERROR Exiting Kafka due to fatal exception (kafka.Kafka$)
org.apache.kafka.common.config.ConfigException: Invalid value  for configuration message.max.bytes: Not a number of type INT
        at org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:742)
        at org.apache.kafka.common.config.ConfigDef.parseValue(ConfigDef.java:490)
        at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:483)
        at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:112)
        at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:145)
        at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:1531)
        at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:1534)
        at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:1457)
        at kafka.Kafka$.buildServer(Kafka.scala:73)
        at kafka.Kafka$.main(Kafka.scala:93)
        at kafka.Kafka.main(Kafka.scala)
@Lucasor99 Lucasor99 added the tech-issues The user has a technical issue about an application label Jan 22, 2024
@github-actions github-actions bot added the triage Triage is needed label Jan 22, 2024
@Lucasor99 Lucasor99 changed the title Invalid value for configuration message.max.bytes: Not a number of type INT [bitnami/kafka] Invalid value for configuration message.max.bytes: Not a number of type INT Jan 22, 2024
@grinderz
Copy link

same error with bitnami/kafka:3.6.1
no error on 3.6.0

@kchamz
Copy link

kchamz commented Jan 22, 2024

same on 3.5.2 but not on 3.5.1

@lavistta01
Copy link

bitnami/kafka:3.4.1

Same Issue:

Exception in thread "main" org.apache.kafka.common.config.ConfigException: Invalid value for configuration message.max.bytes: Not a number of type INT
2024-01-23 14:59:31 at org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:742)
2024-01-23 14:59:31 at org.apache.kafka.common.config.ConfigDef.parseValue(ConfigDef.java:490)
2024-01-23 14:59:31 at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:483)
2024-01-23 14:59:31 at org.apache.kafka.common.config.AbstractConfig.(AbstractConfig.java:112)
2024-01-23 14:59:31 at org.apache.kafka.common.config.AbstractConfig.(AbstractConfig.java:145)
2024-01-23 14:59:31 at kafka.server.KafkaConfig.(KafkaConfig.scala:1531)
2024-01-23 14:59:31 at kafka.server.KafkaConfig.(KafkaConfig.scala:1533)
2024-01-23 14:59:31 at kafka.tools.StorageTool$.$anonfun$main$1(StorageTool.scala:41)
2024-01-23 14:59:31 at scala.Option.flatMap(Option.scala:271)
2024-01-23 14:59:31 at kafka.tools.StorageTool$.main(StorageTool.scala:41)
2024-01-23 14:59:31 at kafka.tools.StorageTool.main(StorageTool.scala)

@mynguyenlgg
Copy link

bitnami/kafka:3.5 has the same issue

@mwalser
Copy link

mwalser commented Jan 23, 2024

I would suspect that bitnami/containers#55255 might be the cause for that. At least it contains a reference to KAFKA_CFG_MESSAGE_MAX_BYTES which is the setting that is causing the failure.

@devenpatel2
Copy link

Seems like this param is no longer optional. a quick fix for this was to add

KAFKA_CFG_MESSAGE_MAX_BYTES=1048588

in the env vars

@fasilhayat
Copy link

I am having the same issue and devepatel2 suggestion helped

@github-actions github-actions bot removed the triage Triage is needed label Jan 24, 2024
@github-actions github-actions bot assigned fmulero and unassigned javsalgar Jan 24, 2024
@fmulero
Copy link
Collaborator

fmulero commented Jan 24, 2024

The problem was introduced on bitnami/containers#54458. We definitely need to improve our testing strategy.

@devenpatel2 workaround works perfectly setting the default value for message.max.bytes. A new version is ready to fix this issue, it will be released in a few hours. Sorry for the inconveniences

@OrtegaJose
Copy link

I'm using version 3.3.2 and had the same issue as well caused by the latest revision. @devenpatel2's suggestion worked perfectly

samizzy pushed a commit to zalando/nakadi that referenced this issue Jan 24, 2024
tacaswell added a commit to tacaswell/bluesky-pods that referenced this issue Jan 24, 2024
@fmulero
Copy link
Collaborator

fmulero commented Jan 25, 2024

Thanks also to @yves-tutti for this PR bitnami/containers#55276!

New versions with the fix has been released and they are ready for use:

  • 3.6.1-debian-11-r3
  • 3.5.2-debian-11-r3
  • 3.4.1-debian-11-r119
  • 3.3.2-debian-11-r245
  • 3.2.3-debian-11-r231

Tags affected by the issue:

  • 3.6.1-debian-11-r2
  • 3.5.2-debian-11-r2
  • 3.4.1-debian-11-r118
  • 3.3.2-debian-11-r244
  • 3.2.3-debian-11-r230

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kafka solved tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests