-
Notifications
You must be signed in to change notification settings - Fork 878
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
SASL Authentication issue #1718
Comments
By secured and non secured, you mean authentication (SASL) or secured communication (SSL)? What do you mean by intermittent? Does it work properly for some time and then disconnects randomly? In general, this error happens when the broker listener is configured for SASL authentication but the client is not. Can you please verify this again once? |
|
Can you please enable debug logging and provide the generated logs? |
Hi guys I'm having same problem to connect to aws msk sasl_cram, Producer config I tried with version 2.0.2, 2,2.0 and 2.3.0
I just remove the server identification form url logs
|
Description
We have configured strimzi kafka with 9092 as non secured port and with 9093 as secured port. While trying to produce the messages by connecting to 9092 (non secured port) "SASL Authentication error" is thrown intermittently. This error should be thrown while connecting to secure port (9093) when there is an authentication issue.
Error details -
Unhandled exception in thread started by <bound method Thread._bootstrap of <Thread(Thread-38, started daemon 139807049099008)>>
Traceback (most recent call last):
File "/kafka-wrapper/producer_oauth.py", line 87, in produce_to_topic
producer.poll(0.1)
File "/kafka-wrapper/producer_oauth.py", line 25, in error_callback
raise(err)
cimpl.KafkaError: KafkaError{code=_TRANSPORT,val=-195,str="kafka-bootstraphost-0.kafka-bootstraphost-brokers.namespace.svc:9092/0: Disconnected: verify that security.protocol is correctly configured, broker might require SASL authentication (after 1ms in state UP)"} During handling of the above exception, another exception occurred:
How to reproduce
NA
Checklist
Please provide the following information:
confluent_kafka.version()
andconfluent_kafka.libversion()
): 2.3.0{...}
-config = {
| 'bootstrap.servers': self.broker,
| 'linger.ms': 60,
| 'queue.buffering.max.messages': 5000000,
| 'compression.type': 'lz4',
| 'batch.num.messages': 50000,
| 'batch.size': 200000,
| 'logger': logger,
| 'acks': 0 ,
| 'error_cb': self.error_callback,
| }
Operating system: SUSE linux
Provide client logs (with
'debug': '..'
as necessary) -Unhandled exception in thread started by <bound method Thread._bootstrap of <Thread(Thread-38, started daemon 139807049099008)>>
Traceback (most recent call last):
File "/kafka-wrapper/producer_oauth.py", line 87, in produce_to_topic
producer.poll(0.1)
File "/kafka-wrapper/producer_oauth.py", line 25, in error_callback
raise(err)
cimpl.KafkaError: KafkaError{code=_TRANSPORT,val=-195,str="kafka-bootstraphost-0.kafka-bootstraphost-brokers.namespace.svc:9092/0: Disconnected: verify that security.protocol is correctly configured, broker might require SASL authentication (after 1ms in state UP)"} During handling of the above exception, another exception occurred:
Provide broker log excerpts - Not Available
Critical issue - Not Available
The text was updated successfully, but these errors were encountered: