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
43 stars 54 forks source link

Bug: openImChatApiPort service does not start normally,not initiated port is 10008 #28

Closed fx10007 closed 1 year ago

fx10007 commented 1 year ago

What happened?

Symptom The port is occupied after the openim-web:latest image is pulled down. The error persists after the process that uses the port is restarted

================> 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 ../logs/openIM.log openim-chat | tail: /openim/openim-chat/scripts/../logs/openIM.log: file truncated

What did you expect to happen?

the unexpected occurs

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

git clone https://github.com/openim-sigs/openim-docker openim/openim-docker && export openim=$(pwd)/openim && cd $openim/openim-docker  && make init && docker compose up -d

Anything else we need to know?

root@iZj6c7xc9a152yh6wwic5wZ:~/openim/openim-docker# netstat -tln Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:19094 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:10008 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:3000 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:10009 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:37017 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:11001 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:13306 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:16379 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:9090 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:10001 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:19090 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:10002 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:10005 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:12181 0.0.0.0: LISTEN tcp 0 0 127.0.0.53:53 0.0.0.0: LISTEN tcp6 0 0 :::19094 ::: LISTEN tcp6 0 0 :::10008 ::: LISTEN tcp6 0 0 :::3000 ::: LISTEN tcp6 0 0 :::10009 ::: LISTEN tcp6 0 0 :::37017 ::: LISTEN tcp6 0 0 :::11001 ::: LISTEN tcp6 0 0 :::13306 ::: LISTEN tcp6 0 0 :::16379 ::: LISTEN tcp6 0 0 :::9090 ::: LISTEN tcp6 0 0 :::10001 ::: LISTEN tcp6 0 0 :::19090 ::: LISTEN tcp6 0 0 :::10002 ::: LISTEN tcp6 0 0 :::10005 ::: LISTEN tcp6 0 0 :::12181 ::: LISTEN

version

openim-chat:main openim-server:main openim-web:latest

Cloud provider

Aliyun Server

OS version

On Linux: Ubuntu 18.04 x86_64 CPU: 2 vCPU Memory Capacity: 4 GiB Disk : 40 G

Install tools

No response