tchiotludo / akhq

Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
https://akhq.io/
Apache License 2.0
3.34k stars 646 forks source link

Can't update consumer group offset #420

Closed MCPDanilovich closed 3 years ago

MCPDanilovich commented 3 years ago

image

Topic name: --, in my cas: testservice-usa-dev

tchiotludo commented 3 years ago

Can you send me screenshot of the update consumer groups page before you hit the button please ? I really don't understand here (since it work on for me)

MCPDanilovich commented 3 years ago

image

When i change offset for partition:

image

Now i use docker image with dev tag from your docker registry.

tchiotludo commented 3 years ago

I see leonbets on the error but not on the screenshot. still strange, can you give the output off chrome devtools during the request. to see what the the client try yo send to the server ?

MCPDanilovich commented 3 years ago

Request URL: https://kafkahq.common.dev.leoncorp.net/api/kafka-gce-dev/group/betTickerBetOperationConsumer-v1-083ccb69-614f-4e86-93d2-c5f2b916995e/offsets Request Method: POST Status Code: 500 Remote Address: 35.198.189.242:443 Referrer Policy: strict-origin-when-cross-origin

MCPDanilovich commented 3 years ago

:authority: kafkahq.common.dev.domain.net :method: POST :path: /api/kafka-gce-dev/group/betTickerBetOperationConsumer-v1-083ccb69-614f-4e86-93d2-c5f2b916995e/offsets :scheme: https accept: application/json, text/plain, / accept-encoding: gzip, deflate, br accept-language: en-US,en;q=0.9,ru;q=0.8 cache-control: no-cache content-length: 1028 content-type: application/json;charset=UTF-8 cookie: SESSION=NjAxMGFkOGYtYjgwNS00MDE5LWIxNGEtYzEzNTU0ZDg2YmU3 origin: https://kafkahq.common.dev.leoncorp.net pragma: no-cache referer: https://kafkahq.common.dev.domain.net/ui/kafka-gce-dev/group/betTickerBetOperationConsumer-v1-083ccb69-614f-4e86-93d2-c5f2b916995e/offsets sec-fetch-dest: empty sec-fetch-mode: cors sec-fetch-site: same-origin user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36

MCPDanilovich commented 3 years ago

image

tchiotludo commented 3 years ago

perfect, just missing the body please of the request ! (last screen on the bottom)

MCPDanilovich commented 3 years ago

image

tchiotludo commented 3 years ago

ok that the error :) a partition with a string can't work ... but how do you have this string on partition ... :thinking: have you any screen where I can find this string on the ui ?

MCPDanilovich commented 3 years ago

image This is different group but result is the same. image

MCPDanilovich commented 3 years ago

image

tchiotludo commented 3 years ago

ok found it :) can you try with last dev version please ?

MCPDanilovich commented 3 years ago

image Something wrong. I got loop on auth stage. image

tchiotludo commented 3 years ago

Really strange I didn't change anything about login. Can you show me the auths path response ?

MCPDanilovich commented 3 years ago

image

tchiotludo commented 3 years ago

The tab with response please 😆

MCPDanilovich commented 3 years ago

Sorry. image

tchiotludo commented 3 years ago

Really strange, this endpoint return that there is no login, you are redirected to login every time ? Can you share your configuration files please ?

MCPDanilovich commented 3 years ago

`akhq: server: base-path: "" access-log: enabled: true name: org.akhq.log.access format: "[Date: {}] [Duration: {} ms] [Url: {} {} {}] [Status: {}] [Ip: {}] [Length: {}] [Port: {}]"

clients-defaults: consumer: properties: isolation.level: read_committed connections: kafka-gce-feed-exporter: properties: bootstrap.servers: "<>" security.protocol: SASL_PLAINTEXT sasl.mechanism: PLAIN sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username="<>" password="<>"; kafka-gce-dev: properties: bootstrap.servers: "<>:9092" bs-kafka-dev: properties: bootstrap.servers: "<>:9092" security.protocol: SASL_SSL sasl.mechanism: PLAIN sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username="<>" password="<>"; ssl.truststore.location: /app/kafka.truststore.jks ssl.truststore.password: <> ssl.endpoint.identification.algorithm : ""

security: default-group:

tchiotludo commented 3 years ago

ok no security enabled so (no login) ! The endpoint is right !

Can you respond to this :

this endpoint return that there is no login, you are redirected to login every time ?

MCPDanilovich commented 3 years ago

micronaut: security: ldap: default: enabled: true context: server: 'ldap://<>:389' managerDn: 'uid=service-kafka-hq,cn=users,cn=accounts,dc=domain,dc=net' managerPassword: '<>' search: base: "cn=users,cn=accounts,dc=domain,dc=net" groups: subtree: true enabled: true base: "cn=groups,cn=accounts,dc=domain,dc=net" filter: "member={0}"

tchiotludo commented 3 years ago

ok !! the format of the configuration files have changed on dev version ! (especially for group & security). Please look at this changed here : https://github.com/tchiotludo/akhq/commit/5ab788da22529ede3c7b640f1918304511cea6f0