openimsdk / openim-docker

openim-docker configuration for deploying OpenIM. Provides a build solution for a stable distribution, as well as a docker compose deployment strategy
https://openim.io
Apache License 2.0
31 stars 39 forks source link

Fail to deploy with docker on Kylin Linux Arm64. #127

Closed walkerontherway closed 2 months ago

walkerontherway commented 3 months ago

What happened?

✔ Container grafana Running 0.0s ✔ Container zookeeper Running 0.0s ✔ Container kafka Running 0.0s ✔ Container minio Running 0.0s ✔ Container node-exporter Running 0.0s ✔ Container redis Running 0.0s ✘ Container openim-server Error 0.0s ✔ Container mongo Started 0.0s ✔ Container openim-web Started 0.0s ✔ Container openim-admin Started 0.0s dependency failed to start: container openim-server is unhealthy

Logs: MONGO:

WARNING: MongoDB 5.0+ requires ARMv8.2-A or higher, and your current system does not appear to implement any of the common features for that! see https://jira.mongodb.org/browse/SERVER-55178 see also https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features see also https://github.com/docker-library/mongo/issues/485#issuecomment-970864306

OpenIM-admin &web:

exec /docker-entrypoint.sh: exec format error

OpenIM-server:

Begin to check all openim service [2024-03-26 21:24:51 CST] Check all dependent service ports +-------------------------+----------+ | Service Name | Port | +-------------------------+----------+ | openim-user | 10110 | | openim-friend | 10120 | | openim-msg | 10130 | | openim-msg-gateway | 10140 | | openim-group | 10150 | | openim-auth | 10160 | | openim-push | 10170 | | openim-conversation | 10180 | | openim-third | 10190 | | openim-api | 10002 | | openim-ws | 10001 | +-------------------------+----------+ +-------------------------+----------+ | Service Name | Port | +-------------------------+----------+ | redis | 16379 | | zookeeper | 12181 | | kafka | 19092 | | mongodb | 37017 | | minio | 10005 | +-------------------------+----------+ ++ The port being checked: 10110 10120 10130 10140 10150 10160 10170 10180 10190 10002 10001 ## Check all dependent service ports ++ The port being checked: 16379 12181 19092 37017 10005 2024-03-26 21:24:51 Environment in the interior of the container [success 0326 21:24:51]==> All components depended on by openim are running normally! ## Check openim service name: /openim/openim-server/_output/bin/platforms/linux/arm64/openim-msgtransfer !!! [2024-03-26 21:24:51 CST] Expected 4 openim msgtransfer processes, but found 0 msgtransfer processes. +++ cat openim log file >>> /openim/openim-server/_output/logs/openim-20240326.log !!! [2024-03-26 21:24:51 CST] check process failed. Check openim service name: /openim/openim-server/_output/bin/platforms/linux/arm64/openim-api /openim/openim-server/_output/bin/platforms/linux/arm64/openim-crontask /openim/openim-server/_output/bin/platforms/linux/arm64/openim-msggateway /openim/openim-server/_output/bin/platforms/linux/arm64/openim-push /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-auth /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-conversation /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-friend /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-group /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-msg /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-third /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-user cat: /openim/openim-server/_output/logs/openim-tmp-20240326.log: No such file or directory +++ cat openim log file >>> /openim/openim-server/_output/logs/openim-20240326.log !!! [2024-03-26 21:24:51 CST] check process failed. Not started processes: Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-api is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-crontask is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-msggateway is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-push is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-auth is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-conversation is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-friend is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-group is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-msg is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-third is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-user is not started. 2024-03-26 21:24:51 OpenIM Stdout Log >> cat /openim/openim-server/_output/logs/openim-20240326.log 2024-03-26 21:24:51 OpenIM Stderr Log >> cat /openim/openim-server/_output/logs/openim-error-20240326.log

What did you expect to happen?

Program runs normally.

How can we reproduce it (as minimally and precisely as possible)?

Deploying openim-docker with Kylin Linux ARM64

Anything else we need to know?

No response

version

REPOSITORY TAG IMAGE ID CREATED SIZE ghcr.io/openimsdk/openim-server release-v3.6 bb9b2990b1e2 6 days ago 556MB ghcr.io/openimsdk/openim-chat release-v1.6 949205f28bbb 2 weeks ago 269MB bitnami/zookeeper 3.8 0a2e3002e375 2 weeks ago 583MB bitnami/node-exporter 1.7.0 aef001777872 2 weeks ago 175MB ghcr.io/openimsdk/openim-web v3.5.0-docker 5832eaadfde7 2 months ago 222MB minio/minio RELEASE.2024-01-11T07-46-16Z 4c9840e16078 2 months ago 147MB ghcr.io/openimsdk/openim-admin toc-base-open-docker.35 3c146d363beb 2 months ago 190MB prom/prometheus v2.48.1 929804fcacca 3 months ago 242MB bitnami/kafka 3.5.1 4fffda4a8101 3 months ago 517MB grafana/grafana 10.2.2 5dbcee64875c 4 months ago 392MB prom/alertmanager v0.26.0 654a649b6b2f 7 months ago 64.5MB mongo 6.0.2 1a5c8f74cf95 17 months ago 667MB redis 7.0.0 07dcd1b2e705 22 months ago 111MB

Cloud provider

OS version

```console Kylin Linux v10 SP1 ARM64 CPU:Phytium D2000/8 E8C MEM:16GB ```

Install tools

kubbot commented 3 months ago

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


What happened?

✔ Container grafana Running 0.0s ✔ Container zookeeper Running 0.0s ✔ Container kafka Running 0.0s ✔ Container minio Running 0.0s ✔ Container node-exporter Running 0.0s ✔ Container redis Running 0.0s ✘ Container openim-server Error 0.0s ✔ Container mongo Started 0.0s ✔ Container openim-web Started 0.0s ✔ Container openim-admin Started 0.0s dependency failed to start: container openim-server is unhealthy

Logs: MONGO:

WARNING: MongoDB 5.0+ requires ARMv8.2-A or higher, and your current system does not appear to implement any of the common features for that! see https://jira.mongodb.org/browse/SERVER-55178 see also https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features see also https://github.com/docker-library/mongo/issues/485#issuecomment-970864306

OpenIM-admin &web:

exec /docker-entrypoint.sh: exec format error

OpenIM-server:

Begin to check all openim service [2024-03-26 21:24:51 CST] Check all dependent service ports +-------------------------+----------+ | Service Name | Port | +-------------------------+----------+ | openim-user | 10110 | | openim-friend | 10120 | | openim-msg | 10130 | | openim-msg-gateway | 10140 | | openim-group | 10150 | | openim-auth | 10160 | | openim-push | 10170 | | openim-conversation | 10180 | | openim-third | 10190 | | openim-api | 10002 | | openim-ws | 10001 | +-------------------------+----------+ +-------------------------+----------+ | Service Name | Port | +-------------------------+----------+ | redis | 16379 | | zookeeper | 12181 | | kafka | 19092 | | mongodb | 37017 | | minio | 10005 | +-------------------------+----------+ ++ The port being checked: 10110 10120 10130 10140 10150 10160 10170 10180 10190 10002 10001 ## Check all dependent service ports ++ The port being checked: 16379 12181 19092 37017 10005 2024-03-26 21:24:51 Environment in the interior of the container [success 0326 21:24:51]==> All components depended on by openim are running normally! ## Check openim service name: /openim/openim-server/_output/bin/platforms/linux/arm64/openim-msgtransfer !!! [2024-03-26 21:24:51 CST] Expected 4 openim msgtransfer processes, but found 0 msgtransfer processes. +++ cat openim log file >>> /openim/openim-server/_output/logs/openim-20240326.log !!! [2024-03-26 21:24:51 CST] check process failed. Check openim service name: /openim/openim-server/_output/bin/platforms/linux/arm64/openim-api /openim/openim-server/_output/bin/platforms/linux/arm64/openim-crontask /openim/openim-server/_output/bin/platforms/linux/arm64/openim-msggateway /openim/openim-server/_output/bin/platforms/linux/arm64/openim-push /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-auth /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-conversation /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-friend /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-group /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-msg /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-third /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-user cat: /openim/openim-server/_output/logs/openim-tmp-20240326.log: No such file or directory +++ cat openim log file >>> /openim/openim-server/_output/logs/openim-20240326.log !!! [2024-03-26 21:24:51 CST] check process failed. Not started processes: Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-api is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-crontask is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-msggateway is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-push is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-auth is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-conversation is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-friend is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-group is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-msg is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-third is not started. Process /openim/openim-server/_output/bin/platforms/linux/arm64/openim-rpc-user is not started. 2024-03-26 21:24:51 OpenIM Stdout Log >> cat /openim/openim-server/_output/logs/openim-20240326.log 2024-03-26 21:24:51 OpenIM Stderr Log >> cat /openim/openim-server/_output/logs/openim-error-20240326.log

What did you expect to happen?

Program runs normally.

How can we reproduce it (as minimally and precisely as possible)?

Deploying openim-docker with Kylin Linux ARM64

Anything else we need to know?

No response

version

REPOSITORY TAG IMAGE ID CREATED SIZE ghcr.io/openimsdk/openim-server release-v3.6 bb9b2990b1e2 6 days ago 556MB ghcr.io/openimsdk/openim-chat release-v1.6 949205f28bbb 2 weeks ago 269MB bitnami/zookeeper 3.8 0a2e3002e375 2 weeks ago 583MB bitnami/node-exporter 1.7.0 aef001777872 2 weeks ago 175MB ghcr.io/openimsdk/openim-web v3.5.0-docker 5832eaadfde7 2 months ago 222MB minio/minio RELEASE.2024-01-11T07-46-16Z 4c9840e16078 2 months ago 147MB ghcr.io/openimsdk/openim-admin toc-base-open-docker.35 3c146d363beb 2 months ago 190MB prom/prometheus v2.48.1 929804fcacca 3 months ago 242MB bitnami/kafka 3.5.1 4fffda4a8101 3 months ago 517MB grafana/grafana 10.2.2 5dbcee64875c 4 months ago 392MB prom/alertmanager v0.26.0 654a649b6b2f 7 months ago 64.5MB mongo 6.0.2 1a5c8f74cf95 17 months ago 667MB redis 7.0.0 07dcd1b2e705 22 months ago 111MB

Cloud provider

OS version

```console Kylin Linux v10 SP1 ARM64 CPU:Phytium D2000/8 E8C MEM:16GB ```

Install tools

kubbot commented 3 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.

skiffer-git commented 2 months ago

The Docker deployment plan has been fully upgraded. Please refer to the README for the new scheme. The new scheme is simpler to use and supports Linux, Windows, and Mac.

skiffer-git commented 2 months ago

fixed