Skip to content
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

Bug: openim docker start #56

Closed
lushou opened this issue Dec 18, 2023 · 7 comments
Closed

Bug: openim docker start #56

lushou opened this issue Dec 18, 2023 · 7 comments

Comments

@lushou
Copy link

lushou commented Dec 18, 2023

What happened?

image

dps_paas_openim-server的日志

Use Docker to start all openim service

Begin to start all openim service scripts

All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
You need to start the following scripts in order: openim-api.sh openim-rpc.sh openim-push.sh openim-msgtransfer.sh openim-msggateway.sh openim-crontask.sh openim-tools.sh

Pre Starting OpenIM services

Preparing to start OpenIM Tools...
Starting ncpu...
Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
Specifying config: /openim/openim-server/config
Starting ncpu...
40Starting component...
Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
Specifying config: /openim/openim-server/config
Starting component...
Checking components Round 1...
Mysql starts successfully
Mongo starts successfully
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]

goroutine 1 [running]:
main.exactIP({0xc0001fc7d0?, 0x3b9aca00?})
/openim/openim-server/tools/component/component.go:124 +0x2a
main.checkMinio()
/openim/openim-server/tools/component/component.go:225 +0x2db
main.main()
/openim/openim-server/tools/component/component.go:103 +0x4ce
!!! [1218 09:14:51] Call tree:
!!! [1218 09:14:51] 1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
!!! [1218 09:14:51] 2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
!!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106
Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
Call stack:
1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
Exiting with status 1
!!! Error in /openim/openim-server/scripts/start-all.sh:75
Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
Call stack:
1: /openim/openim-server/scripts/start-all.sh:75 main(...)
Exiting with status 1
!!! Error in /openim/openim-server/scripts/docker-start-all.sh:31
Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
Call stack:
1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
Exiting with status 1

Use Docker to start all openim service

Begin to start all openim service scripts

All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
You need to start the following scripts in order: openim-api.sh openim-rpc.sh openim-push.sh openim-msgtransfer.sh openim-msggateway.sh openim-crontask.sh openim-tools.sh

Pre Starting OpenIM services

Preparing to start OpenIM Tools...
Starting ncpu...
Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
Specifying config: /openim/openim-server/config
Starting ncpu...
40Starting component...
Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
Specifying config: /openim/openim-server/config
Starting component...
Checking components Round 1...
Mysql starts successfully
Mongo starts successfully
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]

goroutine 1 [running]:
main.exactIP({0xc0001fc7d0?, 0x3b9aca00?})
/openim/openim-server/tools/component/component.go:124 +0x2a
main.checkMinio()
/openim/openim-server/tools/component/component.go:225 +0x2db
main.main()
/openim/openim-server/tools/component/component.go:103 +0x4ce
!!! [1218 09:15:53] Call tree:
!!! [1218 09:15:53] 1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
!!! [1218 09:15:53] 2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
!!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106
Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
Call stack:
1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
Exiting with status 1
!!! Error in /openim/openim-server/scripts/start-all.sh:75
Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
Call stack:
1: /openim/openim-server/scripts/start-all.sh:75 main(...)
Exiting with status 1
!!! Error in /openim/openim-server/scripts/docker-start-all.sh:31
Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
Call stack:
1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
Exiting with status 1
-bash: history: write error: Success

dps_paas_openim-chat的日志:
openImChatApiPort service does not start normally, not initiated port is 10008
please check /openim/openim-chat/scripts/../logs/openIM.log
================> Architecture: x86_64
================> BIN_DIR: /openim/openim-chat/scripts/..//openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64
openImChatApiPort service does not start normally, not initiated port is 10008
please check /openim/openim-chat/scripts/../logs/openIM.log
================> Architecture: x86_64
================> BIN_DIR: /openim/openim-chat/scripts/..//openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64
openImChatApiPort service does not start normally, not initiated port is 10008
please check /openim/openim-chat/scripts/../logs/openIM.log

What did you expect to happen?

如何处理呢

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

1

Anything else we need to know?

No response

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

@kubbot
Copy link
Contributor

kubbot commented Dec 18, 2023

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.

@cubxxw cubxxw changed the title Bug: 启动出现问题 Bug: openim docker start Dec 18, 2023
@cubxxw
Copy link
Contributor

cubxxw commented Dec 18, 2023

這個報錯提醒你是配置文件沒有配置成功
panic: runtime error: invalid memory address or nil pointer dereference

所以你需要去 openim-server/release-v3.4/config/ 改一下配置

@cubxxw
Copy link
Contributor

cubxxw commented Dec 18, 2023

object 中的 API_URL 配置,可以閱讀文檔https://github.com/openimsdk/open-im-server/blob/main/docs/contrib/environment.md

@kubbot
Copy link
Contributor

kubbot commented Dec 18, 2023

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


API_URL configuration in object, you can read the document https://github.com/openimsdk/open-im-server/blob/main/docs/contrib/environment.md

@kubbot
Copy link
Contributor

kubbot commented Feb 16, 2024

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.

1 similar comment
@kubbot
Copy link
Contributor

kubbot commented Apr 16, 2024

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
Copy link
Contributor

kubbot commented Apr 23, 2024

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

@kubbot kubbot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants