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
46 stars 56 forks source link

[Other]: 通过docker部署后检测到openim-chat容器不健康 #43

Closed jamky closed 11 months ago

jamky commented 1 year ago

What would you like to share?

openim-chat error 通过官方docker命令安装后看到openim-chat不健康。

lsof -i :10008 查看端口如下:

COMMAND      PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
docker-pr 303378 root    4u  IPv4 2629414      0t0  TCP *:octopus (LISTEN)
docker-pr 303388 root    4u  IPv6 2631796      0t0  TCP *:octopus (LISTEN)

通过 docker compose logs openim-chat 查看log,如下:

openim-chat  | ================> Architecture: x86_64
openim-chat  | ================> BIN_DIR: /openim/openim-chat/scripts/..//openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64
openim-chat  | =======>SCRIPTS_ROOT=/openim/openim-chat/scripts
openim-chat  | =======>OPENIM_ROOT=/openim/openim-chat/scripts/..
openim-chat  | =======>pwd=/openim/openim-chat/scripts
openim-chat  | =======>bin_dir=/openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64
openim-chat  | =======>logs_dir=/openim/openim-chat/scripts/../logs
openim-chat  | =======>sdk_db_dir=
openim-chat  | /openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64/chat-api -port 10008 --config_folder_path /openim/openim-chat/scripts/../config/config.yaml
openim-chat  | /openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64/admin-api -port 10009 --config_folder_path /openim/openim-chat/scripts/../config/config.yaml
openim-chat  | /openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64/admin-rpc -port 30200 --config_folder_path /openim/openim-chat/scripts/../config/config.yaml
openim-chat  | /openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64/chat-rpc -port 30300 --config_folder_path /openim/openim-chat/scripts/../config/config.yaml
openim-chat  | # Start Chat check_all.sh 17:07:37, For local deployments, use ./check_all.sh --print-screen
openim-chat  | ! get zk config [16] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [17] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [17] error: zk: node does not exist
openim-chat  | 
openim-chat  | ================> Architecture: x86_64
openim-chat  | ================> BIN_DIR: /openim/openim-chat/scripts/..//openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64
openim-chat  | openImChatApiPort service does not start normally, not initiated port is 10008
openim-chat  | please check /openim/openim-chat/scripts/../logs/openIM.log 
openim-chat  | ! get zk config [18] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [17] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [18] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [18] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [19] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [18] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [19] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [19] error: zk: node does not exist
openim-chat  | 
openim-chat  | ================> Architecture: x86_64
openim-chat  | ================> BIN_DIR: /openim/openim-chat/scripts/..//openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64
openim-chat  | openImChatApiPort service does not start normally, not initiated port is 10008
openim-chat  | please check /openim/openim-chat/scripts/../logs/openIM.log 
openim-chat  | ! get zk config [20] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [19] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [20] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [20] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [21] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [20] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [21] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [21] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [22] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [21] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [22] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [22] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [23] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [22] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [23] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [23] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [24] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [23] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [24] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [24] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [25] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [24] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [25] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [25] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [26] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [25] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [26] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [26] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [27] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [26] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [27] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [27] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [28] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [27] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [28] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [28] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [29] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [28] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [29] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [29] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [30] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [29] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [30] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [30] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [31] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [30] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [31] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [31] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [32] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [31] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [32] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [32] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [33] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [32] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [33] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [33] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [34] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [33] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [34] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [34] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [35] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [34] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [35] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [35] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [36] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [35] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [36] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [36] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [37] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [36] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [37] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [37] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [38] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [37] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [38] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [38] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [39] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [38] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [39] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [39] error: zk: node does not exist
openim-chat  | 
openim-chat  | ================> Architecture: x86_64
openim-chat  | ================> BIN_DIR: /openim/openim-chat/scripts/..//openim/openim-chat/scripts/../_output/bin/platforms/linux/amd64
openim-chat  | openImChatApiPort service does not start normally, not initiated port is 10008
openim-chat  | please check /openim/openim-chat/scripts/../logs/openIM.log 
openim-chat  | ! get zk config [40] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [39] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [40] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [40] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [41] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [40] error: zk: node does not exist
openim-chat  | 
openim-chat  | ! get zk config [41] error: zk: node does not exist
openim-chat  | 

通过 docker compose logs openim-server 查看 log 如下:

openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | [mysql] 2023/11/15 17:06:45 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:45 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:45 packets.go:37: unexpected EOF
openim-server  | 
openim-server  | 2023/11/15 17:06:45 /openim/openim-server/tools/component/component.go:144
openim-server  | [error] failed to initialize database, got error driver: bad connection
openim-server  | Starting Mysql failed: driver: bad connection
openim-server  | Checking components Round 2...
openim-server  | [mysql] 2023/11/15 17:06:48 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:48 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:48 packets.go:37: unexpected EOF
openim-server  | 
openim-server  | 2023/11/15 17:06:48 /openim/openim-server/tools/component/component.go:144
openim-server  | [error] failed to initialize database, got error driver: bad connection
openim-server  | Starting Mysql failed: driver: bad connection
openim-server  | Checking components Round 3...
openim-server  | [mysql] 2023/11/15 17:06:51 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:51 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:51 packets.go:37: unexpected EOF
openim-server  | 
openim-server  | 2023/11/15 17:06:51 /openim/openim-server/tools/component/component.go:144
openim-server  | [error] failed to initialize database, got error driver: bad connection
openim-server  | Starting Mysql failed: driver: bad connection
openim-server  | Checking components Round 4...
openim-server  | [mysql] 2023/11/15 17:06:54 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:54 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:54 packets.go:37: unexpected EOF
openim-server  | 
openim-server  | 2023/11/15 17:06:54 /openim/openim-server/tools/component/component.go:144
openim-server  | [error] failed to initialize database, got error driver: bad connection
openim-server  | Starting Mysql failed: driver: bad connection
openim-server  | Checking components Round 5...
openim-server  | [mysql] 2023/11/15 17:06:57 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:57 packets.go:37: unexpected EOF
openim-server  | [mysql] 2023/11/15 17:06:57 packets.go:37: unexpected EOF
openim-server  | 
openim-server  | 2023/11/15 17:06:57 /openim/openim-server/tools/component/component.go:144
openim-server  | [error] failed to initialize database, got error driver: bad connection
openim-server  | Starting Mysql failed: driver: bad connection
openim-server  | Checking components Round 6...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc00013e7d0?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:07:00] Call tree:
openim-server  | !!! [1115 17:07:00]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:07:00]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc00003a910?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:07:02] Call tree:
openim-server  | !!! [1115 17:07:02]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:07:02]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc00003a910?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:07:03] Call tree:
openim-server  | !!! [1115 17:07:03]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:07:03]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc00003a910?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:07:05] Call tree:
openim-server  | !!! [1115 17:07:05]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:07:05]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc00003a910?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:07:07] Call tree:
openim-server  | !!! [1115 17:07:07]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:07:07]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc00003a910?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:07:10] Call tree:
openim-server  | !!! [1115 17:07:10]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:07:10]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc00003a910?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:07:15] Call tree:
openim-server  | !!! [1115 17:07:15]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:07:15]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc00003a910?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:07:23] Call tree:
openim-server  | !!! [1115 17:07:23]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:07:23]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc00003a910?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:07:37] Call tree:
openim-server  | !!! [1115 17:07:37]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:07:37]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc0001ec7d0?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:08:04] Call tree:
openim-server  | !!! [1115 17:08:04]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:08:04]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1
openim-server  | 
openim-server  | 
openim-server  | # Use Docker to start all openim service
openim-server  | 
openim-server  | 
openim-server  | # Begin to start all openim service scripts
openim-server  | All binaries have been installed in /openim/openim-server/_output/bin/platforms/linux/amd64。
openim-server  | 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
openim-server  | 
openim-server  | 
openim-server  | ## Pre Starting OpenIM services
openim-server  | Preparing to start OpenIM Tools...
openim-server  | Starting ncpu...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/ncpu...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting ncpu...
openim-server  | 4Starting component...
openim-server  | Starting PATH: /openim/openim-server/_output/bin/tools/linux/amd64/component...
openim-server  | Specifying config: /openim/openim-server/config
openim-server  | Starting component...
openim-server  | Checking components Round 1...
openim-server  | Mysql starts successfully
openim-server  | Mongo starts successfully
openim-server  | panic: runtime error: invalid memory address or nil pointer dereference
openim-server  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xe9a32a]
openim-server  | 
openim-server  | 
openim-server  | goroutine 1 [running]:
openim-server  | main.exactIP({0xc0001ec7d0?, 0x3b9aca00?})
openim-server  |    /openim/openim-server/tools/component/component.go:124 +0x2a
openim-server  | main.checkMinio()
openim-server  |    /openim/openim-server/tools/component/component.go:225 +0x2db
openim-server  | main.main()
openim-server  |    /openim/openim-server/tools/component/component.go:103 +0x4ce
openim-server  | !!! [1115 17:08:56] Call tree:
openim-server  | !!! [1115 17:08:56]  1: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::start_service(...)
openim-server  | !!! [1115 17:08:56]  2: /openim/openim-server/scripts/install//openim-tools.sh:166 openim::tools::pre-start(...)
openim-server  | !!! Error in /openim/openim-server/scripts/install//openim-tools.sh:106 
openim-server  |   Error in /openim/openim-server/scripts/install//openim-tools.sh:106. '${cmd}' exited with status 2
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/install//openim-tools.sh:106 openim::tools::start_service(...)
openim-server  |   2: /openim/openim-server/scripts/install//openim-tools.sh:123 openim::tools::pre-start(...)
openim-server  |   3: /openim/openim-server/scripts/install//openim-tools.sh:166 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/start-all.sh:75 
openim-server  |   Error in /openim/openim-server/scripts/start-all.sh:75. '${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/start-all.sh:75 main(...)
openim-server  | Exiting with status 1
openim-server  | !!! Error in /openim/openim-server/scripts/docker-start-all.sh:31 
openim-server  |   Error in /openim/openim-server/scripts/docker-start-all.sh:31. '"${OPENIM_ROOT}"/scripts/start-all.sh' exited with status 1
openim-server  | Call stack:
openim-server  |   1: /openim/openim-server/scripts/docker-start-all.sh:31 main(...)
openim-server  | Exiting with status 1

Additional information

No response

kubbot commented 1 year 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.

cubxxw commented 1 year ago

Perhaps it is due to an initialization issue that the correct IP was not resolved. You can refer to the following link for more information: https://github.com/openimsdk/open-im-server/issues/1109.

I sincerely apologize for any inconvenience caused and I am eager to assist you in resolving this matter. Thank you for bringing this to my attention.

chdfeng commented 1 year ago

我有这同样的问题,没有解决

kubbot commented 1 year ago

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


I have this same problem, no solution

cubxxw commented 1 year ago

我有这同样的问题,没有解决

Perhaps it is due to an initialization issue that the correct IP was not resolved. You can refer to the following link for more information: https://github.com/openimsdk/open-im-server/issues/1109.

jamky commented 1 year ago

我有这同样的问题,没有解决

Perhaps it is due to an initialization issue that the correct IP was not resolved. You can refer to the following link for more information: openimsdk/open-im-server#1109.

======================================================================== 根据这个疑似问题,按提可能的解决方法: https://github.com/openimsdk/open-im-server/issues/1109#issuecomment-1803071669 按上面去修改 minio 配置后如下:

object:
  enable: "minio"
  apiURL: "http://http://9.134.50.157:10002"
  minio:
    bucket: "openim"
    endpoint: "http://172.28.0.1:10005"
    accessKeyID: "root"
    secretAccessKey: "openIM123"
    sessionToken: ''
    signEndpoint: "http://9.134.50.157:10005"
    publicRead: false
  cos:
    bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com
    secretID: ''
    secretKey: ''
    sessionToken: ''
    publicRead: false
  oss:
    endpoint: "https://oss-cn-chengdu.aliyuncs.com"
    bucket: "demo-9999999"
    bucketURL: "https://demo-9999999.oss-cn-chengdu.aliyuncs.com"
    accessKeyID: ''
    accessKeySecret: ''
    sessionToken: ''
    publicRead: false

docker compose down docker compose up -d 然后还是不健康

cubxxw commented 1 year ago

It could be due to caching. I suggest clearing all caches and trying again.

jamky commented 1 year ago

It could be due to caching. I suggest clearing all caches and trying again.

修改了 /openim/openim-docker/openim-server/release-v3.4/config/config.yaml 的 minio配置(其它配置项没动到)

# Copyright © 2023 OpenIM. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# -----------------------------------------------------------------
# TODO: This config file is the template file
# --| source: deployments/templates/openim.yaml
# --| env: scripts/install/environment
# --| target: config/config.yaml
# -----------------------------------------------------------------

envs:
  discovery: zookeeper

###################### Zookeeper ######################
# Zookeeper configuration
# It's not recommended to modify the schema
# 
# Zookeeper address
# Zookeeper username
# Zookeeper password
zookeeper:
  schema: openim
  address: [ 172.28.0.1:12181 ]
  username: ''
  password: ''

###################### Mysql ######################
# MySQL configuration
# Currently, only single machine setup is supported
#
# Maximum number of open connections
# Maximum number of idle connections
# Maximum lifetime in seconds a connection can be reused
# Log level: 1=slient, 2=error, 3=warn, 4=info
# Slow query threshold in milliseconds
mysql:
  address: [ 172.28.0.1:13306 ]
  username: root
  password: openIM123
  database: openIM_v3
  maxOpenConn: 1000
  maxIdleConn: 100
  maxLifeTime: 60
  logLevel: 4
  slowThreshold: 500

###################### Mongo ######################
# MongoDB configuration
# If uri is not empty, it will be used directly
#
# MongoDB address for standalone setup, Mongos address for sharded cluster setup
# Default MongoDB database name
# Maximum connection pool size
mongo:
  uri: ''
  address: [ 172.28.0.1:37017 ]
  database: openIM_v3
  username: root
  password: openIM123
  maxPoolSize: 100

###################### Redis configuration information ######################
# Redis configuration
#
# Username is required only for Redis version 6.0+
redis:
  address: [ 172.28.0.1:16379 ]
  username: ''
  password: openIM123

###################### Kafka configuration information ######################
# Kafka configuration
#
# Kafka username
# Kafka password
# It's not recommended to modify this topic name
# Consumer group ID, it's not recommended to modify
kafka:
  username: ''
  password: ''
  addr: [ 172.28.0.1:19094 ]
  latestMsgToRedis:
    topic: "latestMsgToRedis"
  offlineMsgToMongo:
    topic: "offlineMsgToMongoMysql"
  msgToPush:
    topic: "msgToPush"
  consumerGroupID:
    msgToRedis: redis
    msgToMongo: mongo
    msgToMySql: mysql
    msgToPush: push

###################### RPC configuration information ######################
# RPC configuration
#
# IP address to register with zookeeper when starting RPC, the IP and corresponding rpcPort should be accessible by api/gateway
# Default listen IP is 0.0.0.0
rpc:
  registerIP: ''
  listenIP: 0.0.0.0

###################### API configuration information ######################
# API configuration
#
# API service port
# Default listen IP is 0.0.0.0
api:
  openImApiPort: [ 10002 ]
  listenIP: 0.0.0.0

###################### Object configuration information ######################
# Object storage configuration
#
# Use minio for object storage
# API URL should be accessible by the app
# It's not recommended to modify the bucket name
# Endpoint should be accessible by the app
# Session token
# Configuration for Tencent COS
# Configuration for Aliyun OSS
# apiURL is the address of the api, the access address of the app, use s3 must be configured
# minio.endpoint can be configured as an intranet address,
# minio.signEndpoint is minio public network address
object:
  enable: "minio"
  apiURL: "http://http://9.134.50.157:10002"
  minio:
    bucket: "openim"
    endpoint: "http://172.28.0.1:10005"
    accessKeyID: "root"
    secretAccessKey: "openIM123"
    sessionToken: ''
    signEndpoint: "http://9.134.50.157:10005"
    publicRead: false
  cos:
    bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com
    secretID: ''
    secretKey: ''
    sessionToken: ''
    publicRead: false
  oss:
    endpoint: "https://oss-cn-chengdu.aliyuncs.com"
    bucket: "demo-9999999"
    bucketURL: "https://demo-9999999.oss-cn-chengdu.aliyuncs.com"
    accessKeyID: ''
    accessKeySecret: ''
    sessionToken: ''
    publicRead: false

###################### RPC Port Configuration ######################
# RPC service ports
# These ports are passed into the program by the script and are not recommended to modify
# For launching multiple programs, just fill in multiple ports separated by commas
# For example, [10110, 10111]
rpcPort: 
  openImUserPort: [ 10110 ]
  openImFriendPort: [ 10120 ]
  openImMessagePort: [ 10130 ]
  openImGroupPort: [ 10150 ]
  openImAuthPort: [ 10160 ]
  openImPushPort: [ 10170 ]
  openImConversationPort: [ 10180 ]
  openImThirdPort: [ 10190 ]

###################### RPC Register Name Configuration ######################
# RPC service names for registration, it's not recommended to modify these
rpcRegisterName:
  openImUserName: User
  openImFriendName: Friend
  openImMsgName: Msg
  openImPushName: Push
  openImMessageGatewayName: MessageGateway
  openImGroupName: Group
  openImAuthName: Auth
  openImConversationName: Conversation
  openImThirdName: Third

###################### Log Configuration ######################
# Log configuration
#
# Storage directory
# Log rotation time
# Maximum number of logs to retain
# Log level, 6 means all levels
# Whether to output to stdout
# Whether to output in json format
# Whether to include stack trace in logs
log:
  storageLocation: /root/install/openim/openim-docker/openim-server/release-v3.4/logs/
  rotationTime: 24
  remainRotationCount: 2
  remainLogLevel: 6
  isStdout: false
  isJson: false
  withStack: false

###################### Variables definition ######################
# Long connection server configuration
#
# Websocket port for msg_gateway
# Maximum number of websocket connections
# Maximum length of websocket request package
# Websocket connection handshake timeout
longConnSvr:
  openImWsPort: [ 10001 ]
  websocketMaxConnNum: 100000
  openImMessageGatewayPort: [ 10140 ]
  websocketMaxMsgLen: 4096
  websocketTimeout: 10

# Push notification service configuration
#
# Use GeTui for push notifications
# GeTui offline push configuration
# FCM offline push configuration
# Account file, place it in the config directory
# JPush configuration, modify these after applying in JPush backend
push:
  enable: getui
  geTui:
    pushUrl: "https://restapi.getui.com/v2/$appId"
    masterSecret: ''
    appKey: ''
    intent: ''
    channelID: ''
    channelName: ''
  fcm:
    serviceAccount: "x.json"
  jpns:
    appKey: ''
    masterSecret: ''
    pushUrl: ''
    pushIntent: ''

# App manager configuration
#
# Built-in app manager user IDs
# Built-in app manager nicknames
manager:
  userID: [ "openIM123456", "openIM654321", "openIMAdmin" ]
  nickname: [ "system1", "system2", "system3" ]

# Multi-platform login policy
# For each platform(Android, iOS, Windows, Mac, web), only one can be online at a time
multiLoginPolicy: 1

# Whether to store messages in MySQL, messages in MySQL are only used for management background
chatPersistenceMysql: true

# Message cache timeout in seconds, it's not recommended to modify
msgCacheTimeout: 86400

# Whether to enable read receipts for group chat
groupMessageHasReadReceiptEnable: true

# Whether to enable read receipts for single chat
singleMessageHasReadReceiptEnable: true

# MongoDB offline message retention period in days
retainChatRecords: 365

# Schedule to clear expired messages(older than retainChatRecords days) in MongoDB every Wednesday at 2am
# This deletion is just for cleaning up disk usage according to previous configuration retainChatRecords, no notification will be sent
chatRecordsClearTime: "0 2 * * 3"

# Schedule to auto delete messages every day at 2am
# This deletion is for messages that have been retained for more than msg_destruct_time (seconds) in the conversation field
msgDestructTime: "0 2 * * *"

# Secret key
secret: openIM123

# Token policy
#
# Token expiration period in days
tokenPolicy:
  expire: 90

# Message verification policy
#
# Whether to verify friendship when sending messages
messageVerify:
  friendVerify: false

# iOS push notification configuration
#
# iOS push notification sound
# Whether to count badge
# Whether it's production environment
iosPush:
  pushSound: "xxx"
  badgeCount: true
  production: false

###################### Third-party service configuration ######################
# Callback configuration
#
# Callback URL
# Whether to enable this callback event
# Timeout in seconds
# Whether to continue execution if callback fails
callback:
  url:
  beforeSendSingleMsg:
    enable: false
    timeout: 5
    failedContinue: true
  afterSendSingleMsg:
    enable: false
    timeout: 5
  beforeSendGroupMsg:
    enable: false
    timeout: 5
    failedContinue: true
  afterSendGroupMsg:
    enable: false
    timeout: 5
  msgModify:
    enable: false
    timeout: 5
    failedContinue: true
  userOnline:
    enable: false
    timeout: 5
  userOffline:
    enable: false
    timeout: 5
  userKickOff:
    enable: false
    timeout: 5
  offlinePush:
    enable: false
    timeout: 5
    failedContinue: true
  onlinePush:
    enable: false
    timeout: 5
    failedContinue: true
  superGroupOnlinePush:
    enable: false
    timeout: 5
    failedContinue: true
  beforeAddFriend:
    enable: false
    timeout: 5
    failedContinue: true
  beforeUpdateUserInfo:
    enable: false
    timeout: 5
    failedContinue: true
  beforeCreateGroup:
    enable: false
    timeout: 5
    failedContinue: true
  beforeMemberJoinGroup:
    enable: false
    timeout: 5
    failedContinue: true
  beforeSetGroupMemberInfo:
    enable: false
    timeout: 5
    failedContinue: true
  setMessageReactionExtensions:
    enable: false
    timeout: 5
    failedContinue: true

###################### Prometheus ######################
# Prometheus configuration for various services
# The number of Prometheus ports per service needs to correspond to rpcPort
# The number of ports needs to be consistent with msg_transfer_service_num in script/path_info.sh
prometheus:
  enable: false
  prometheusUrl: 172.28.0.1:3000
  apiPrometheusPort: [20100]
  userPrometheusPort: [ 20110 ]
  friendPrometheusPort: [ 20120 ]
  messagePrometheusPort: [ 20130 ]
  messageGatewayPrometheusPort: [ 20140 ]
  groupPrometheusPort: [ 20150 ]
  authPrometheusPort: [ 20160 ]
  pushPrometheusPort: [ 20170 ]
  conversationPrometheusPort: [ 20230 ]
  rtcPrometheusPort: [ 21300 ]
  thirdPrometheusPort: [ 21301 ]
  messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports

docker rm -f $(docker ps -aq) 删除了所有容器 docker compose up -d 启动,这样应该没有缓存吧,但 openim-chat 依旧不健康

cubxxw commented 1 year ago

@jamky 可以试试:

docker stop -f $(docker ps -aq)
docker rm -f $(docker ps -aq)
rm -rf components/
export OPENIM_IP="你自己的外网 IP" (不允许是 127.0.0.1)

meke init 
docker compose up -d 
docker compose logs openim-server
docker compose logs openim-chat
kubbot commented 1 year ago

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


@jamky You can try:

docker stop -f $(docker ps -aq)
docker rm -f $(docker ps -aq)
rm -rf components/
export OPENIM_IP="your own external network IP" (127.0.0.1 is not allowed)

meke init
docker compose up -d
docker compose logs openim-server
docker compose logs openim-chat
skiffer-git commented 11 months ago

https://docs.openim.io/zh-Hans/guides/gettingStarted/dockerCompose