openimsdk / open-im-server

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

go service version 2.3.8 upgrade to version 3.4.0 #1399

Closed changdiyixiu closed 8 months ago

changdiyixiu commented 1 year ago

What happened?

An error occurs when executing the build-all-service script during the upgrade: Error in ./build-all-service.sh:65. 'make --no-print-directory -C "${OPENIM_ROOT}" -j$compile_count build' exited with status 2

微信图片_20231114101142

What did you expect to happen?

Service upgrade succeeded!!

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

The make component version is 3.8.2, golang version is 1.17, zookeeper, Kafka, MySQL, redis, mongo, etcd version is correct, open-im-server version is 2.3.0

Anything else we need to know?

No response

version

```console open-im-server2.3.0 # paste output here ```

Cloud provider

tuoyun

OS version

```console # On Linux: NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" # Make version GNU Make 3.82 Built for x86_64-redhat-linux-gnu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ```

Install tools

cubxxw commented 1 year ago

Could you please help me conduct a research on the minimum version of Make that supports parallel compilation using "make -j"? Additionally, it is crucial to ensure that the Go language version is above 1.19. Thank you so much for your assistance!

changdiyixiu commented 1 year ago

The make version is 4.2 and the go version is 1.21. When build-all-service.sh is executed, an error occurs in the above picture. How to solve this problem?

cubxxw commented 1 year ago

Could you please consider replacing the use of "build-all-service.sh" with "make build"? "build-all-service.sh" essentially executes the command "make build -j $(CPU_NUM)". Thank you for your attention to this matter.

changdiyixiu commented 12 months ago

Version 2.3 will have a compiled binary bin file, 3.4.0 using make build can not find the compiled binary bin file, can you tell me where the binary file is?

changdiyixiu commented 12 months ago

During data migration, the v3 folder under open-im-server cannot be found, and the path under tools is different from that in the document. What is the problem? 微信截图_20231115090712

kubbot commented 10 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot commented 8 months ago

This issue was closed because it has been stalled for 7 days with no activity.