openimsdk / open-im-server

IM Chat
https://openim.io
Apache License 2.0
13.39k stars 2.36k forks source link

[BUG] kafka issue #2276

Open zhaowangda opened 2 months ago

zhaowangda commented 2 months ago

OpenIM Server Version

release-v3.7

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

[2024-05-07 18:51:40,334] WARN [AdminClient clientId=adminclient-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

[root@localhost openim-docker]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ccf60f36cfa9 grafana/grafana:10.4.2 "/run.sh" 13 minutes ago Up 13 minutes 0.0.0.0:13000->3000/tcp, :::13000->3000/tcp grafana 97dd66c9ac91 prom/prometheus:v2.51.2 "/bin/prometheus --c…" 13 minutes ago Up 13 minutes 0.0.0.0:19090->9090/tcp, :::19090->9090/tcp prometheus e91c1609fd6f openim/openim-web-front:release-v3.5.1 "/docker-entrypoint.…" 13 minutes ago Up 13 minutes 0.0.0.0:11001->80/tcp, :::11001->80/tcp openim-web-front afcaf030e33c minio/minio:RELEASE.2024-01-11T07-46-16Z "/usr/bin/docker-ent…" 13 minutes ago Up 13 minutes 0.0.0.0:10005->9000/tcp, :::10005->9000/tcp, 0.0.0.0:10004->9090/tcp, :::10004->9090/tcp minio 4e1fa7a4e72e mongo:6.0.2 "docker-entrypoint.s…" 13 minutes ago Up 13 minutes 27017/tcp mongo 6564c921c970 openim/openim-admin-front:release-v1.7 "/docker-entrypoint.…" 13 minutes ago Up 13 minutes 0.0.0.0:11002->80/tcp, :::11002->80/tcp openim-admin-front f124b0fcc450 openim/openim-chat:release-v1.7 "sh -c 'mage start &…" 13 minutes ago Up 13 minutes (unhealthy) 0.0.0.0:10008-10009->10008-10009/tcp, :::10008-10009->10008-10009/tcp openim-chat c6b206f33f56 prom/node-exporter:v1.7.0 "/bin/node_exporter" 13 minutes ago Up 13 minutes 0.0.0.0:19100->9100/tcp, :::19100->9100/tcp node-exporter 2ed9afb96329 bitnami/kafka:3.5.1 "/opt/bitnami/script…" 13 minutes ago Up 13 minutes 9092/tcp kafka a76f76c80b34 bitnami/zookeeper:3.8 "/opt/bitnami/script…" 13 minutes ago Up 13 minutes 2181/tcp, 2888/tcp, 3888/tcp, 8080/tcp zookeeper c5fbc2657afa prom/alertmanager:v0.27.0 "/bin/alertmanager -…" 13 minutes ago Up 13 minutes 0.0.0.0:19093->9093/tcp, :::19093->9093/tcp alertmanager 79624757e02d openim/openim-server:release-v3.7 "sh -c 'mage start &…" 13 minutes ago Up 13 minutes (unhealthy) 0.0.0.0:10001-10002->10001-10002/tcp, :::10001-10002->10001-10002/tcp openim-server 84364aebb252 redis:7.0.0 "docker-entrypoint.s…" 13 minutes ago Up 13 minutes 6379/tcp

Screenshots Link

[2024-05-07 18:51:40,334] WARN [AdminClient clientId=adminclient-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

kubbot commented 2 months ago

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

zhaowangda commented 2 months ago
  I am not allowed to register slack account. can you sent me an available version with docker deployment method ?
zhaowangda

@. | ---- Replied Message ---- | From | OpenIM @.> | | Date | 5/7/2024 10:54 | | To | @.> | | Cc | @.>, @.***> | | Subject | Re: [openimsdk/open-im-server] [BUG] kafka issue (Issue #2276) |

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

skiffer-git commented 2 months ago

Run 'docker ps', then take a screenshot to check.

skiffer-git commented 2 months ago

https://docs.openim.io/guides/gettingstarted/dockercompose

zhaowangda commented 2 months ago
zhaowangda

@. | ---- Replied Message ---- | From | @.> | | Date | 5/7/2024 11:29 | | To | @.> | | Cc | @.>, @.***> | | Subject | Re: [openimsdk/open-im-server] [BUG] kafka issue (Issue #2276) |

https://docs.openim.io/guides/gettingstarted/dockercompose

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

zhaowangda commented 2 months ago

i have followed the link you sent. also set the ip docs mentioned to local server ip172.16.1.7. it seems kafka doesnot work.

@.*** openim-docker]# echo $OPENIM_IP 172.16.1.7

MINIO_EXTERNAL_ADDRESS="http://172.16.1.7:10005" # External address for MinIO needs to be manually modified API_URL="http://172.16.1.7:10002" # API URL for OpenIM server GRAFANA_URL="http://172.16.1.7:13000/" # Define the URL for accessing the Grafana dashboard, specifying the external IP and port

zhaowangda

@. | ---- Replied Message ---- | From | @.> | | Date | 5/7/2024 11:35 | | To | @.> | | Cc | @.>, @.***> | | Subject | Re: [openimsdk/open-im-server] [BUG] kafka issue (Issue #2276) |

zhaowangda

@. | ---- Replied Message ---- | From | @.> | | Date | 5/7/2024 11:29 | | To | @.> | | Cc | @.>, @.***> | | Subject | Re: [openimsdk/open-im-server] [BUG] kafka issue (Issue #2276) |

https://docs.openim.io/guides/gettingstarted/dockercompose

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

skiffer-git commented 2 months ago

Run 'docker ps', then take a screenshot to check.

zhaowangda commented 1 month ago

image image

kubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


image image

skiffer-git commented 4 weeks ago

What configurations have been modified?

skiffer-git commented 4 weeks ago

Additionally, check if there is enough memory.